Table of Contents
Change partition UUID in Ubuntu
Generate UUID
uuidgen
Change one partition
sgdisk -U <uuid> /dev/sda1
Change multiple partitions
Run following command to retrieve partitions info
sfdisk -d /dev/sda > /tmp/sda.dsk
Edit the UUID in the file /tmp/sda.dsk
.
Run following command to reimport the modified partitions
sfdisk /dev/sda < /tmp/sda.dsk