1
<!-- retain these comments for translator revision tracking -->
2
<!-- $Id: x86.xml 42250 2006-10-26 15:29:36Z fjp $ -->
5
<sect2 arch="x86"><title>Partitioning for &arch-title;</title>
8
If you have an existing other operating system such as DOS or Windows and
9
you want to preserve that operating system while installing Ubuntu, you may
10
need to resize its partition to free up space for the Ubuntu installation.
11
The installer supports resizing of both FAT and NTFS filesystems; when you
12
get to the installer's partitioning step, select the option
13
<guimenuitem>Manual</guimenuitem> and then simply select an existing
14
partition and change its size.
18
The PC BIOS generally adds additional constraints for disk
19
partitioning. There is a limit to how many <quote>primary</quote> and
20
<quote>logical</quote> partitions a drive can contain. Additionally, with pre
21
1994–98 BIOSes, there are limits to where on the drive the BIOS can boot
22
from. More information can be found in the
23
<ulink url="&url-partition-howto;">Linux Partition HOWTO</ulink> and the
24
<ulink url="&url-phoenix-bios-faq-large-disk;">Phoenix BIOS FAQ</ulink>, but
25
this section will include a brief overview to help you plan most situations.
29
<quote>Primary</quote> partitions are the original partitioning scheme for PC
30
disks. However, there can only be four of them. To get past this
31
limitation, <quote>extended</quote> and <quote>logical</quote> partitions were invented. By
32
setting one of your primary partitions as an extended partition, you
33
can subdivide all the space allocated to that partition into logical
34
partitions. You can create up to 60 logical partitions per extended
35
partition; however, you can only have one extended partition per
40
Linux limits the partitions per drive to 15 partitions for SCSI disks
41
(3 usable primary partitions, 12 logical partitions), and 63
42
partitions on an IDE drive (3 usable primary partitions, 60 logical
43
partitions). However the normal Ubuntu system provides
44
only 20 devices for partitions, so you may not install on partitions
45
higher than 20 unless you first manually create devices for those
50
If you have a large IDE disk, and are using neither LBA addressing,
51
nor overlay drivers (sometimes provided by hard disk manufacturers),
52
then the boot partition (the partition containing your kernel image)
53
must be placed within the first 1024 cylinders of your hard drive
54
(usually around 524 megabytes, without BIOS translation).
58
This restriction doesn't apply if you have a BIOS newer than around
59
1995–98 (depending on the manufacturer) that supports the <quote>Enhanced
60
Disk Drive Support Specification</quote>. Both Lilo, the Linux loader, and
61
Ubuntu's alternative <command>mbr</command> must use the BIOS to read the
62
kernel from the disk into RAM. If the BIOS int 0x13 large disk access
63
extensions are found to be present, they will be utilized. Otherwise,
64
the legacy disk access interface is used as a fall-back, and it cannot
65
be used to address any location on the disk higher than the 1023rd
66
cylinder. Once Linux is booted, no matter what BIOS your computer
67
has, these restrictions no longer apply, since Linux does not use the
72
If you have a large disk, you might have to use cylinder translation
73
techniques, which you can set from your BIOS setup program, such as
74
LBA (Logical Block Addressing) or CHS translation mode (<quote>Large</quote>).
75
More information about issues with large disks can be found in the
76
<ulink url="&url-large-disk-howto;">Large Disk HOWTO</ulink>. If you
77
are using a cylinder translation scheme, and the BIOS does not support
78
the large disk access extensions, then your boot partition has to fit
79
within the <emphasis>translated</emphasis> representation of the
84
The recommended way of accomplishing this is to create a small (25–50MB
85
should suffice) partition at the beginning of the disk to be used as
86
the boot partition, and then create whatever other partitions you wish
87
to have, in the remaining area. This boot partition
88
<emphasis>must</emphasis> be mounted on <filename>/boot</filename>,
89
since that is the directory where the Linux kernel(s) will be stored.
90
This configuration will work on any system, regardless of whether LBA
91
or large disk CHS translation is used, and regardless of whether your
92
BIOS supports the large disk access extensions.