size from df -kh vs size from fdisk -l

Aldo Foot lunixer at gmail.com
Tue Apr 21 16:13:54 UTC 2009


On Tue, Apr 21, 2009 at 5:37 AM, jackson byers <byersjab at gmail.com> wrote:
> I asked this questiion in another thread
> "f10 liveinstall cd trashed my main fc5"
>
> but i think it got lost in my longish  msg
>
> # fdisk -l
>
> Disk /dev/sda: 36.7 GB, 36703934464 bytes
> 255 heads, 63 sectors/track, 4462 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1        2676    21494938+  83  Linux
> /dev/sda2            2677        3163     3911827+  82  Linux swap / Solaris
> /dev/sda3            3164        4462    10434217+  83  Linux
>
> sda1 size  ~ 21.5 G
>
> but using df:
> # df -kh
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sdb6             7.7G  5.6G  1.8G  77% /
> tmpfs                1014M     0 1014M   0% /dev/shm
> /dev/sda1             190M  5.6M  175M   4% /mnt/sda1
>
> sda1 size = 190M
>
> how possible?
> advice, help on further  diagnosing this?
> Jack

After using fdisk or parted, one must do "partprobe" at the CLI to record
the changes. Both the OS and the Kernel need to know the changes.
Since your boot partition is involved, you may need a LiveCD for this.
Do "man partprobe" for more info.

HTH,
~af




More information about the fedora-list mailing list