Centos7查看磁盘UUID方法

作者: ls 分类: Linux 发布时间: 2018-01-08 22:05

第一种:

[root@localhost ~]# blkid
 /dev/sda1: UUID="864143d8-8a1e-46e7-9fa1-7bd654023bfb" TYPE="xfs"
 /dev/sda2: UUID="f4700300-fa94-4bc6-aa37-894d0632d22f" TYPE="swap"
 /dev/sda3: UUID="ae1700db-440a-45aa-92b1-ff0212c4adba" TYPE="xfs"
 /dev/sda5: UUID="4e6afab2-549d-451b-ad8a-c473da2a6d5a" TYPE="xfs"
 /dev/sr0: UUID="2017-09-06-10-51-00-00" LABEL="CentOS 7 x86_64" TYPE="iso9660" PTTYPE="dos"

第二种:

[root@localhost ~]# lsblk -f
 NAME FSTYPE LABEL UUID MOUNTPOINT
 sda
 ├─sda1 xfs 864143d8-8a1e-46e7-9fa1-7bd654023bfb /boot
 ├─sda2 swap f4700300-fa94-4bc6-aa37-894d0632d22f [SWAP]
 ├─sda3 xfs ae1700db-440a-45aa-92b1-ff0212c4adba /
 ├─sda4
 └─sda5 xfs 4e6afab2-549d-451b-ad8a-c473da2a6d5a
 sdb
 sr0 iso9660 CentOS 7 x86_64
 2017-09-06-10-51-00-00

第三种:

[root@localhost ~]# ll /dev/disk/by-uuid/
总用量 0
lrwxrwxrwx 1 root root 9 1月 9 04:24 2017-09-06-10-51-00-00 -> ../../sr0
lrwxrwxrwx 1 root root 10 1月 9 05:31 4e6afab2-549d-451b-ad8a-c473da2a6d5a -> ../../sda5
lrwxrwxrwx 1 root root 10 1月 9 05:31 864143d8-8a1e-46e7-9fa1-7bd654023bfb -> ../../sda1
lrwxrwxrwx 1 root root 10 1月 9 05:31 ae1700db-440a-45aa-92b1-ff0212c4adba -> ../../sda3
lrwxrwxrwx 1 root root 10 1月 9 05:31 f4700300-fa94-4bc6-aa37-894d0632d22f -> ../../sda2

温馨提示:如无特殊说明,本站文章均为作者原创,转载请注明出处!

发表回复