The Linux system fdisk command creates a new partition
--fdisk command
Fdisk-l/DEV/SDA # Viewing partitions
FDISK/DEV/SDA # Creating partitions
N # New Partition
(e # Create an extended partition)
(P # Create primary partition)
(t # Change the partition type)
P # View Partitions
W # Write information to disk
Partx-d/DEV/SDA
Partx-a/DEV/SDA
--Formatting partitions
Mkfs-t EXT3/DEV/SDA5 (newly created partition)
--Create a directory mount partition
Mkdir/data
Mount/dev/sda5/data # mount Partition to/data
--Let the mounted partition take effect permanently
Vi/etc/fstab
Add an article:/dev/sda5/data ext3 defaults 0 0
The first 0 means no backup, and the second 0 means no check.
--Re-mount/dev/sda5
Mount-o Remount/dev/sda5
Description
1. Hard drive = primary partition + Extended partition
Extended partition = sum of each logical partition
2, a system can be as long as a primary partition.
The Linux system fdisk command creates a new partition