Cloned(Clonezilla) a Dual Boot of Windows+Ubuntu but now GRUB Boots Ubuntu on wrong Drive
Solution 1:
After cloning your drive, normally you should normally remove one drive from the system. The reason is that both drives now have the same UUID's... the number that identifies the drives/partitions. When booting, either drive can answer up, 'causing it to boot to the "wrong" drive.
Also, understand, that a Clonezilla clone will probably NOT be restorable to the original drive, as Clonezilla clones only work when the target disk is LARGER than the source disk. Even one byte difference smaller and it won't restore.
If you wish to continue to have both drives connected, you'll have to change the UUID's on one of the drives.
You use four different commands to do this...
sudo blkid
# to view UUID'ssudo uuidgen -t
orsudo uuidgen -r
# seeman uuidgen
for detailssudo tune2fs -U new_UUID /dev/sdxx
# seeman tune2fs
for detailssudo update-grub
# update grub with new UUID's
Be careful... if you change the UUID on the target boot drive, you'll need to edit /etc/fstab
with the new UUID's.
You'll also want to adjust partition sizes on the new, larger drive, by using gparted
. You can't change partition sizes on live/mounted partitions, so you've got to either boot to a Ubuntu Live DVD/USB, or unmount the partition(s) that you wish to resize.