經過lsblk命令查看ide
[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/fstabcode
UUID=c51eb23b-195c-4061-92a9-3fad812cc12f /data1 ext4 0 0
便可it