boot clonezilla GRUB grub-install

Fixing the CloneZilla GRUB issue

Yesterday I wrote how I was experiencing some troubles rebooting a system after using clonezilla to clone the current drive onto a fresh HD. The old drive was 11 years old. It probably could have gone on for a couple mor years, but why take a chance.

A lot of the “fixes” for this issue are based on the older GRUB and these commands are simply not available in GRUB 2.0. These fixes ask you to use command like

find /boot/grub/stage1
boot (hd0,0)
setup hd(0)

Those are not there in GRUB 2.0

I managed to fix my issue by getting the machine to boot in a live disk. Well actually I used the older drive as the boot drive and the new drive as the secondary drive. With this setup I mounted the partition where the /boot folder was. In my case it was within the / mount point.

mount /dev/sdb1 /mnt

And then run the grub-install command as such

grub-install --no-floppy --root-directory=/mnt /dev/sdb

The process completes and the machine will reboot immediately – meaning that I don’t have a chance to shutdown and remove the older drive.

I got the machine up now, but the NIC was not being recognised. It was odd, the card had power, but a lspci did not list it as a device. A quick reseat of the card solved that issue and my machine was back up.

I need to keep this notes for the next machine…the NAS, eeek!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.