openSUSE 12.3 GRUB2 clone system

I have an openSUSE 12.3 system that I am wanting to clone with Ghost. In the past I would change the menu.lst file to reference /dev/sda2 as the root partition and /dev/sda1 was swap. With openSUSE and GRUB2 it doesn’t look like that is the case. I’ve read some threads on this forum and Google and thought I had it all figured out. I change my partitions in Yast2 for /etc/fstab to be by device name and when I look in /etc/fstab I see the entries. I then shot over to Boot Loader and see that GRUB2 is being used and I click on Boot Loader Options. I changed the optional kernel command line parameter to match the /dev/sda2 for resume=. I changed the boot loader installation details to /dev/sda instead of /dev/disk/by-id/ata-WDC_blah_blah. I tried changing the UUID references in /boot/grub2/grub.cfg from UUID=a1blahblah-blah-blah to /dev/sda2.

I cannot figure out how to clone this disk. Whatever I try I can only get the machine which I drop the image down on to boot the GRUB _ and the _ is flashing.

How or what do I need to do in order to clone this machine so I can drop this image down on another like hardware system?

Well it i a pain default naming but IMO easiest way is to use labels as the ID for partitions. You must supply the unique label names. There is one problem i know of with this method and that is if you try to mount two disks with the same label names.

Who would do this ? :slight_smile:

Well maybe mounting in a network?? or testing a drive??

You could alter the clone’s labeling and change the label to make it unique across the network.

But there is a down side to any of the naming conventions

GRUB initial boot code points to physical disk location where the rest of bootloader is located. Apparently during cloning this location changed so it loads and tries to execute some garbage. Or may be there was already bootloader on target disk which got overwritten. You need to boot into rescue or live CD and reinstall bootloader. There was article somewhere on this site how to do it.

I have no idea how ghost works, so I cannot say if it is possible to install grub2 on source system so that it can be cloned using ghost.