Changing partition ID of hard disk partition

From Bradnor
Jump to navigation Jump to search

⇐ Additional Configuration

to change the PARTUUID so that it can be used in cmdline.txt
this works to change PARTUUID for a disk created by NOOBS or Raspbian of the form XXXXXXX-nn where XXXXXXXX is the PTUUID of the disk and nn is the partition number. Note that this will change all PARTUUID on this disc as the PARTUUID is constructed from PTUUID and partition number
run blked</> to identify disk
sudo blkid
run fdisk on disk you want to change - here we have the micro SD card
sudo fdisk /dev/mmcblk0 <<EOF > /dev/null
p
x
i
0x${PTUUID}
r
p
w
EOF