> CentOS > CentOS入门 >

CentOS查看UUID

  1. #查询UUID

  2. [root@localhostdata]# ls -l /dev/disk/by-uuid/

  3. total0

  4. lrwxrwxrwx. 1rootroot10Apr1015:49d2822e25-bbff-4bd9-9812-95edb189e4ab -> ../../sda1

  5. lrwxrwxrwx. 1rootroot10Apr1101:55e8cc2ee7-03df-4535-9581-c6f1bf7dd7d1 -> ../../sda3

  6. lrwxrwxrwx. 1rootroot10Apr1015:49fb381ef9-6557-422f-bdcd-7acc90ec8d54 -> ../../sda2

  7.  

  8. [root@localhostdata]# blkid /dev/sda3

  9. /dev/sda3: UUID="e8cc2ee7-03df-4535-9581-c6f1bf7dd7d1"TYPE="ext4"

(责任编辑:IT)