1 Ubuntu server 关机,新增加磁盘
2 启动ubuntu虚拟机,分区和挂载磁盘
sudo fdisk /dev/sdb
#查看磁盘UUID
sudo blkid
#创建挂载目录
sudo mkdir /mnt/data
#
sudo vi /etc/fstab
/dev/disk/by-uuid/0b440ed0-b28b-4756-beeb-10c585e3d101 /mnt/data ext4 defaults 0 1
#加载
sudo systemctl daemon-reload
sudo mount -a /etc/fstab
#查看
df -h