Linux disk partitions, primary partitions, extended partitions, and logical partitions take the sata interface as an example.
Zookeeper
Taking the sata interface (sda, sdb...) as an example,
1. Hard Disk restrictions. A maximum of four partitions can be set (primary partition + extended partition). The path is as follows,
/Dev/sda1
/Dev/sda2
/Dev/sda3
/Dev/sda4
2. Operating System Restrictions: the maximum number of extended partitions can be 1, which can be 3 (or below) Primary partitions + 1 extended partition,
3. Extended partitions use additional sectors to record logical partition information, which cannot be formatted,
4. partitions separated by extended partitions are called logical partitions and can be formatted.
5. The partition numbers 1, 2, 3, and 4 are reserved for the primary partition, extended partition, logical partition can only start from 5,/dev/sda5,
If a hard disk is separated by one primary partition, one extended partition, and two logical partitions, the partition path is:
/Dev/sda1
/Dev/sda2
/Dev/sda5
/Dev/sda6
6. If the extended partition is damaged, all the logical partitions will be deleted and the information of the logical partitions will be recorded in the extended partition,
7. Change the IDE Hard Drive path to sd to hd.