[root@ecshost~ ]# fdisk -u /dev/vdbWelcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x3e60020e.
Command (m for help):pDisk /dev/vdb: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dos
Disk identifier: 0x3e60020eDevice Boot Start End Blocks Id SystemCommand (m for help):nPartition type:
p primary (0 primary, 0 extended, 4 free)
e extendedSelect (default p):pPartition number (1-4, default 1):1First sector (2048-41943039, default 2048):Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039):Using default value 41943039Partition 1 of type Linux and of size 20 GiB is setCommand (m for help):pDisk /dev/vdb: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dos
Disk identifier: 0x3e60020eDevice Boot Start End Blocks Id System/dev/vdb1 2048 41943039 20970496 83 Linux
Command (m for help):wThe partition table has been altered!Calling ioctl() to re-read partition table.
Syncing disks.