Fdisk-l look at the hard drive and see that there is no partition here is/dev/xvdb
Fdisk/dev/xvdb Input M View Help
Enter N to create the partition, enter p to create the primary partition first .... Enter ENTER
Last ... Enter +2G to create a 2G primary partition
n re-create the input e to set up the extended partition
First .... Enter ENTER
Last ... Enter ENTER
Re-enter N to build the extension
Input L (l = extended partition)
First Enter Enter
Last input +2g to create an extended partition of 2G
Division is finished, of course, to format.
MKFS of the Format command (make filesystem)
Syntax: mkfs [-vv][fs][-f < file system type >][device name] [number of blocks]
Parameters
FS Specifies the parameters when the file system is established.
-t< File System type > Specifies what file system to build.
-V Displays version information with detailed usage methods.
-V shows a brief use of the method.
Mkfs-t ext2/dev/xvdb1 Formatting
The File System Format tool supported by our system is cramfs,ext2,ext3,ext4,mddos,vfat and so on.
This article is from the "Sky Blue Star" blog, please be sure to keep this source http://jingkonglanxing.blog.51cto.com/1152128/1630573
Linux partitioning learning [CentOS]