Hard Drive Size Discrepancy?
I just installed Debian (well, ok, via a knoppix knx-hdinstall) onto this system, after formatting from a previous (rather old) install of Mandrake. I've gotten most everything up and running (and have fallen madly in love with apt-get), but then I issued df just to check things out. It reports:
Quote:
Quote:
|
Are you sure it is reporting the wrong size? df is reporting 1K blocks (3582344) while fdisk is showing you 512 byte blocks (7815591) so 7815591/2 = 3907795.5, so you've lost (3907795.5 - 3582344) 325451.5KB (~317MB) in formatting and filesystem information.
Still seems a bit steep. Also having just checked on of my boxes I don't get the same kind of discrepency. Code:
root@rincewind:~# df Code:
Device Boot Start End Blocks Id System I'll get my coat... Jamie... |
Hmmm...
Well, it helps some, and for a second I thought you were dead on and I was just missing seeing the block size. Just to check, I did df -h (human-readable sizes) and got /dev/hda1 as being 3.5GB with 1.9GB used, when it really should be around 7.xGB with 1.9GB used. As it's an 8GB drive and everything but a small swap partition should be /dev/hda1. So maybe fdisk and df aren't reporting a discrepancy, but rather the same odd phenomenon in two different ways (while ignoring a huge section of disk). So I guess the question would become, where'd the rest of the drive go? :confused: Did it somehow stay on the mystical /dev/hda6 ( mounted apparently as /mnt/hda6, has nil in it but is writeable and I can't determine the max size, and it doesn't show up in df)? If so, can I somehow merge /dev/hda6 with /dev/hda1 so I only have /dev/hda1 at the proper size (7.xGB)? So, I think you might be right on the block size thing, which helps us narrow it down to a possibly more frustrating problem...;) Edit: Well, hrmmm, I just looked at your post again and realized that your fdisk and df are reporting much closer than mine....so my fdisk and df actually do seem to be reporting wholly different sizes... I think this one might beat yours out for most useless post ;) :D Thanks. |
What does cfdisk report - anything different? All seems rather weird
cheers Jamie.. |
cfdisk shows:
hda1 flagged to boot, type is primary, fs type is Linux ReiserFS, size (MB) as 8003.20. It also shows hda5 as my logical linux swap with size (MB) as 444.17. |
Woohoo!
Resolved the problem with a little help from IRC. Turns out I had somehow gotten a 3.5GB ReiserFS filesystem living in an 8GB partition during the install. All I had to do to fix the problem was to grow the fs on /dev/hda1, by issuing the command: resize_reiserfs /dev/hda1 Didn't even have to umount. And now df reports 7815344 blocks (which is correct). :cool: |
Quote:
i ran cfdisk and it seemed to show the correct values so i got it to [W]rite the values back, it reported that it was able to do so but for some reason could not read those values back help! - perry |
All times are GMT -5. The time now is 03:35 PM. |