Usually in addition to the disk or new system, it is essential to format the disk, partition, mount the partition. Played Ali and other virtual host friends know that the data disk is required to partition and mount, for the novice is indeed a difficult problem, special note, for reference.
Use the DF-LH command to see that the system has only a system disk.
Using Fdisk-l to view the disk situation, you can see from the following figure that there is one disk that is not partitioned and remembers the identity of the partition, here we are/dev/xvdb:
To perform FDISK/DEV/XVDB on the disk partition, you need to enter "n", "P", "1", two times carriage return, "WQ":
Fdisk/dev/xvdb
After the completion of the fdisk-l can see the partition of the disk, and remember that the letter logo we are here/DEV/XVDB1, since the division is not a good area. The answer is no, it's not done yet.
Format partitions:
Mkfs.ext4/dev/xvdb1
After the format is completed, the mount partition is mounted:
1. Write partition information to Fstab
Echo '/dev/xvdb1/mjydata ext4 defaults 0 0 ' >>/etc/fstab
2. Mount Partition
Mount-a
Again with the DF-LH command to view, there will be a new partition:
Up to this point, the entire Linux disk partition is mounted and loaded.