Partitioning Your Disks
Now it is time to partition your disks. If you are uncomfortable with
partitioning, or just want to know more details, see .
First you will be given the opportunity to automatically partition
either an entire drive, or free space on a drive. This is also called
guided
partitioning. If you do not want to
autopartition, choose Manually edit partition
table from the menu.
If you choose guided partitioning, you may have two options: to create
partitions directly on the hard disk (classic method) or to use Logical
Volume Management (LVM). In the second case, the installer will create most
partitions inside one big partition; the advantage of this method is that
partitions inside this big partition can be resized relatively easily later.
Note: the option to use LVM may not be available on all architectures.
If you choose guided partitioning using LVM, it will not be possible to
undo changes made in the partition table. This effectively erases all
data that is currently on the selected hard disk.
After you choose guided partitioning (either classic or using LVM), you
will be able to choose from the schemes listed in the table below.
All schemes have their pros and cons,
some of which are discussed in . If you are
unsure, choose the first one. Bear in mind that guided partitioning
needs a certain minimal amount of free space to operate with. If you don't
give it at least about 1GB of space (depends on chosen scheme), guided
partitioning will fail.
Partitioning scheme
Minimum space
Created partitions
All files in one partition
600MB
/, swap
Separate /home partition
500MB
/, /home, swap
Separate /home, /usr, /var and /tmp partitions
1GB
/, /home,
/usr, /var,
/tmp, swap
If you choose guided partitioning using LVM, the installer will also create
a separate /boot partition. The other partitions, except
for the swap partition, will be created inside the LVM partition.
If you choose guided partitioning for your IA64 system, there
will be an additional partition, formatted as a FAT16 bootable filesystem,
for the EFI boot loader.
There is also an additional menu item in the formatting menu to manually
set up a partition as an EFI boot partition.
If you choose guided partitioning for your Alpha system, an
additional, unformatted partition will be allocated at the beginning of
your disk to reserve this space for the aboot boot loader.
After selecting a scheme, the next screen will show your new partition
table, including information on whether and how partitions will be
formatted and where they will be mounted.
The list of partitions might look like this:
IDE1 master (hda) - 6.4 GB WDC AC36400L
#1 primary 16.4 MB B f ext2 /boot
#2 primary 551.0 MB swap swap
#3 primary 5.8 GB ntfs
pri/log 8.2 MB FREE SPACE
IDE1 slave (hdb) - 80.0 GB ST380021A
#1 primary 15.9 MB ext3
#2 primary 996.0 MB fat16
#3 primary 3.9 GB xfs /home
#5 logical 6.0 GB f ext3 /
#6 logical 1.0 GB f ext3 /var
#7 logical 498.8 MB ext3
#8 logical 551.5 MB swap swap
#9 logical 65.8 GB ext2
This example shows two IDE harddrives divided into several partitions;
the first disk has some free space. Each partition line consists of the
partition number, its type, size, optional flags, file system, and
mountpoint (if any). Note: this particular setup cannot be created using
guided partitioning but it does show possible variation that can be achieved
using manual partitioning.
This concludes the guided partitioning. If you are satisfied with the
generated partition table, you can choose Finish
partitioning and write changes to disk from the menu to
implement the new partition table (as described at the end of this
section). If you are not happy, you can choose to Undo
changes to partitions and run guided partitioning again, or
modify the proposed changes as described below for manual partitioning.
A similar screen to the one shown just above will be displayed if you
choose manual partitioning except that your existing partition table will
be shown and without the mount points. How to manually setup your partition
table and the usage of partitions by your new Debian system will be covered
in the remainder of this section.
If you select a pristine disk which doesn't have neither partitions
nor free space on it, you will be offered to create a new partition
table (this is needed so you can create new partitions). After this
a new line entitled FREE SPACE
should appear under the
selected disk.
If you select some free space, you will be offered to create new
partition. You will have to answer a quick series of questions about
its size, type (primary or logical), and location (beginning or end of
the free space). After this, you will be presented with detailed
overview of your new partition. There are options like mountpoint,
mount options, bootable flag, or way of usage. If you don't like the
preselected defaults, feel free to change them to your liking. E.g. by
selecting the option Use as:, you can
choose different filesystem for this partition including the
possibility to use the partition for swap, software RAID, LVM, or not
use it at all. Other nice feature is the possibility to copy data from
existing partition onto this one.
When you are satisfied with your new partition, select
Done setting up the partition and you will be
thrown back to partman's main screen.
If you decide you want to change something about your partition,
simply select the partition, which will bring you to the partition
configuration menu. Because this is the same screen like when creating
a new partition, you can change the same set of options. One thing
which might not be very obvious at a first glance is that you can
resize the partition by selecting the item displaying the size of the
partition. Filesystems known to work are at least fat16, fat32, ext2,
ext3 and swap. This menu also allows you to delete a partition.
Be sure to create at least two partitions: one for the
root filesystem (which must be mounted as
/) and one for swap. If you
forget to mount the root filesystem, partman won't
let you continue until you correct this issue.
If you forget to select and format an EFI boot partition,
partman will detect this and will not let you continue
until you allocate one.
Capabilities of partman can be extended with installer
modules, but are dependent on your system's architecture. So if you can't
see all promised goodies, check if you have loaded all required modules
(e.g. partman-ext3, partman-xfs,
or partman-lvm).
After you are satisfied with partitioning, select Finish
partitioning and write changes to disk from the partitioning
menu. You will be presented with a summary of changes made to the disks
and asked to confirm that the filesystems should be created as requested.