[root@Centos6.8-180 ~]# blkid /dev/sda3 #查看设备的信息
/dev/sda3: LABEL="MYDATA" UUID="98873684-812d-40ae-86ad-5065e17d205b" SEC_TYPE="ext2" TYPE="ext3"
[root@Centos6.8-180 ~]# blkid -L MYDATA #根据卷标去定位设备
/dev/sda3
[root@Centos6.8-180 ~]# blkid -U 98873684-812d-40ae-86ad-5065e17d205b #根据UUID去定位设备
/dev/sda3
[root@Centos6.8-180 ~]# blkid -s LABEL /dev/sda3 #显示卷标名
/dev/sda3: LABEL="MYDATA"
[root@Centos6.8-180 ~]# blkid -s UUID /dev/sda3 #显示UUID
/dev/sda3: UUID="791874b0-b9e9-4b00-adc1-a9425432d8f7"
[root@Centos6.8-180 ~]# blkid -s TYPE /dev/sda3 #显示文件系统类型
/dev/sda3: TYPE="ext3"
原文地址:http://zhucke.blog.51cto.com/180229/1906365