The Cookie Machine - Click here to drag window

The Cookie Machine (TCM) Future Applications:

☑ View cookies used on the Pippim website.
☑ Send cookie via mail. For backup or sharing.
☑ Receive cookie via mail. From yourself or colleague.
☑ Countdown Timers. For multi-phase time sensitive missions.
☑ And in the future... Other ways of sharing/using Cookies.

If you can read me, I'm broken!

Views: 34,307     Votes:  2 
Tags: linux   grub   uuid  
Link: 🔍 See Original Answer on Super User ⧉ 🔗


When you run update-grub from sda5 it reads the /boot/grub/grub.cfg from sda9 which was copied from sda5. First boot into sda5 which is your primary OS. Then use these commands to fix:

SourceUUID=cc3bca0d-aee4-4b9c-95c2-57212cc36d4d
TargetUUID=64662470-0e58-4dfd-90ac-43227d773556
sudo mkdir /mnt/clone
sudo mount -t auto -v /dev/sda9 /mnt/clone
sudo sed -i "s/$SourceUUID/$TargetUUID/g" /mnt/clone/boot/grub/grub.cfg
sudo update-grub
sudo umount /mnt/clone -l

I based this answer on a Ubuntu 16.04 LTS clone to new partition script.

⇧ How to securely upgrade Ubuntu from 16.04 to 18.04 Why am I not getting the Ubuntu 18.04 upgrade?  ⇩