Article Title: view the UUID method in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. sudo blkid
/Dev/sda1: UUID = "9ADAAB4DDAAB250B" TYPE = "ntfs"
/Dev/sdb1: UUID = "B2FCDCFBFCDCBAB5" TYPE = "ntfs"
/Dev/sdb5: UUID = "46FC5C74FC5C5FEB" TYPE = "ntfs"
/Dev/sdb6: TYPE = "swap" UUID = "2cec6109-5bcf-45a3-ba1b-978b041c037f"
/Dev/sdb8: UUID = "9ee6f22d-b394-422c-9b4a-1525a3220942" SEC_TYPE = "ext2" TYPE = "ext3"
/Dev/sdb7: UUID = "4bcb9381-6e25-4304-8743-f882039ff3ad" TYPE = "ext3"
2. ls-l/dev/disk/by-uuid
Lrwxrwxrwx 1 root 10 2008-05-15 2cec6109-5bcf-45a3-ba1b-978b041c037f->.../sdb6
Lrwxrwxrwx 1 root 10 2008-05-15 46FC5C74FC5C5FEB->.../sdb5
Lrwxrwxrwx 1 root 10 2008-05-15 4bcb9381-6e25-4304-8743-f882039ff3ad->.../sdb7
Lrwxrwxrwx 1 root 10 2008-05-15 9ee6f22d-b394-422c-9b4a-1525a3220942->.../sdb8
3. sudo vol_id/dev/sda1
ID_FS_USAGE = filesystem
ID_FS_TYPE = reiserfs
Id_fs_versions = 3.6
ID_FS_UUID = be6d8295-a1c4-48e9-b68d-f4b043cd5f2c
ID_FS_UUID_ENC = be6d8295-a1c4-48e9-b68d-f4b043cd5f2c
ID_FS_LABEL =
ID_FS_LABEL_ENC =
ID_FS_LABEL_SAFE =