FDISK command:
1. View the partition information for the disk:
Fdisk-l [-u] [device ...] : Lists the partitions on the specified disk device;
Fdisk-l CENTOS6 start end represents the start, end cylinder
Centos7 start end represents the start, end sector
ID is 16 binary display
2. Managing partitions
FDISK device
FDISK provides an interactive interface for managing partitions, which has a number of subcommands for different management functions, all of which are done in memory, not directly synchronized to disk, and saved to disk using the W command;
Common commands:
N: Create a new partition
D: Delete an existing partition
T: Modify the partition type
L: View all already ID
W: Save and exit
Q: Do not save and exit
M: View Help information
P: Show existing partition information
Note: In a new partition created on a disk device that has been partitioned and mounted on one of the partitions, the kernel may not be recognized directly after the creation is complete;
View: Cat/proc/partitions
Notifies the kernel to forcibly reread the disk partition table:
CentOS 5:partprobe [Device]
CentOS 6,7:partx, Kpartx
partx-a [Device]
KPARTX-AF [Device]
Partition creation Tool: parted, Sfdisk;
The Linux base fdisk partition