Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Ive cloned my ubuntu installation, but cannot get grub2 to see it.

Before I had the install on /dev/sda1 and a grub boot prtition on /dev/sda2

I copied them both to a new disk - now boot prtition is on /sdb1 and the cloned partition (using gparted) is on /sdb2

Ive set the BIOS boot order ot boot from the driv ive copied to. At startup the first time it booted into the old install (this was expected, since I hadnt changed the grub entries)

But now, while in my 'old' installation, if I run grub-mkconfig it only finds the install on /dev/sda1, and not its copy on /dev/sdb2

Ive tried reinstalling grub from scratch but no joy....

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You need to give the cloned partitions new UUIDs so they are not confused with the old ones. Run sudo tune2fs -U random /dev/sdb1.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.