On Wed, 14 Aug 2002, David Kempe wrote:
>   Name        Flags      Part Type  FS Type          [Label]        Size
> (MB)
> ----------------------------------------------------------------------------
>     sda1                    Primary   Linux swap
> 1019.94
>     sda2        Boot        Primary   Linux ext3
> 3997.49
>     sda3                    Primary   Linux ext3
> 31395.90
> 
> 
> # df -mh
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda2             3.7G  166M  3.3G   5% /
> /dev/sdb1              17G   33M   15G   1% /home
> /dev/sdc1              17G   71M   15G   1% /var
> /dev/sda3              14G   33M   13G   1% /dump
> 
> So why does cfdisk report 33Gb (reality) when df reports 13G?
> any suggestions?

The filesystem is smaller than the partition?
This could happen if mkfs wrongly detected the partition size.
I've not seen this happen except when I've had cause to do raw copies of
partitions, but you can check this by doing:

dumpe2fs /dev/sda3 | grep 'Block.*:'

(the last part so it doesn't fill your screen)
Multiply 'Block count' by 'Block size' and compare this with your figures
above.

If it's the same as what df is reporting, then your filesystem
isn't using the whole partition, and you should probably back up and
recreate it, probably giving the real size to mkfs.

If it's the same as what cfdisk reports, I don't have a clue what's going
on. :)
 
-- Jessica Mayo.
(Everything with a Grin :)

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to