初始化数据盘分区挂载
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114550350-1311185749.png)
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114551428-136190960.png)
fdisk -S 63 /dev/vdb
根据提示,依次输入“n”,“p”“1”,两次回车,“wq”,分区就开始了,很快就会完成。
fdisk -S sects
Specify the number of sectors per track of the disk. (Not the physical number, of course, but the number used for partition tables.) A reasonable value is 63. This option is DEPRECATED.
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114554678-24276328.png)
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114554912-862026444.png)
使用ext4 格式化分区
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114555740-296690054.png)
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114556006-1669256886.png)
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114556756-163224750.png)
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114555740-296690054.png)
ext4 分区挂载到/data 目录下
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114556006-1669256886.png)
mount -a 挂载
![](https://images2015.cnblogs.com/blog/672227/201704/672227-20170427114556756-163224750.png)
已经挂在到/data目录下了
fdisk -S 63 /dev/vdb
mkfs.ext4 /dev/vdb1
echo '/dev/vdb1 /data ext4 defaults 0 0' >> /etc/fstab
mount -a