3.5. 為多重開機系統事先分割磁碟

分割您的硬碟指的僅是將您的硬碟空間切分成幾塊。分割之後,每一塊都是獨立於其餘部分的單獨空間。這和在一個大房幾里砌堵牆有幾分相似 如果您在其中一間房間裡安置傢俱,不會對其它房間有任何影響。

If you already have an operating system on your system (Windows 9x, Windows NT/2000/XP/2003/Vista/7, OS/2, MacOS, Solaris, FreeBSD, …) which uses the whole disk and you want to stick Debian on the same disk, you will need to repartition it. Debian requires its own hard disk partitions. It cannot be installed on Windows or Mac OS X partitions. It may be able to share some partitions with other Unix systems, but that's not covered here. At the very least you will need a dedicated partition for the Debian root filesystem.

You can find information about your current partition setup by using a partitioning tool for your current operating system, such as the integrated Disk Manager in Windows or fdisk in DOS. Partitioning tools always provide a way to show existing partitions without making changes.

在一般情況下,改動一個已經建立檔案系統的分割區,會導致其中的資料遭到損毀。因而,您每次都應當在重新分割之前先做好備份。繼續拿房幾作比喻,在移動牆壁時,您最好在把擋路的傢俱都移開,否則就要冒著傢俱被破壞的危險。

Several modern operating systems offer the ability to move and resize certain existing partitions without destroying their contents. This allows making space for additional partitions without losing existing data. Even though this works quite well in most cases, making changes to the partitioning of a disk is an inherently dangerous action and should only be done after having made a full backup of all data. For FAT/FAT32 and NTFS partitions as used by DOS and Windows systems, the ability to move and resize them losslessly is provided both by debian-installer as well as by the integrated Disk Manager of Windows 7.

To losslessly resize an existing FAT or NTFS partition from within debian-installer, go to the partitioning step, select the option for manual partitioning, select the partition to resize, and simply specify its new size.

Creating and deleting partitions can be done from within debian-installer as well as from an existing operating system. As a rule of thumb, partitions should be created by the system for which they are to be used, i.e. partitions to be used by Debian GNU/Linux should be created from within debian-installer and partitions to be used from another operating system should be created from there. debian-installer is capable of creating non-Linux partitions, and partitions created this way usually work without problems when used in other operating systems, but there are a few rare corner cases in which this could cause problems, so if you want to be sure, use the native partitioning tools to create partitions for use by other operating systems.

If you are going to install more than one operating system on the same machine, you should install all other system(s) before proceeding with the Debian installation. Windows and other OS installations may destroy your ability to start Debian, or encourage you to reformat non-native partitions.

儘管您可以在這些操作之後再恢復回來,也可以避免它們,但是首先安裝本地系統就能夠幫您免除這些煩惱。