Click to See Complete Forum and Search --> : what the hell? where'd my space go?


saturn-vk
06-30-2003, 01:10 PM
i just repartitioned my hd, and copied over the linux from the backup. it's a 40GB hd. now i checked cfdisk and this is what it tells me:

hda1 Primary Linux ext3 38296.91
hda4 Boot Primary Linux ext3 24.68
hda2 Primary Linux swap 1003.49
hda3 Primary Win95 FAT32 (LBA) 1842.47


and now i check out df, and this is what I get:

/dev/hda1 23G 18G 3.7G 83% /
/dev/hda3 1.7G 3.8M 1.7G 1% /mnt/win_c
/dev/hda4 23M 8.2M 13M 38% /boot


what the hell, where'd my 15GB on hda1 go?

df is reporting the space on / before the repartition. Why is it doing that?

o0zi
06-30-2003, 02:30 PM
Perhaps you only used 25GB of your hard drive? You can still have free space after partitioning - df only shows the size of the partitions. Check if your drive is truly 40GB by using "cfdisk".

The Whizzard
06-30-2003, 02:44 PM
After partitioning your drive, did you reboot? If not, reboot. cfdisk should have told you to do so. You may have to re-partition it, remake the filesystems and recopy from the backup. Other wise you may run into problems with the partition map not matching the filesystem size.

saturn-vk
06-30-2003, 04:01 PM
wait, so there's no way to fix this?
how exactly did this happen anyway?
i probably rebooted about 12 times after the repartitioning (kept trying to overwrite the installed glib with the backed up, which you can guess is pretty bad).

this is pretty bad.

mdwatts
06-30-2003, 04:10 PM
Originally posted by saturn-vk
i just repartitioned my hd, and copied over the linux from the backup.

Repartitioned? Same partition sizes are you had prior?

saturn-vk
06-30-2003, 04:21 PM
no, before the root was only 22GB (reborted by both cfdisk and df)
then i copied everything to another computer, and repartitioned it, making the vfat much smaller (from 14GB to 2GB) and increasing the root to 37GB (created the partition with cfdisk), then formated it to ext3, rebooted and copied everything back (note: copied mean file by file, not bit by bit)

there must be some way to fix this, musn't it. it would suck if i have to do it again :(

mdwatts
06-30-2003, 04:27 PM
All I can think of is to manually resize all the partitions using GNU Parted or whatever you are familiar with.

saturn-vk
06-30-2003, 04:45 PM
well, the main reason i repartitioned was because parted didn't want to resize the ext2/3 partition, because it doesn't support them (even though it reports it does)
and if i use parted to determine the size, it reports that it's 37GB, so i cannot resize it, even if it worked. :(

mdwatts
06-30-2003, 04:50 PM
Since you really don't want to repeat what you have already done, I have no idea what to suggest.

Anyone else?