I have just added a new HD to my 3 year old machine. I wanted to copy over my linux installation onto the new disk.these are the steps i followed:
1)i issued this command:
cp -r /root /usr/ /boot/ ..... /mnt/new_disk/*
2)I then changed the /mnt/newdisk/etc/fstab file with the new parameters as in boot with /dev/hdb2 mounted on / and the new swap partition on the new disk.
3.)then i edited /mnt/new_disk/etc/lilo.conf and made the root=/dev/hdb2 and boot=/dev/hdb
4.)i issued this command:
/sbin/lilo -C /mnt/new_disk/etc/lilo.conf
When i reboot though..i still boot into the old disk(/dev/hda3) even though the additional swap space is picked up and i can see the swap memory at 1200 MB in gkrellm.
can someone please tell me how i am going wrong here and how to correct it.
Oh and i did not copy over /proc from the old directory since that is recreated at boot time(right??).
I am uing knoppix with kernel 2.6.3(or 7...i am not at home right now).