1.fdisk -l to view disk partition information
means 2.fdisk -l each field of
the first field: device identification name or
second field: boot indicate the boot partition or boot partition, boot the system from the current partition *
Third fields: start disk cylinder
fourth field: disk cylinder end position of
the fifth field: the size of the partition
sixth field: 83 represents a partition identification xfs, or ext4 file system, 82 represents a swap area, 8e represents lvm volume
of seven fields: identification information using a Linux system
3.fdisk common options
m help
n Create partition type: p primary partition, e extended partition, l logical partition
t partition format conversion
p displays disk information
w save and exit
q are not saved exit
d delete a partition
4. create a partition of the main issues
the primary partition up to four available 3, there can be only one extended partition, logical partitions must be created on an extended partition
The primary partition arranged
first to add a new hard disk centos7 off and then switched
6. Create a file system
7. Extended swap space partition