Originally Posted by shahin123
Any idea what I do wrong here?
Yes. It looks like you did a lot of things wrong. Instead of nit-picking every little thing, I will tell you what you need to do.
Use fdisk to partition your second drive (hdc). Start fdisk like this
# fdisk /dev/hdc
Use the 'n' command to create a new partition. Press 'p' to create a primary partition. Select '1' for the first partition. Make the size at least as big as your current partition. Leave enough room for a swap partition. Use the 't' command to change the type to ext3 (83) and make it bootable using the 'a' command.
Use the 'n' command to create your swap partition. Press 'p' to create a primary partition. Select '2' for the second partition. Make the size at least twice the size of your system RAM. Use the 't' command to change the type to swap (82).
Use the 'w' command to save your changes and exit fdisk.
Use partimage to restore your saved image. You can do this from the command line using
# partimage -b restore /dev/hdc1 /path-to-image/sda1-image.000
Mount your restored partition using these commands
# mkdir /mnt/system
# mount -text3 /dev/hdc1 /mnt/system
Install grub on your boot record using this command
# grub-install --recheck --root-directory=/mnt/system /dev/hdc
Unmount the restored partition using this command
# unmount /mnt/system
You should now be able to put the hard drive in the new system. You might have to modify "/boot/grub/menu.lst" to get the hard drive mapping correctly, but this is not usually the case.