Click to See Complete Forum and Search --> : free disk space way off (too low)
gleather
05-29-2007, 10:47 AM
cfdisk shows sda1 has size 30721.43MB, type Primary, fs type Linux ext3.
mount shows /dev/sda1 on /home type ext3 (rw)
df shows /dev/sda1 has 1k-blocks 640296 (way wrong).
1k-blocks should be around 30000000.
So, basically my 30 gig partition is showing as a 600 meg partition.
Any ideas?
mrBen
05-29-2007, 11:40 AM
What does df -h show? And I presume you're looking at the 'Size' column ;)
gleather
05-29-2007, 11:43 AM
$df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 626M 261M 346M 43% /home
dkrnic
05-29-2007, 01:26 PM
If you used the optional [ blocks-count ] parameter when formatting
the partition with "mke2fs" and stated you wanted 626000 of 'em,
that's what you got. Or if you copied another 636 MB big file system,
perhaps a CD physically with "dd" or similar.
There are different ways to skin the cat.
gleather
05-29-2007, 01:40 PM
I formatted the partition during an install of Ubuntu. I didn't notice that the size was wrong until it filled up.
gleather
05-29-2007, 02:47 PM
My solution:
Boot into recovery mode.
cp -R /home/* /homebak
umount /home
mkfs.ext3 /dev/sda1
mount /dev/sda1 /home
mv /homebak/* /home
edit /etc/fstab with new GUID or just use /dev/sda1
chown -R /home/* appropriately
reboot
I still don't know why it happened.