| 1 |
toff |
4074 |
<!-- retain these comments for translator revision tracking -->
|
| 2 |
guillem |
28738 |
<!-- original version: 28672 untranslated -->
|
| 3 |
toff |
4074 |
|
| 4 |
toff |
3320 |
<sect1 id="partition-programs">
|
| 5 |
|
|
<title>Debian Partitioning Programs</title>
|
| 6 |
|
|
<para>
|
| 7 |
|
|
|
| 8 |
|
|
Several varieties of partitioning programs have been adapted by Debian
|
| 9 |
|
|
developers to work on various types of hard disks and computer
|
| 10 |
|
|
architectures. Following is a list of the program(s) applicable for
|
| 11 |
|
|
your architecture.
|
| 12 |
|
|
|
| 13 |
|
|
</para>
|
| 14 |
|
|
|
| 15 |
|
|
<variablelist>
|
| 16 |
|
|
|
| 17 |
mck-guest |
11012 |
<varlistentry>
|
| 18 |
|
|
<term><command>partman</command></term>
|
| 19 |
|
|
<listitem><para>
|
| 20 |
|
|
|
| 21 |
|
|
Recommended partitioning tool in Debian. This swiss army knife can
|
| 22 |
guillem |
24483 |
also resize partitions, create filesystems
|
| 23 |
|
|
<phrase arch="i386"> (<quote>format</quote> in Windows speak)</phrase>
|
| 24 |
|
|
and assign them to the mountpoints.
|
| 25 |
mck-guest |
11012 |
|
| 26 |
|
|
</para></listitem>
|
| 27 |
|
|
</varlistentry>
|
| 28 |
|
|
|
| 29 |
toff |
4120 |
<varlistentry condition="fdisk.txt">
|
| 30 |
toff |
3320 |
<term><command>fdisk</command></term>
|
| 31 |
|
|
<listitem><para>
|
| 32 |
|
|
|
| 33 |
guillem |
27664 |
The original Linux disk partitioner, good for gurus.
|
| 34 |
toff |
3320 |
|
| 35 |
|
|
</para><para>
|
| 36 |
|
|
|
| 37 |
|
|
Be careful if you have existing FreeBSD partitions on your machine.
|
| 38 |
|
|
The installation kernels include support for these partitions, but the
|
| 39 |
|
|
way that <command>fdisk</command> represents them (or not) can make the
|
| 40 |
guillem |
28738 |
device names differ. See the
|
| 41 |
toff |
3320 |
<ulink url="&url-linux-freebsd;">Linux+FreeBSD HOWTO</ulink>
|
| 42 |
|
|
|
| 43 |
|
|
</para></listitem>
|
| 44 |
|
|
</varlistentry>
|
| 45 |
|
|
|
| 46 |
toff |
4120 |
<varlistentry condition="cfdisk.txt">
|
| 47 |
toff |
3320 |
<term><command>cfdisk</command></term>
|
| 48 |
|
|
<listitem><para>
|
| 49 |
|
|
|
| 50 |
guillem |
27664 |
A simple-to-use, full-screen disk partitioner for the rest of us.
|
| 51 |
toff |
3320 |
|
| 52 |
|
|
</para><para>
|
| 53 |
|
|
|
| 54 |
|
|
Note that <command>cfdisk</command> doesn't understand FreeBSD
|
| 55 |
|
|
partitions at all, and, again, device names may differ as a result.
|
| 56 |
|
|
|
| 57 |
|
|
</para></listitem>
|
| 58 |
|
|
</varlistentry>
|
| 59 |
|
|
|
| 60 |
toff |
4120 |
<varlistentry condition="atari-fdisk.txt">
|
| 61 |
toff |
3320 |
<term><command>atari-fdisk</command></term>
|
| 62 |
|
|
<listitem><para>
|
| 63 |
|
|
|
| 64 |
guillem |
27664 |
Atari-aware version of <command>fdisk</command>.
|
| 65 |
toff |
3320 |
|
| 66 |
|
|
</para></listitem>
|
| 67 |
|
|
</varlistentry>
|
| 68 |
|
|
|
| 69 |
toff |
4120 |
<varlistentry condition="amiga-fdisk.txt">
|
| 70 |
toff |
3320 |
<term><command>amiga-fdisk</command></term>
|
| 71 |
|
|
<listitem><para>
|
| 72 |
|
|
|
| 73 |
guillem |
27664 |
Amiga-aware version of <command>fdisk</command>.
|
| 74 |
toff |
3320 |
|
| 75 |
|
|
</para></listitem>
|
| 76 |
|
|
</varlistentry>
|
| 77 |
|
|
|
| 78 |
toff |
4120 |
<varlistentry condition="mac-fdisk.txt">
|
| 79 |
toff |
3320 |
<term><command>mac-fdisk</command></term>
|
| 80 |
|
|
<listitem><para>
|
| 81 |
|
|
|
| 82 |
guillem |
27664 |
Mac-aware version of <command>fdisk</command>.
|
| 83 |
toff |
3320 |
|
| 84 |
|
|
</para></listitem>
|
| 85 |
|
|
</varlistentry>
|
| 86 |
|
|
|
| 87 |
toff |
4120 |
<varlistentry condition="pmac-fdisk.txt">
|
| 88 |
toff |
3320 |
<term><command>pmac-fdisk</command></term>
|
| 89 |
|
|
<listitem><para>
|
| 90 |
|
|
|
| 91 |
|
|
PowerMac-aware version of <command>fdisk</command>, also used by BVM
|
| 92 |
guillem |
27664 |
and Motorola VMEbus systems.
|
| 93 |
toff |
3320 |
|
| 94 |
|
|
</para></listitem>
|
| 95 |
|
|
</varlistentry>
|
| 96 |
|
|
|
| 97 |
toff |
4120 |
<varlistentry condition="fdasd.txt">
|
| 98 |
toff |
3320 |
<term><command>fdasd</command></term>
|
| 99 |
|
|
<listitem><para>
|
| 100 |
|
|
|
| 101 |
|
|
&arch-title; version of <command>fdisk</command>; Please read the
|
| 102 |
guillem |
27664 |
fdasd manual page or chapter 13 in
|
| 103 |
toff |
3320 |
<ulink url="http://oss.software.ibm.com/developerworks/opensource/linux390/docu/l390dd08.pdf">
|
| 104 |
guillem |
28738 |
Device Drivers and Installation Commands</ulink> for details.
|
| 105 |
toff |
3320 |
|
| 106 |
|
|
</para></listitem>
|
| 107 |
|
|
</varlistentry>
|
| 108 |
|
|
</variablelist>
|
| 109 |
|
|
|
| 110 |
|
|
<para>
|
| 111 |
|
|
|
| 112 |
|
|
One of these programs will be run by default when you select
|
| 113 |
mck-guest |
11012 |
<guimenuitem>Partition a Hard Disk</guimenuitem>. If the one which is run by default isn't
|
| 114 |
toff |
3320 |
the one you want, quit the partitioner, go to the shell
|
| 115 |
toff |
4370 |
(<userinput>tty2</userinput>) by pressing <keycap>Alt</keycap>
|
| 116 |
|
|
and <keycap>F2</keycap> keys together, and manually type in the
|
| 117 |
toff |
3320 |
name of the program you want to use (and arguments, if any). Then
|
| 118 |
mck-guest |
11012 |
skip the <guimenuitem>Partition a Hard Disk</guimenuitem> step in
|
| 119 |
toff |
3320 |
<command>debian-installer</command> and continue to the next step.
|
| 120 |
|
|
|
| 121 |
|
|
</para><para>
|
| 122 |
|
|
|
| 123 |
|
|
If you will be working with more than 20 partitions on your ide disk,
|
| 124 |
|
|
you will need to create devices for partitions 21 and beyond. The next
|
| 125 |
|
|
step of initializing the partition will fail unless a proper device is
|
| 126 |
|
|
present. As an example, here are commands you can use in
|
| 127 |
|
|
<userinput>tty2</userinput> or under Execute A Shell to add a device
|
| 128 |
|
|
so the 21st partition can be initialized:
|
| 129 |
|
|
|
| 130 |
|
|
<informalexample><screen>
|
| 131 |
guillem |
24849 |
# cd /dev
|
| 132 |
guillem |
28738 |
# mknod hda21 b 3 21
|
| 133 |
guillem |
24849 |
# chgrp disk hda21
|
| 134 |
|
|
# chmod 660 hda21
|
| 135 |
toff |
3320 |
</screen></informalexample>
|
| 136 |
|
|
|
| 137 |
|
|
Booting into the new system will fail unless proper devices are present
|
| 138 |
|
|
on the target system. After installing the kernel and modules, execute:
|
| 139 |
|
|
|
| 140 |
|
|
<informalexample><screen>
|
| 141 |
guillem |
24849 |
# cd /target/dev
|
| 142 |
guillem |
28738 |
# mknod hda21 b 3 21
|
| 143 |
guillem |
24849 |
# chgrp disk hda21
|
| 144 |
|
|
# chmod 660 hda21
|
| 145 |
toff |
3320 |
</screen></informalexample>
|
| 146 |
|
|
|
| 147 |
guillem |
24849 |
<phrase arch="i386">Remember to mark your boot partition as
|
| 148 |
|
|
<quote>Bootable</quote>.</phrase>
|
| 149 |
toff |
3320 |
|
| 150 |
toff |
4120 |
</para><para condition="mac-fdisk.txt">
|
| 151 |
toff |
3320 |
|
| 152 |
guillem |
27664 |
One key point when partitioning for Mac type disks is that the
|
| 153 |
|
|
swap partition is identified by its name; it must be named `swap'.
|
| 154 |
guillem |
28738 |
All Mac linux partitions are the same partition type,
|
| 155 |
|
|
Apple_UNIX_SRV2. Please read the fine manual. We also suggest reading the
|
| 156 |
toff |
3320 |
<ulink url="&url-mac-fdisk-tutorial;">mac-fdisk Tutorial</ulink>, which
|
| 157 |
|
|
includes steps you should take if you are sharing your disk with
|
| 158 |
guillem |
28738 |
MacOS.
|
| 159 |
toff |
3320 |
|
| 160 |
|
|
</para>
|
| 161 |
|
|
|
| 162 |
barbier |
4149 |
&partition-alpha.xml;
|
| 163 |
|
|
&partition-hppa.xml;
|
| 164 |
|
|
&partition-i386.xml;
|
| 165 |
|
|
&partition-ia64.xml;
|
| 166 |
|
|
&partition-mips.xml;
|
| 167 |
|
|
&partition-powerpc.xml;
|
| 168 |
|
|
&partition-sparc.xml;
|
| 169 |
toff |
3320 |
|
| 170 |
|
|
</sect1>
|