1. View Data disk
Before partitioning and formatting the data disk, using the "df-h" command, you cannot see the data disk, you can use the "fdisk-l" command to view.
2. Partitioning the data disk
Execute "FDISK/DEV/XVDB" according to the prompt input "n", "P" "1", two times the carriage return, "Wq", the partition begins. Finished soon.
3. View the new partition
Fdisk-l
4. Formatting partitions
Mkfs.ext3/dev/xvdb1
5. Adding partition information
Echo '/dev/xvdb1/disk1 ext3 defaults 0 0 ' >>/etc/fstab
6. Mount a new partition
Mount the new partition using MOUNT-A, and then use the Df-h command to see the following message indicating that the mount was successful.
Manipulate the/disk1 folder, which represents the direct operation Partition/DEV/XVDB
Warning
1-mount:you must specify the filesystem type
You need to execute the format partition command MKFS.EXT3/DEV/XVDB1
2-mount to which folder
/mkdir Disk1
$mount/dev/xvdv1/disk1
Reference
Http://blog.chinaunix.net/uid-23929712-id-2650378.html
http://my.oschina.net/leejun2005/blog/290073
Linux System Mount Data disk