阿里云挂载数据盘方法

阿里云挂载数据盘方法

1、df -lh查看是否已经挂载
2、fdisk -l 查看需要挂载的数据盘信息
3、mount /dev/vdb /home
echo ‘/dev/vdb /home ext4 defaults 0 0’ >> /etc/fstab
df -lh

==============================

CentOS挂载磁盘:

sudo mount /dev/vdb /home

结果:

mount: /dev/vdb is write-protected, mounting read-only
mount: unknown filesystem type ‘(null)’

解决方法:

格式化磁盘:
sudo mkfs.ext4 /dev/vdb

重新挂载成功

Comments are closed, but trackbacks and pingbacks are open.