5

In blkid output some lines contain UUID and PARTUUID pairs and others only PTUUID. What do they mean?

In particular, why two IDs are required for partition and why some partitions are identified by UUID/PARTUUID and some by PTUUID?

  • 1
  • @don_crissti I've seen that page in Google, but it doesn't explain anything. – anatoly techtonik Jul 5 '17 at 18:40
  • 2
    What kind of "explanation" do you need, other than the description of PTUUID and PART_ENTRY_UUID (aka PARTUUID) ? – don_crissti Jul 5 '17 at 18:45
  • PARTUUID identifies a GPT partition (like /dev/sdbX). UUID identifies a filesystem. Not sure about PTUUID.. Maybe identifies a GPT device (like /dev/sdX)? – Pozinux Sep 23 '17 at 15:03
4

UUID is a filesystem-level UUID, which is retrieved from the filesystem metadata inside the partition. That can only be read if the filesystem type is known and readable.

PARTUUID is a partition-table-level UUID for the partition, a standard feature for all partitions on GPT-partitioned disks. Since it is retrieved from the partition table, it is accessible without making no assumptions at all about the actual contents of the partition. If the partition is encrypted using some unknown encryption method, this might be the only accessible unique identifier for that particular partition.

PTUUID is the UUID of the partition table itself, a unique identifier for the entire disk assigned at the time the disk was partitioned. It's the equivalent of disk signature on MBR-partitioned disks, but with more bits and standardized procedure for its generation.

On MBR-partitioned disks, there are no real UUIDs in the partition table. So, the 32-bit disk signature is used in place of a PTUUID, and PARTUUIDs are created by adding a dash and a two-digit partition number to the end of the disk signature.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.