df -h not showing disk space

Paul Howarth paul at city-fan.org
Sun Apr 3 10:02:41 UTC 2005


On Sat, 2005-04-02 at 17:17 -0700, BC wrote:
> Ok this seems weird to me. I have had FC3 installed and running now for
> 3 months with no problems or even a reboot :-) But I just noticed my /
> partion is getting full. Only trouble is is that it only shows it is a
> 39GB partition but really it is 74GB. Anyone see this before ? It is a
> problem with df only showing 39GB it Is a SATA drive so the one I need
> help with is /dev/sda.
> 
> df -h 
> 
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda1              39G   24G   13G  66% /   
> <-------------------------------
> /dev/hdb1             151G   25G  119G  18% /Storage
> none                  506M     0  506M   0% /dev/shm
> /dev/hda1              92G   21G   67G  24% /VirtualMachines
> 
> fdisk /dev/sda 
> 
> Disk /dev/sda: 80.0 GB, 80026361856 bytes
> 255 heads, 63 sectors/track, 9729 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1        9601    77120001   83  Linux
> <---------------------------
> /dev/sda2            9602        9729     1028160    5  Extended
> /dev/sda5            9602        9729     1028128+  82  Linux swap

Perhaps you have somehow managed to create a 39G filesystem on your 75G
partition? Have you been changing partition sizes at any time?

Try booting from the rescue CD, don't mount any partitions and do:
# fsck /dev/sda1
# resize2fs /dev/sda1

That should expand the filesystem to match the partition size.

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list