UUID是文件系统的UUID。
PARTUUID是分区表中一个分区的UUID
PTUUID是分区表的UUID。
通过uuid查看所有分区:
$ ls /dev/disk/by-uuid/ -l
total 0
lrwxrwxrwx 1 root root 10 Sep 24 16:16 252db272-12c4-4063-888a-d44b644e5f94 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Sep 24 16:16 3674-4838 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 24 16:16 9218c721-6a12-4436-9f2f-4e7ca195ed69 -> ../../sda2
通过partuuid查看所有分区
$ ls /dev/disk/by-partuuid/ -l
total 0
lrwxrwxrwx 1 root root 10 Sep 24 16:16 4f1b95e1-55b2-044e-8d7a-c1629f32f3c2 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Sep 24 16:16 69767aec-c927-445a-8169-25203a1ebc6d -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 24 16:16 6c8dc0ae-d3bb-4bf1-b79b-883dcf6d0e63 -> ../../sda2
UUID is a filesystem-level UUID, which is retrieved from the filesystem metadata inside the partition. It 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 any 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 is the equivalent of the disk signature on MBR-partitioned disks but with more bits and a standardized procedure for its generation.
On MBR-partitioned disks, there are no UUIDs in the partition table. 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.
参考:
https://unix.stackexchange.com/questions/375548/what-is-uuid-partuuid-and-ptuuid