Debian 開發人員配置了幾種在不同硬碟及電腦架構上的分割區程式。下面是一個適合您的架構的程式列表。
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.
最早的 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 完全不瞭解 FreeBSD 的分割區,而且裝置名稱也可能有所不同。
One of these programs will be run by default when you select (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”.
If you have an existing other operating system such as DOS or 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 and then simply select an existing partition and change its size.
PC BIOS 一般會對磁碟分割區加入一些限制。比如說一個磁碟可以包含多少個 “主 (primry)” 和 “邏輯”分割區。在 1994—1998 年的 BIOS 裡, BIOS 能夠從什麼地方開機還受到限制。詳細資訊可以在 Linux Partition HOWTO 以及 Phoenix BIOS 常見問答集中找到。但是這一節會有一個簡單的介紹,來幫助在大部分情況下進行規劃。
“主” 分割區是 PC 磁碟上最原始的分割區方式。但是,每個磁碟只能有四個主分區。為了突破這個限制,發明了 “延伸 (extended)” 以及 “ 邏輯 ” 分割區。將一個主分割區設定為延伸分割區,您可以將之分成許多邏輯分割區。每個延伸分割區最多可切割成 60 個邏輯分割區﹔但是每個磁碟只能有一個延伸分割區。
對於 SCSI 來說,Linux 限制每個磁碟最多有 15 個分割區( 3 個可用的主分割區,12 個邏輯分割區)。對於 IDE 來說可以有 63 個分割區( 3 個可用的主分割區, 60 個邏輯分割區)。但是通常 Debian GNU/Linux 系統只支持 20 個分割區裝置,因此您不能安裝超過 20 個的分割區,除非您先為這些分割區手動建立裝置檔案。
如果您有一個很大的 IDE 磁碟,既沒有使用 LBA 定址,也沒有 overlay 驅動程式 (硬碟製造商有時候提供此功能),那麼開機分割區 (含有您核心映像的分割區) 必須放置在硬碟第一個 1024 磁柱內。(在沒有 BIOS 轉換的情況下,大約有 524MB)。
如果您的 BIOS 在 1995—1998 年之後出產(取決於製造商)且支援 “Enhanced Disk Drive Support Specification” 則不受限。 Lilo , Linux Loader 以及 Debian 的替代方案 mbr 必須使用 BIOS 從磁碟讀取核心至記憶體。如果開啟 BIOS int 0x13 高容量硬碟的存取功能,則將被使用,否則合法的磁碟存取界面會拿來當備用方式,而且它不能定址任何大於 1023rd 磁柱的位置。一旦 Linux 啟動後,不管電腦的 BIOS 哪一種,這些限制將不再起任何作用,因為 Linux 不使用 BIOS 來存取硬碟。
如果您有一個大硬碟,您也許必須使用磁柱轉換(cylinder translation)技術。它可以透過 BIOS 設定程式中設定,比如 LBA (Logical Block Addressing) 或者 CHS 轉換模式(“Large”)。關於大硬碟的各種議題討論可以在 Large Disk HOWTO 下找到。如果您正在使用一個磁柱轉換方案,而 BIOS 不支援高容量硬碟的存取,您的開機分割區必須放置在 轉換後 的 1024 磁柱內。
The recommended way of accomplishing this is to create a small (25–50MB should suffice) partition at the beginning of the disk to be used as the boot partition, and then create whatever other partitions you wish to have, in the remaining area. This boot partition must be mounted on /boot, since that is the directory where the Linux kernel(s) will be stored. This configuration will work on any system, regardless of whether LBA or large disk CHS translation is used, and regardless of whether your BIOS supports the large disk access extensions.