Click to See Complete Forum and Search --> : Linux root partition full


dt23
04-27-2003, 06:54 PM
Hello,

When I do a 'df', I see the root partition used at 100%. I added another hard drive, and formatted the partition to 'ext2'.

The problem now is that I don't know what entry I should put in fstab in order to add the new partition to the existing root partition (increasing the root partition size).

The name of the new partition is 'hdc1'.

Does anyone have any ideas?

-DT.

shadowrider
04-28-2003, 12:19 AM
normally you want to do something like

/dev/hdc1 [mount point] [fs type] [permission/options]

check out this (http://www.linuxgazette.com/issue38/cooper.html) page

dt23
04-28-2003, 01:00 AM
I see. So it seems that I should be using the following in fstab:

/dev/hdc1 / ext2 defaults 1 1

When I mount the new hard drive as the root partition, however, I still see that '/' is 100% used when I type 'df'. Is that normal?

It seems it should show more space available on the root partition after I mount the new drive.

-D.

einhverfr
04-28-2003, 01:36 AM
Probably the best thing to do is look at where your hard drive space is used, and then move these sections over into new partitions on the new hard drive (usually /usr and /home are the main culprits on home users' systems but /var can be on servers). The problem is you can't easily just unmont and remount your root partition (it is just not that easy since the config info is on it).