Moving openSUSE partition to a new HDD

Hi all, first post here. Happy new year! :slight_smile:

My question, I installed openSUSE 11.2 on an external HDD to test. I think it’s brilliant, and want to move it to an internal HDD. What is the best way to do this? I don’t want to lose all the programs / tweaks I’ve made to SUSE so far.

Coming from the Windows’ world, it’s as easy as taking an image of a partition and restoring it over a new HDD partition.

Experts, help me!! :slight_smile:

You can clone your install
Clonezilla: Clonezilla

Read the documantation @Clonezilla’s FAQ

Depending if you have room, once you have a image you could use dd to copy to new hd
Eg: dd if=image.iso of=/dev/sd? bs=4M;sync

But if you are not familiar with this, a fresh install will be quicker, all this cloning can take time and can be tricky.

Thanks for your reply, I have plenty of space to try new things, so it’s worth doing this. I’m not going to do a clean installation without trying this first. If it works, it’ll give me more confidence to move from Windows to SUSE.

I will try create an image and let you know how I get on. However, there are several partitions created by SUSE.

Thanks caf4926, Clonezilla works perfectly. I did the following:

  1. Matched up the partitions (swap, root and home) with the same size and order
  2. Did a local partition to partition clone with Clonezilla
  3. Manually edited /etc/fstab (corrected disk/by-id/x)
  4. Manually edited /boot/grub/menu.lst (again corrected disk/by-id/x)

And now I’m replying with openSUSE on my new HDD! :slight_smile:

Have I missed anything else out? Is there something out there I could use to help me manually rebuild menu.lst incase I did something wrong?

Manual edit is always the way I go.

But you can use Yast - bootloader to propose a new configuration.

Excellent. Thanks