C.5. Debian 分割程式

Debian 開發人員配置了幾種在不同硬碟及電腦架構上的分割區程式。下面是一個適合您的架構的程式列表。

partman

Recommended partitioning tool in Debian. This Swiss army knife can also resize partitions, create filesystems (format in Windows speak) and assign them to the mountpoints.

fdisk

最早的 Linux 磁碟分割區工具,對高手來說很好用。

Be careful if you have existing FreeBSD partitions on your machine. The installation kernels include support for these partitions, but the way that fdisk represents them (or not) can make the device names differ. See the Linux+FreeBSD HOWTO.

cfdisk

一個簡單易用,給其它人使用的是全螢幕磁碟分割區程式。

請注意 cfdisk 完全不瞭解 FreeBSD 的分割區,而且裝置名稱也可能有所不同。

One of these programs will be run by default when you select Partition disks (or similar). It may be possible to use a different partitioning tool from the command line on VT2, but this is not recommended.

Remember to mark your boot partition as Bootable.

C.5.1. 為 64-bit PC 分割

If you are using a new harddisk (or want to wipe out the whole partition table of your disk), a new partition table needs to be created. The Guided partitioning does this automatically, but when partitioning manually, move the selection on the top-level entry of the disk and hit Enter. That will create a new partition table on that disk. In expert mode, you will then be asked for the type of the partition table. Default for UEFI-based systems is gpt, while for the older BIOS world the default value is msdos. In a standard priority installation those defaults will be used automatically.

[注意] 注意

When a partition table with type gpt was selected (default for UEFI systems), a free space of 1 MB will automatically get created at the beginning of the disk. This is intended and required to embed the GRUB2 bootloader.

If you have an existing other operating system such as Windows and you want to preserve that operating system while installing Debian, you may need to resize its partition to free up space for the Debian installation. The installer supports resizing of both FAT and NTFS filesystems; when you get to the installer's partitioning step, select the option Manual and then simply select an existing partition and change its size.

While modern UEFI systems don't have such limitations as listed below, the old PC BIOS generally adds additional constraints for disk partitioning. There is a limit to how many primary and logical partitions a drive can contain.

分割區是 PC 磁碟上最原始的分割區方式。但是,每個磁碟只能有四個主分區。為了突破這個限制,發明了 延伸 (extended) 以及 邏輯 分割區。將一個主分割區設定為延伸分割區,您可以將之分成許多邏輯分割區。每個延伸分割區最多可切割成 60 個邏輯分割區﹔但是每個磁碟只能有一個延伸分割區。