fdisk -l , view disk capacity and partition status
fdisk /dev/xvdb , partition the disk (according to the prompt, enter " n ", " p ", " 1 " in turn, press Enter twice , " wq ", the partitioning starts and will be completed soon)
n means new partition, p identifies the primary partition, 1 is the partition number, carriage return means use the default value cylinder, wq means perform the partition operation
df -l , check the partition mount status mkfs.ext3 /dev/xvdb1 , format the partition as ext3,
mount /dev/xvdb1 /soft , mount the partition to the path /soft
vi /etc/fstab , auto-mount partition
/dev/xvdb1 /soft ext3 defaults 0 0
parted /dev/hda , print list , disk partition and file system view