Clonezilla clone won't boot without reinstalling grub2
2
votes
4
answers
23166
views
I've taken a clone of a machine with the following partitions:
Device Type Label
/dev/sda
/dev/sda1 Ext4 boot
/dev/sda2 Linux LVM
/dev/system/ LV system
/dev/system/home LV home
/dev/system/root LV root
/dev/system/swap LV swap
These are referenced by label in
/etc/fstab:
LABEL=root / ext4
LABEL=boot /boot ext4
LABEL=home /home ext4
LABEL=swap /swap swap
and grub.cfg:
menuentry 'openSUSE, with linux ' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux--simple-' {
insmod ext2
set root='hd0,msdos1'
linux /vmlinuz- root=/dev/mapper/system-root resume=/dev/disk/by-label/swap
initrd /initrd-
}
I am trying to install this clone on another identical machine. The install succeeds, but I can't boot into the machine without doing the following in the grub prompt it dumps me into:
grub> set root=(hd0,1)
grub> linux /boot/vmlinuz- root=/dev/sda1
grub> initrd /boot/initrd.img-
grub> boot
I'd much prefer to get an image which does not require these steps, but I'm not sure where the problem lies (grub config, other system files, clonezilla). Things I have tried so far:
- Edited /etc/defaults/grub and uncommented '
GRUB_DISABLE_LINUX_UUID=true
'
- Edited grub-mkconfig_lib to comment out the lines like search --no-floppy --fs-uuid --set=root ${hints} ${fs_uuid}
to prevent them being added when grub.cfg is generated
- (and re-generated grub.cfg
)
- Selected advanced clonezilla install and told it to re-install the MBR afterwards (option -j1. option -g auto "Reinstall grub in client disk MBR" was already selected by default)
Any other things I can try?
I did notice that /boot/grub2/device.map
lists "sda1" for hd0, but the HD of the other machine is being detected as sda1 when I install the clone so I don't think this is likely to be the culprit.
(I wasn't sure if here or Superuser was the better fit for the question, I am happy for it to be migrated as appropriate.)
Asked by jam
(215 rep)
May 25, 2017, 12:47 PM
Last activity: Aug 19, 2024, 02:27 PM
Last activity: Aug 19, 2024, 02:27 PM