You are not logged in.
I just pulled my main drive out of my system to use elsewhere. I did a couple things before doing so.
1) gparted - shrunk the root partition down to 10Gb
2) partimage - created an image
3) gparted - created a 15Gb partition on another drive
4) partimage - restored image to the new partition
Now there are problems. Gparted shows a 15.37Gb partition with 10Gb used and 4Gb free. The total size is correct but the used size is wrong.
With df the used size is correct but the total size is wrong.
$ df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda1 10994 6115 4433 58% /
none 506 0 506 0% /dev/shm
/dev/sda3 218982 134159 73787 65% /home/re/data
What in the world is wrong here?
Last edited by bomaroast (2008-06-09 16:25:02)
Offline
Just out of curiousity, did you change your fstab? That might be the problem.
Offline
Yes, I did.
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
#/dev/cdrom /mnt/cdrom iso9660 ro,user,noauto,unhide 0 0
#/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/sda1 / ext3 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 /home/re/data ext3 defaults 0 0
The disk I removed used to be sda and the disk I'm using now used to be sdb. I made very minor changes to reflect the three altered mount points.
I don't have the old fstab available but if it would really be useful I can re-image the partition to retrieve it.
Offline
I don't have the old fstab available but if it would really be useful I can re-image the partition to retrieve it.
I don't think that's necessary. The only thing i can think of (other than you accidently put in the wrong disk) is that the partimage you made was of a 10G partition, so the restored image thinks that's still the size...
Edit: spelling.
Last edited by tigrmesh (2008-06-07 22:26:37)
Offline
Ya, it seems obvious that is the problem. Why did it happen though? Is there a file somewhere that specifies how large all the mounted discs are? Is there some way to prompt the system to update all its hardware information?
Offline
Using a licecd and gparted I shrunk the partition a few hundred megs and then grew it back to the original size. Probably not the best solution but it worked for the most part. I don't know quite know where the Gb of extra data came from but oh well.
df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda1 15489 7158 8017 48% /
none 506 0 506 0% /dev/shm
/dev/sda3 218982 134294 73652 65% /home/re/data
Last edited by bomaroast (2008-06-09 16:29:11)
Offline
I'm glad you got it fixed.
Offline