n Tue, Apr 21, 2009 at 8:37 AM, jackson byers <<a href="mailto:byersjab@gmail.com" target="_blank">byersjab@gmail.com</a>> wrote:<br>> # fdisk -l<br>><br>> Disk /dev/sda: 36.7 GB, 36703934464 bytes<br>> 255 heads, 63 sectors/track, 4462 cylinders<br>

> Units = cylinders of 16065 * 512 = 8225280 bytes<br>><br>>    Device Boot      Start         End      Blocks   Id  System<br>> /dev/sda1   *           1        2676    21494938+  83  Linux<br>> /dev/sda2            2677        3163     3911827+  82  Linux swap / Solaris<br>

> /dev/sda3            3164        4462    10434217+  83  Linux<br>><br>> sda1 size  ~ 21.5 G<br>><br>> but using df:<br>> # df -kh<br>> Filesystem            Size  Used Avail Use% Mounted on<br>> /dev/sdb6             7.7G  5.6G  1.8G  77% /<br>

> tmpfs                1014M     0 1014M   0% /dev/shm<br>> /dev/sda1             190M  5.6M  175M   4% /mnt/sda1<br>><br>> sda1 size = 190M<br><br>Andrew Parker wrote:<br><br>>>df comes from the file system rather than the partition.  is it<br>

>>possible that the sda1 partition was resized but not reformatted?<br><br>>>if you can stand to lose the data, can you reformat the file system?<br>>>do you then get the expected size?<br><br>my problem is I dont know  what happened,  it occurred during a botched<br>

attempt at using the f10liveinstall cd to install (but backed out)<br>It wasnt my intention to do anything to sda1 ( my target for install was sdb6)<br>but somehow it clobbered sda1 contents, <br>as seen by df, size 190M only 0.19G<br>

<br>I dont know what that liveinstall attempt actually did<br>but the _size_ as seen by fdisk is original size~21G<br>so this tells me there was no resizing of the partition<br>but df says size greatly reduced to 190M=0.19G <br>
<br>I am now leery of doing anything until i understand what fdisk, df tell me<br>I suppose my only choice now is to go ahead and reformat<br>
<br>Jeff Voskamp wrote<br><br>>Or just try "resize2fs /dev/sda1" to resize the filesystem to the size of the underlying >partition.<br>>Jeff<br>I will check out info or man page on resize2fs, thanks<br>
<br>Stephen Berg wrote<br><br>>Aren't the "Blocks" listed from fdisk 512 and not 1024?  Your numbers<br>>would agree quite nicely if so.<br><br>>  Stephen Berg  <br><br>I dont think that is correct.<br>
I dont know exact def of blocks<br>but cyls*8225280bytes ~ 21G<br><br>this also checks well on my sdb6<br>where i am now booted up in my fc5copy<br>/dev/sdb6      1302        2321     8193118+  83  Linux<br>(2321-1302)*8225280= 8381560320 bytes<br>
<br>Any other explanations as to how<br>size reported by fdisk not same as  size from df?<br><br>Jack<br><br><br>