我在 fdisk 中选择了一个要删除的分区,但是正如您看到的第三个交换分区也被删除了,为什么?
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 12584959 12582912 6G 83 Linux
/dev/sda2 12587006 20969471 8382466 4G 5 Extended
/dev/sda5 12587008 20969471 8382464 4G 82 Linux swap / Solaris
Command (m for help): d
Partition number (1,2,5, default 5): 2
Partition 2 has been deleted.
Command (m for help): p
Disk /dev/sda: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd2dfe316
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 12584959 12582912 6G 83 Linux
Command (m for help):