通过lsblk命令查看
[root@3 ~]# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sr0 iso9660 config-2 2019-06-24-05-58-09-00
vda
└─vda1 ext4 409c6895-f504-4501-974a-1e198938013e /
vdb
└─vdb1 ext4 4a11bfba-98da-48e0-bdf7-adc836839d65 /data
如上所示,4a11bfba-98da-48e0-bdf7-adc836839d65就是分区/dev/vdb的UUID 然后编辑**# vi /etc/fstab**
UUID=c51eb23b-195c-4061-92a9-3fad812cc12f /data1 ext4 0 0 即可