查看设备uuid的命令-blkid
查看设备uuid的命令-blkid
在关联/etc/fstab的时候可以使用
[root@mapper ~]# blkid
/dev/sda1: UUID="285510be-b191-423c-91ab-25f793c967bb" TYPE="swap"
/dev/sda2: UUID="1ca0e169-01ae-426e-a62d-f06641136c5a" TYPE="xfs"
/dev/sr0: UUID="2017-09-06-10-51-00-00" LABEL="CentOS 7 x86_64" TYPE="iso9660" PTTYPE="dos"
/dev/sdb1: UUID="nf35Bh-Pkqn-OvfZ-pj4j-QtOo-578N-Ve49Ur" TYPE="LVM2_member"
/dev/sdb2: UUID="Wz3Vlk-VzR7-qQ0M-YZcM-5VGG-t1u7-TWP8Is" TYPE="LVM2_member"
/dev/mapper/vgdata-lvdata1: UUID="eaf25b26-ebcd-44fe-8063-0ef95f66f2c9" TYPE="ext4"