Fdisk comes from IBM's old partitioning tools, supports most operating systems, and almost all Linux distributions are installed with disk, including Linux's resure mode, which is still available.
Fdisk is a partitioning tool for opportunity MBR, and it is not possible to partition with Fdisk if you need to use GPT.
The FDISK command can only be run by the root user
Use Fdisk-l to list all installed disks and their partition information
Use fdisk/dev/sda/to partition the target disk
Type m to get help information
The steps to create a primary partition are as follows:
To create an extended partition, follow these steps:
The steps to create a logical partition are as follows:
After the partition is created, set the partition type:
After Setup, type W to save and exit.
Sometimes, after partitioning, you need to use Portprobe to let the kernel update the partition information
#cat/proc/partitions View partition information
Linux fdisk partitioning tool