[wplug] partition question

Ivan Jager ivanj at terere.res.cmu.edu
Fri Oct 4 12:32:53 EDT 2002


On 2002.10.04 10:46 coldfire wrote:
> > I have a 40 GB hard drive that I split down the middle (20GB
> > windows/20GB Linux). I set aside 11GB for /usr/local (/dev/hda3) and 2GB
> > for /usr (/dev/hda6). I have downloaded some large files (~1GB total)
> > onto /usr/local/ that should not have filled up its space but it did.
> > Here is the output of fdisk (clipped for length) and modified to include
> > the mount point.
> 
> 
> > Mount Point  Device      Boot    Start       End    Blocks   Id  System
> > c:           /dev/hda1   *           1      2433  19543041    7 HPFS/NTFS
> > /            /dev/hda2            2434      2554    971932+  83  Linux
> > /usr/local/  /dev/hda3            2555      3950  11213370   83  Linux
> >              /dev/hda4            3951      4864   7341705    5 Extended
> > /home        /dev/hda5            3951      4450   4016218+  83  Linux
> > /usr         /dev/hda6            4451      4700   2008093+  83  Linux
> > /var         /dev/hda7            4701      4825   1004031   83  Linux
> >
> > Now, here is the output of 'df' run as root.
> > 
> > >>
> > Filesystem           1k-blocks      Used Available Use% Mounted on
> > /dev/hda1             19543040   9466155  10076886  49% /dosc
> > /dev/hda2               941428    642316    250516  72% /
> > /dev/hda3              1945132   1910504         0 100% /usr/local
> > /dev/hda5              3890292    407028   3282456  12% /home
> > /dev/hda6              1945132   1910504         0 100% /usr
> > /dev/hda7               972532     39068    883264   5% /var
> > 
> > Here's the output of fstab
> > 
> > /dev/hda1      /dosc       ntfs       defaults   1    0
> > /dev/hda2       /        ext2        defaults   1   1
> > /dev/hda3       /usr/local      ext2        defaults   1   1
> > /dev/hda5       /home      ext2        defaults   1   1
> > /dev/hda6       /usr      ext2        defaults   1   1
> > /dev/hda7       /var      ext2        defaults   1   1
> > 
> > So, can somebody explain to this Linux newbie why I don't have the space
> > on /usr/local like I think I do?
> 
> from a glance, i can't really tell you exactly what is wrong ... but i do
> know that the slight discrepency in the block sizes between fdisk and df
> can be explained by the fact that a certain percentage of a partition is
> "reserved" for root.  'man mkfs.ext2' might tell you a bit more about it
> .. i'm not certain of a way to check how much of the partition is reserved
> though.  might be worth looking into.  good luck

Another posibility is that he has a 2 GB filesystem on an 11 GB partition. One way to do that is to first create a 2 GB partition and run mkfs on it, and then use fdisk to make it bigger. The filesystem would only be using the first 2 GB, so df would say that it is full. I would doubt he did that on purpose, but maybe he just forgot to run mkfs after changing the partitions. I can't really think of anything else, but there is probably some other posibilities...

Ivan



More information about the wplug mailing list