1.查看分区fdisk -l
2.给/dev/xvdb1分区,命令:fdisk /dev/xvdb1
3.格式化分区,命令:mke2fs -t ext4 /dev/xvdb1
4.自动开机挂载
vi /etc/fstab
# /etc/fstab
# Created by anaconda on Tue May 3 13:48:10 2016
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=80b9b662-0a1d-4e84-b07b-c1bf19e72d97 / ext4 defaults 1 1
/dev/xvdb1 /data ext4 defaults 1 1
还没有任何评论,你来说两句吧