Well this is what happened, I wanted to move my old root partition to a new bigger one. The old one was 12gb and then new one is 25.
So I did that with a:
cp -avx / /mnt/newroot
Alright when that was done i edited my fstab and grub.conf to boot the new partition as /. Restarted, everything booted fine. I did a df -h to check the size and it still showed only 12gb for the new partition. I mounted it back on /mnt/newroot and did another df -h.
Heres the output:
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 12G 9.5G 1.9G 84% /
none 378M 0 378M 0% /dev/shm
/dev/hda1 25G 13G 12G 53% /mnt/newroot
Heres my output from fdisk:
Disk /dev/hda: 40.0 GB, 40037760000 bytes
255 heads, 63 sectors/track, 4867 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 3185 25583481 83 Linux
/dev/hda2 3186 3200 120487+ 83 Linux
/dev/hda3 3201 4672 11823840 83 Linux
/dev/hda4 4673 4867 1566337+ f Win95 Ext'd (LBA)
/dev/hda5 4673 4867 1566306 82 Linux swap
note: hda1 is the new / and hda3 is the old one (I plan on formatting hda3 and using it as /home btw)
also strangely when I have /dev/hda3 mounted the space changed when I add files to /dev/hda1.
I made a copy of my /home folder (as a test) heres the space before:
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 12G 9.5G 1.9G 84% /
none 378M 0 378M 0% /dev/shm
/dev/hda3 12G 9.5G 1.9G 84% /mnt/root
and heres after:
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 12G 9.8G 1.6G 87% /
none 378M 0 378M 0% /dev/shm
/dev/hda3 12G 9.8G 1.6G 87% /mnt/root
Basically, what can I do to get things working properly again? I'm using gentoo btw. Hope you guys can help