

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.


使用ext4 格式化分区




ext4 分区挂载到/data 目录下

mount -a 挂载

已经挂在到/data目录下了
fdisk -S 63 /dev/vdb
mkfs.ext4 /dev/vdb1
echo '/dev/vdb1 /data ext4 defaults 0 0' >> /etc/fstab
mount -a