[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Partition size problem



On Tue, Apr 26, 2005 at 08:01:21PM -0400, haroon wrote:
> Hello Guys,
> 
> I am confused by the disk/partition space reported by various tools.
> 
> I have following partitions (as shown by cfdisk)
> 
> hda1	ntfs	~20G
> hda2	ext3	~9G
> hda3	swap	~ 1G
> hda4	ext3	~29G
> 
> Total hda size ~60G now if use df to view disk space I get this output
> (I have removed lines that report binded mount points)
> 
> presario:~# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda2             9.0G  7.1G  1.5G  83% /
> /dev/hda4             9.0G  4.7G  3.9G  55% /mnt/data
> /dev/hda1              20G  4.6G   15G  24% /mnt/win
> 
> Now I am confused why size of /dev/hda4 is reported to be different?

Did you perhaps resize partition hda4 at some point but not resize the
filesystem up afterwards?

If that is the case, it should be as simple as:

umount /dev/hda4
fsck /dev/hda4 (maybe needs a force option to make it run and make
		resize2fs happy)
resize2fs -p /dev/hda4
mount /dev/hda4

Len Sorensen



Reply to: