1、先查看下磁盘
df -h
2、查看下磁盘挂载情况
fdisk -l
3、格盘
fdisk /dev/vdb
4、查看下磁盘挂载情况
fdisk -l
5、快速格式化
mkfs.ext3 /dev/vdb1
6、建个alidata目录
mkdir alidata
7、把挂载信息写到 /etc/fstab里面
echo /dev/vdb1 /alidata/ ext3 >> /etc/fstab
8、查看 /etc/fstab
vim /etc/fstab
9、挂载磁盘
mount /dev/vdb1
10、查看磁盘有没有挂载上
df -h