I assume you mean "a PTUUID for the disk and PARTUUIDs for the partitions", since there is no such thing as "PTUUIDs for partitions".
To answer to your question title: No, PTUUIDs and PARTUUIDs are not important for MBR, because MBR was developed back in the 1980s when the concept of 128-bit UUIDs was not common yet. A single primary partition entry in the MBR partition table is just 16 bytes: the idea of adding another 16 bytes per partition for just one long identifier would have been considered a crazy waste of space at the time. Since the primary MBR partition table must fit into the same single 512-byte disk block with the actual boot record code, there is not really any space to add it later either.
You may have noticed that real UUIDs tend to be of the format 12345678-9abc-def0-1234-56789abcdef0, but on MBR-partitioned disks, both PTUUID and PARTUUIDs, if they are reported at all, are much shorter strings: a PTUUID might be 12345678 and a PARTUUID 12345678-01, respectively?
This is because the identifiers displayed in place of PTUUID and PARTUUIDs for MBR-partitioned disks are not real UUIDs. They are based on a 32-bit disk identifier, which was added to MBR for the first time by Windows NT 3.5. It was originally called "Windows Disk Signature", but I guess "disk identifier" is a more vendor-neutral term. Since operating systems before Windows NT 3.5 did not have such a disk identifier, it must be treated as an optional identifier, unlike on a GPT-partitioned disk, where a PTUUID and PARTUUIDs are mandatory parts of the partitioning scheme.
The "PTUUID string" of a MBR-partitioned disk is just that 32-bit disk identifier by itself, and "PARTUUIDs" are derived from it by simply adding a dash and a two-digit partition number at the end. These strings do not fulfill the specification for real UUIDs, as they are not long enough to ensure uniqueness and have not been created using the same rules. They are just the best available substitute for real UUIDs.
When you start creating a new MBR partition table on a completely unused disk, a modern Linux fdisk
includes this initial message:
Device does not contain a recognized partition table.
Created a new DOS (MBR) disklabel with disk identifier 0x1234abcd.
Command (m for help):
So when creating a new MBR partition table, it automatically creates a disk identifier for you. The "PTUUID" of this disk would be 1234abcd and the "PARTUUID" of the first partition would be 1234abcd-01.
To change an existing disk identifier for a MBR disk, you can use sfdisk --disk-id
as mentioned by Philip Couling, or you can start a modern enough version of Linux fdisk
for that disk, type x
to enter the expert commands menu, and there type i
for the change the disk identifier action.
Changing the disk identifier/PTUUID on a MBR-partitioned disk will necessarily also change all PARTUUIDs, since they are all derived from the same disk identifier.
If the filesystem inside a partition also supports an UUID, that is displayed by Linux tools like blkid
and lsblk
as just UUID
. Its format and existence depends on the filesystem type: for filesystems of the FAT family, you can see a short identifier such as UUID=1A2B-3C4D
instead of a real 128-bit UUID. This is really a FAT volume serial number (also known as volume ID) which is assigned at the time of filesystem creation. To change this, use a filesystem-specific tool, like tune2fs -U
for ext2/ext3/ext4 filesystems, xfs_admin -U
for XFS, or mlabel -N
for filesystems of the FAT family.