包含:使用 MBR 模式和 DOS 磁盘标签的 Parted BIOS
![]() 在此通知移除之前,请勿遵循此处的说明。 |
我们将使用 parted
实用程序对存储设备进行分区,以创建一个 /boot
分区,用于 Syslinux 引导加载程序。Syslinux 旨在与旧式 BIOS 和 MSDOS MBR 分区表一起使用。在此示例中,root
分区占用所有剩余空间。可以根据需要进行更改。
Syslinux 确实支持 GPT 分区表,但 GRUB2 是 UEFI 的更好选择(UEFI 只能与 GPT 一起使用)。
+---------------------------+------------------------+-----------------------+ | Partition name | Partition purpose | Filesystem type | +---------------------------+------------------------+-----------------------+ | /dev/sda1 | Boot partition | ext4 | | /dev/sda2 | Root partition | ext4 | +---------------------------+------------------------+-----------------------+

警告: 这将删除现有的分区表,并使您的数据非常难以恢复。如果您想双启动,请在此处停止并咨询专家。
要创建一个大约 100MB 的 Boot 分区以从中启动,
# parted -a optimal (parted) mklabel msdos (parted) mkpart primary ext4 0% 100M (parted) set 1 boot on (parted) mkpart primary ext4 100M 100%
要查看您的分区表,请在仍在 parted
中时键入 print
。您的结果应如下所示
(parted) print Model: ATA TOSHIBA ******** (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 99.6MB 98.6MB primary ext4 boot 2 99.6MB 1000GB 1000GB primary ext4