# mkfs.xfs /dev/vdb
# blkid /dev/vdb | awk -F "\"" '{print $2}' | xargs -i echo "UUID={} /opt ext4 defaults 1 2 " >> /etc/fstab
# mount -a
# mkfs.xfs /dev/vdb
# blkid /dev/vdb | awk -F "\"" '{print $2}' | xargs -i echo "UUID={} /opt ext4 defaults 1 2 " >> /etc/fstab
# mount -a
本文标题:【shell】用uuid做磁盘挂载
本文链接:https://www.haomeiwen.com/subject/pejvlrtx.html
网友评论