/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.39 Revision 1.51
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.39 2007/05/08 21:14:30 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.51 2012/10/06 19:54:14 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract>
12To be able to install Gentoo, you must create the necessary partitions.
13This chapter describes how to partition a disk for future usage.
14</abstract>
15
11<version>8.0</version> 16<version>12</version>
12<date>2007-05-07</date> 17<date>2012-10-06</date>
13 18
14<section> 19<section>
15<title>Introduction to Block Devices</title> 20<title>Introduction to Block Devices</title>
16<subsection>
17<title>Block Devices</title>
18<body>
19 21
20<p>
21We'll start by taking a good look at disk-oriented aspects of Gentoo Linux
22and Linux in general, including Linux filesystems, partitions and block devices.
23Then, once you're familiar with the ins and outs of disks and filesystems,
24you'll be guided through the process of setting up partitions and filesystems
25for your Gentoo Linux installation.
26</p>
27
28<p>
29To begin, we'll introduce <e>block devices</e>. The most common block device is
30the one that represents the first IDE drive in a Linux system, namely
31<path>/dev/hda</path>. If you are installing onto SCSI, FireWire, USB or SATA
32drives, then your first hard drive would be <path>/dev/sda</path>. Additional
33drives are enumerated by the next letter in the alphabet. As an example, the
34third IDE disk could be found at <path>/dev/hdc</path>.
35</p>
36
37<p>
38The block devices above represent an abstract interface to the disk. User
39programs can use these block devices to interact with the disk without worrying
40about whether the drives are IDE, SCSI or something else. The program can
41simply address the storage on the disk as a bunch of contiguous,
42randomly-accessible 512-byte blocks.
43</p>
44
45</body>
46</subsection> 22<subsection>
23<include href="hb-install-blockdevices.xml"/>
24</subsection>
25
47<subsection> 26<subsection>
48<title>Partitions</title> 27<title>Partitions</title>
49<body> 28<body>
50 29
51<p> 30<p>
76<subsection> 55<subsection>
77<title>Apple New World</title> 56<title>Apple New World</title>
78<body> 57<body>
79 58
80<p> 59<p>
81Apple New World machines are fairly straightforward to configure. The first 60Apple New World machines are fairly straightforward to configure. The first
82partition is always an <e>Apple Partition Map</e>. This partition keeps track 61partition is always an <e>Apple Partition Map</e>. This partition keeps track of
83of the layout of the disk. You cannot remove this partition. The next 62the layout of the disk. You cannot remove this partition. The next partition
84partition should always be a bootstrap partition. This partition contains a 63should always be a bootstrap partition. This partition contains a small (800k)
85small (800k) HFS filesystem that holds a copy of the bootloader Yaboot and its 64HFS filesystem that holds a copy of the bootloader Yaboot and its configuration
86configuration file. This partition is <e>not</e> the same as a 65file. This partition is <e>not</e> the same as a <path>/boot</path> partition as
87<path>/boot</path> partition as found on other architectures. After the boot 66found on other architectures. After the boot partition, the usual Linux
88partition, the usual Linux filesystems are placed, according to the scheme 67filesystems are placed, according to the scheme below. The swap partition is a
89below. The swap partition is a temporary storage place for when your system 68temporary storage place for when your system runs out of physical memory. The
90runs out of physical memory. The root partition will contain the filesystem 69root partition will contain the filesystem that Gentoo is installed on. If you
91that Gentoo is installed on. If you wish to dual boot, the OSX partition 70wish to dual boot, the OSX partition can go anywhere after the bootstrap
92can go anywhere after the bootstrap partition to insure that yaboot starts 71partition to insure that yaboot starts first.
93first.
94</p> 72</p>
95 73
96<note> 74<note>
97There may be "Disk Driver" partitions on your disk such as 75There may be "Disk Driver" partitions on your disk such as
98<path>Apple_Driver63</path>, <path>Apple_Driver_ATA</path>, 76<path>Apple_Driver63</path>, <path>Apple_Driver_ATA</path>,
99<path>Apple_FWDriver</path>, <path>Apple_Driver_IOKit</path>, and 77<path>Apple_FWDriver</path>, <path>Apple_Driver_IOKit</path>, and
100<path>Apple_Patches</path>. These are used to boot MacOS, so if you have no 78<path>Apple_Patches</path>. These are used to boot MacOS, so if you have no need
101need for this, you can remove them by initializing the disk with mac-fdisk's 79for this, you can remove them by initializing the disk with <c>mac-fdisk</c>'s
102<c>i</c> option. This will completely erase the disk! If you are in doubt, 80<c>i</c> option. This will completely erase the disk! If you are in doubt, just
103just let them be. 81let them be.
104</note> 82</note>
105 83
106<note> 84<note>
107If you partitioned this disk with Apple's Disk Utility, there may be 85If you partitioned this disk with Apple's Disk Utility, there may be
108128Mb spaces between partitions which Apple reserves for "future use". You 86128Mb spaces between partitions which Apple reserves for "future use". You
109can safely remove these. 87can safely remove these.
110</note> 88</note>
111 89
112<table> 90<table>
113<tr> 91<tr>
115 <th>Size</th> 93 <th>Size</th>
116 <th>Filesystem</th> 94 <th>Filesystem</th>
117 <th>Description</th> 95 <th>Description</th>
118</tr> 96</tr>
119<tr> 97<tr>
120 <ti><path>/dev/hda1</path></ti> 98 <ti><path>/dev/sda1</path></ti>
121 <ti>32k</ti> 99 <ti>32k</ti>
122 <ti>None</ti> 100 <ti>None</ti>
123 <ti>Apple Partition Map</ti> 101 <ti>Apple Partition Map</ti>
124</tr> 102</tr>
125<tr> 103<tr>
126 <ti><path>/dev/hda2</path></ti> 104 <ti><path>/dev/sda2</path></ti>
127 <ti>800k</ti> 105 <ti>800k</ti>
128 <ti>HFS</ti> 106 <ti>HFS</ti>
129 <ti>Apple Bootstrap</ti> 107 <ti>Apple Bootstrap</ti>
130</tr> 108</tr>
131<tr> 109<tr>
132 <ti><path>/dev/hda3</path></ti> 110 <ti><path>/dev/sda3</path></ti>
133 <ti>512Mb</ti> 111 <ti>512Mb</ti>
134 <ti>Swap</ti> 112 <ti>Swap</ti>
135 <ti>Linux Swap</ti> 113 <ti>Linux Swap</ti>
136</tr> 114</tr>
137<tr> 115<tr>
138 <ti><path>/dev/hda4</path></ti> 116 <ti><path>/dev/sda4</path></ti>
139 <ti>Rest of Disk</ti> 117 <ti>Rest of Disk</ti>
140 <ti>ext3, reiserfs, xfs</ti> 118 <ti>ext3, reiserfs, xfs</ti>
141 <ti>Linux Root</ti> 119 <ti>Linux Root</ti>
142</tr> 120</tr>
143</table> 121</table>
174 <th>Size</th> 152 <th>Size</th>
175 <th>Filesystem</th> 153 <th>Filesystem</th>
176 <th>Description</th> 154 <th>Description</th>
177</tr> 155</tr>
178<tr> 156<tr>
179 <ti><path>/dev/hda1</path></ti> 157 <ti><path>/dev/sda1</path></ti>
180 <ti>32k</ti> 158 <ti>32k</ti>
181 <ti>None</ti> 159 <ti>None</ti>
182 <ti>Apple Partition Map</ti> 160 <ti>Apple Partition Map</ti>
183</tr> 161</tr>
184<tr> 162<tr>
185 <ti><path>/dev/hda2</path></ti> 163 <ti><path>/dev/sda2</path></ti>
186 <ti>32Mb</ti> 164 <ti>32Mb</ti>
187 <ti>ext2</ti> 165 <ti>ext2</ti>
188 <ti>Quik Boot Partition (quik only)</ti> 166 <ti>Quik Boot Partition (quik only)</ti>
189</tr> 167</tr>
190<tr> 168<tr>
191 <ti><path>/dev/hda3</path></ti> 169 <ti><path>/dev/sda3</path></ti>
192 <ti>512Mb</ti> 170 <ti>512Mb</ti>
193 <ti>Swap</ti> 171 <ti>Swap</ti>
194 <ti>Linux Swap</ti> 172 <ti>Linux Swap</ti>
195</tr> 173</tr>
196<tr> 174<tr>
197 <ti><path>/dev/hda4</path></ti> 175 <ti><path>/dev/sda4</path></ti>
198 <ti>Rest of Disk</ti> 176 <ti>Rest of Disk</ti>
199 <ti>ext3, reiserfs, xfs</ti> 177 <ti>ext3, reiserfs, xfs</ti>
200 <ti>Linux Root</ti> 178 <ti>Linux Root</ti>
201</tr> 179</tr>
202</table> 180</table>
206<subsection> 184<subsection>
207<title>Pegasos</title> 185<title>Pegasos</title>
208<body> 186<body>
209 187
210<p> 188<p>
211The Pegaos partition layout is quite simple compared to the Apple layouts. 189The Pegasos partition layout is quite simple compared to the Apple layouts.
212The first partition is a Boot Partition, which contains kernels to be booted, 190The first partition is a Boot Partition, which contains kernels to be booted,
213along with an OpenFirmware script that presents a menu on boot. After the boot 191along with an Open Firmware script that presents a menu on boot. After the boot
214partition, the usual Linux filesystems are placed, according to the scheme 192partition, the usual Linux filesystems are placed, according to the scheme
215below. The swap partition is a temporary storage place for when your system 193below. The swap partition is a temporary storage place for when your system
216runs out of physical memory. The root partition will contain the filesystem 194runs out of physical memory. The root partition will contain the filesystem
217that Gentoo is installed on. 195that Gentoo is installed on.
218</p> 196</p>
223 <th>Size</th> 201 <th>Size</th>
224 <th>Filesystem</th> 202 <th>Filesystem</th>
225 <th>Description</th> 203 <th>Description</th>
226</tr> 204</tr>
227<tr> 205<tr>
228 <ti><path>/dev/hda1</path></ti> 206 <ti><path>/dev/sda1</path></ti>
229 <ti>32Mb</ti> 207 <ti>32Mb</ti>
230 <ti>affs1 or ext2</ti> 208 <ti>affs1 or ext2</ti>
231 <ti>Boot Partition</ti> 209 <ti>Boot Partition</ti>
232</tr> 210</tr>
233<tr> 211<tr>
234 <ti><path>/dev/hda2</path></ti> 212 <ti><path>/dev/sda2</path></ti>
235 <ti>512Mb</ti> 213 <ti>512Mb</ti>
236 <ti>Swap</ti> 214 <ti>Swap</ti>
237 <ti>Linux Swap</ti> 215 <ti>Linux Swap</ti>
238</tr> 216</tr>
239<tr> 217<tr>
240 <ti><path>/dev/hda3</path></ti> 218 <ti><path>/dev/sda3</path></ti>
241 <ti>Rest of Disk</ti> 219 <ti>Rest of Disk</ti>
242 <ti>ext3, reiserfs, xfs</ti> 220 <ti>ext3, reiserfs, xfs</ti>
243 <ti>Linux Root</ti> 221 <ti>Linux Root</ti>
244</tr> 222</tr>
245</table> 223</table>
249<subsection> 227<subsection>
250<title>IBM PReP (RS/6000)</title> 228<title>IBM PReP (RS/6000)</title>
251<body> 229<body>
252 230
253<p> 231<p>
254The Pegaos partition layout is quite simple compared to the Apple layouts. 232The IBM PowerPC Reference Platform (PReP) requires a small PReP boot partition
255The first partition is a Boot Partition, which contains kernels to be booted, 233on the disk's first partition, followed by the swap and root partitions.
256along with an OpenFirmware script that presents a menu on boot. After the boot
257partition, the usual Linux filesystems are placed, according to the scheme
258below. The swap partition is a temporary storage place for when your system
259runs out of physical memory. The root partition will contain the filesystem
260that Gentoo is installed on.
261</p> 234</p>
262 235
263<table> 236<table>
264<tr> 237<tr>
265 <th>Partition</th> 238 <th>Partition</th>
266 <th>Size</th> 239 <th>Size</th>
267 <th>Filesystem</th> 240 <th>Filesystem</th>
268 <th>Description</th> 241 <th>Description</th>
269</tr> 242</tr>
270<tr> 243<tr>
271 <ti><path>/dev/hda1</path></ti> 244 <ti><path>/dev/sda1</path></ti>
272 <ti>800k</ti> 245 <ti>800k</ti>
273 <ti>None</ti> 246 <ti>None</ti>
274 <ti>PReP Boot Partition (Type 0x41)</ti> 247 <ti>PReP Boot Partition (Type 0x41)</ti>
275</tr> 248</tr>
276<tr> 249<tr>
277 <ti><path>/dev/hda2</path></ti> 250 <ti><path>/dev/sda2</path></ti>
278 <ti>512Mb</ti> 251 <ti>512Mb</ti>
279 <ti>Swap</ti> 252 <ti>Swap</ti>
280 <ti>Linux Swap (Type 0x82)</ti> 253 <ti>Linux Swap (Type 0x82)</ti>
281</tr> 254</tr>
282<tr> 255<tr>
283 <ti><path>/dev/hda3</path></ti> 256 <ti><path>/dev/sda3</path></ti>
284 <ti>Rest of Disk</ti> 257 <ti>Rest of Disk</ti>
285 <ti>ext3, reiserfs, xfs</ti> 258 <ti>ext3, reiserfs, xfs</ti>
286 <ti>Linux Root (Type 0x83)</ti> 259 <ti>Linux Root (Type 0x83)</ti>
287</tr> 260</tr>
288</table> 261</table>
346 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc. 319 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
347</li> 320</li>
348</ul> 321</ul>
349 322
350<p> 323<p>
351However, multiple partitions have one big disadvantage: if not configured 324However, multiple partitions have disadvantages as well. If not configured
352properly, you might result in having a system with lots of free space on one 325properly, you will have a system with lots of free space on one partition and
353partition and none on another. There is also a 15-partition limit for SCSI and 326none on another. Another nuisance is that separate partitions - especially
354SATA. 327for important mountpoints like <path>/usr</path> or <path>/var</path> - often
328require the administrator to boot with an initramfs to mount the partition
329before other boot scripts start. This isn't always the case though, so your
330results may vary.
331</p>
332
333<p>
334There is also a 15-partition limit for SCSI and SATA.
355</p> 335</p>
356 336
357</body> 337</body>
358</subsection> 338</subsection>
359</section> 339</section>
364<p> 344<p>
365At this point, create your partitions using <c>mac-fdisk</c>: 345At this point, create your partitions using <c>mac-fdisk</c>:
366</p> 346</p>
367 347
368<pre caption="Starting mac-fdisk"> 348<pre caption="Starting mac-fdisk">
369# <i>mac-fdisk /dev/hda</i> 349# <i>mac-fdisk /dev/sda</i>
370</pre> 350</pre>
371 351
372<p> 352<p>
373If you used Apple's Disk Utility to leave space for Linux, first delete the 353If you used Apple's Disk Utility to leave space for Linux, first delete the
374partitions you have created previously to make room for your new install. Use 354partitions you have created previously to make room for your new install. Use
375<c>d</c> in <c>mac-fdisk</c> to delete those partition(s). It will ask for the 355<c>d</c> in <c>mac-fdisk</c> to delete those partition(s). It will ask for the
376partition number to delete. Usually the first partition on NewWorld machines 356partition number to delete. Usually the first partition on NewWorld machines
377(Apple_partition_map) could not be deleted. If you would like to start with a 357(Apple_partition_map) cannot be deleted. If you would like to start with a
378clean disk, you can simply initialize the disk by pressing <c>i</c>. This 358clean disk, you can simply initialize the disk by pressing <c>i</c>. This
379will completely erase the disk, so use this with caution. 359will completely erase the disk, so use this with caution.
380</p> 360</p>
381 361
382<p> 362<p>
383Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will 363Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will
412quit <c>mac-fdisk</c>. 392quit <c>mac-fdisk</c>.
413</p> 393</p>
414 394
415<note> 395<note>
416To make sure everything is ok, you should run <c>mac-fdisk -l</c> and check 396To make sure everything is ok, you should run <c>mac-fdisk -l</c> and check
417whether all the partitions are there. If you don't see any of the partitions 397whether all the partitions are there. If you don't see any of the partitions you
418you created, or the changes you made, you should reinitialize your partitions 398created, or the changes you made, you should reinitialize your partitions by
419by pressing "i" in mac-fdisk. Note that this will recreate the partition map 399pressing <c>i</c> in <c>mac-fdisk</c>. Note that this will recreate the
420and thus remove all your partitions. 400partition map and thus remove all your partitions.
421</note> 401</note>
422 402
423<p> 403<p>
424Now that your partitions are created, you can continue with 404Now that your partitions are created, you can continue with
425<uri link="#filesystems">Creating Filesystems</uri>. 405<uri link="#filesystems">Creating Filesystems</uri>.
431<title>Using parted to Partition your Disk (Pegasos and RS/6000)</title> 411<title>Using parted to Partition your Disk (Pegasos and RS/6000)</title>
432<body> 412<body>
433 413
434<p> 414<p>
435<c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by 415<c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by
436Mac OS and Mac OS X. With this tool you can resize your Mac-partitions and 416Mac OS and Mac OS X. With this tool you can resize your Mac partitions and
437create space for your Linux partitions. Nevertheless, the example below 417create space for your Linux partitions. Nevertheless, the example below
438describes partitioning for Pegasos machines only. 418describes partitioning for Pegasos machines only.
439</p> 419</p>
440 420
441<p> 421<p>
442To begin let's fire up <c>parted</c>: 422To begin let's fire up <c>parted</c>:
443</p> 423</p>
444 424
445<pre caption="Starting parted"> 425<pre caption="Starting parted">
446# <i>parted /dev/hda</i> 426# <i>parted /dev/sda</i>
447</pre> 427</pre>
448 428
449<p> 429<p>
450If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new 430If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new
451disklabel for the drive. 431disklabel for the drive.
452</p> 432</p>
453 433
454<p> 434<p>
455You can type <c>print</c> at any time in parted to display the current partition 435You can type <c>print</c> at any time in parted to display the current partition
456table. If at any time you change your mind or made a mistake you can press 436table. If at any time you change your mind or made a mistake you can press
457<c>Ctrl-c</c> to abort parted. 437<c>Ctrl-c</c> to abort <c>parted</c>.
458</p> 438</p>
459 439
460<p> 440<p>
461If you intend to also install MorphOS on your Pegasos create an affs1 filesystem 441If you intend to also install MorphOS on your Pegasos create an affs1 filesystem
462at the start of the drive. 32MB should be more than enough to store the MorphOS 442at the start of the drive. 32MB should be more than enough to store the MorphOS
463kernel. If you have a Pegasos I or intend to use any filesystem besides ext2 or 443kernel. If you have a Pegasos I or intend to use any filesystem besides ext2 or
464ext3, you will also have to store your Linux kernel on this partition (the 444ext3, you will also have to store your Linux kernel on this partition (the
465Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the 445Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the
466partition run <c>mkpart primary affs1 START END</c> where <c>START</c> and 446partition run <c>mkpart primary affs1 START END</c> where <c>START</c> and
467<c>END</c> should be replaced with the megabyte range (e.g. <c>0 32</c> which 447<c>END</c> should be replaced with the megabyte range (e.g. <c>0 32</c>) which
468creates a 32 MB partition starting at 0MB and ending at 32MB. If you chose to 448creates a 32 MB partition starting at 0MB and ending at 32MB. If you chose to
469create an ext2 or ext3 partition instead, substitute ext2 or ext3 for affs1 in 449create an ext2 or ext3 partition instead, substitute ext2 or ext3 for affs1 in
470the mkpart command. 450the <c>mkpart</c> command.
471</p> 451</p>
472 452
473<p> 453<p>
474You will need to create two partitions for Linux, one root filesystem and one 454You will need to create two partitions for Linux, one root filesystem and one
475swap partition. Run <c>mkpart primary START END</c> to create each partition, 455swap partition. Run <c>mkpart primary START END</c> to create each partition,
483<c>mkpart primary linux-swap START END</c> with START and END again denoting 463<c>mkpart primary linux-swap START END</c> with START and END again denoting
484the partition boundries. 464the partition boundries.
485</p> 465</p>
486 466
487<p> 467<p>
488When you are done in parted simply type <c>quit</c>. 468When you are done in <c>parted</c> simply type <c>quit</c>.
489</p> 469</p>
490 470
491</body> 471</body>
492</section> 472</section>
493<section id="filesystems"> 473<section id="filesystems">
504Otherwise, read on to learn about the available filesystems. 484Otherwise, read on to learn about the available filesystems.
505</p> 485</p>
506 486
507</body> 487</body>
508</subsection> 488</subsection>
509<subsection>
510<title>Filesystems?</title>
511<body>
512 489
513<p>
514Several filesystems are available for use on the PowerPC architecture including
515ext2, ext3, ReiserFS and XFS, each with their strengths and faults.
516</p>
517
518<p>
519<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
520journaling, which means that routine ext2 filesystem checks at startup time can
521be quite time-consuming. There is now quite a selection of journaled
522filesystems that can be checked for consistency very quickly and are thus
523generally preferred over their non-journaled counterparts.
524</p>
525
526<p>
527<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
528journaling for fast recovery in addition to other enhanced journaling modes
529like full data and ordered data journaling. It uses a hashed B*-tree index that
530enables high performance in almost all situations. In short, ext3 is a very
531good and reliable filesystem and is highly recommended for most installs.
532</p>
533
534<p>
535<b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
536performance and greatly outperforms both ext2 and ext3 when dealing with small
537files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
538extremely well and has metadata journaling. ReiserFS is solid and usable as
539both general-purpose filesystem and for extreme cases such as the creation of
540large filesystems, very large files and directories containing tens of
541thousands of small files.
542</p>
543
544<p>
545<b>XFS</b> is a filesystem with metadata journaling which comes with a robust
546feature-set and is optimized for scalability. We only recommend using this
547filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
548an uninterruptible power supply. Because XFS aggressively caches in-transit data
549in RAM, improperly designed programs (those that don't take proper precautions
550when writing files to disk and there are quite a few of them) can lose a good
551deal of data if the system goes down unexpectedly.
552</p>
553
554</body>
555</subsection> 490<subsection>
491<include href="hb-install-filesystems.xml"/>
492</subsection>
493
556<subsection> 494<subsection>
557<title>Activating the Swap Partition</title> 495<title>Activating the Swap Partition</title>
558<body> 496<body>
559 497
560<p> 498<p>
561<c>mkswap</c> is the command that is used to initialize swap partitions: 499<c>mkswap</c> is the command that is used to initialize swap partitions:
562</p> 500</p>
563 501
564<pre caption="Creating a swap signature"> 502<pre caption="Creating a swap signature">
565# <i>mkswap /dev/hda3</i> 503# <i>mkswap /dev/sda3</i>
566</pre> 504</pre>
567 505
568<p> 506<p>
569To activate the swap partition, use <c>swapon</c>: 507To activate the swap partition, use <c>swapon</c>:
570</p> 508</p>
571 509
572<pre caption="Activating the swap partition"> 510<pre caption="Activating the swap partition">
573# <i>swapon /dev/hda3</i> 511# <i>swapon /dev/sda3</i>
574</pre> 512</pre>
575 513
576<p> 514<p>
577Create and activate the swap now before creating other filesystems. 515Create and activate the swap now before creating other filesystems.
578</p> 516</p>
611</tr> 549</tr>
612</table> 550</table>
613 551
614<p> 552<p>
615For instance, to make an ext3 filesystem on the root partition 553For instance, to make an ext3 filesystem on the root partition
616(<path>/dev/hda4</path> in our example), you would use: 554(<path>/dev/sda4</path> in our example), you would use:
617</p> 555</p>
618 556
619<pre caption="Applying a filesystem on a partition"> 557<pre caption="Applying a filesystem on a partition">
620# <i>mke2fs -j /dev/hda4</i> 558# <i>mke2fs -j /dev/sda4</i>
621</pre> 559</pre>
622 560
623<p> 561<p>
624Now create the filesystems on your newly created partitions (or logical 562Now create the filesystems on your newly created partitions (or logical
625volumes). 563volumes).
626</p> 564</p>
565
566<impo>
567If you choose to use ReiserFS for <path>/</path>, do not change its default
568block size if you will also be using <c>yaboot</c> as your bootloader, as
569explained in <uri link="?part=1&amp;chap=10">Configuring the Bootloader</uri>.
570</impo>
627 571
628<note> 572<note>
629On the PegasosII your partition which holds the kernel must be ext2, ext3 or 573On the PegasosII your partition which holds the kernel must be ext2, ext3 or
630affs1. NewWorld machines can boot from any of ext2, ext3, XFS, ReiserFS or 574affs1. NewWorld machines can boot from any of ext2, ext3, XFS, ReiserFS or
631even HFS/HFS+ filesystems. On OldWorld machines booting with BootX, the kernel 575even HFS/HFS+ filesystems. On OldWorld machines booting with BootX, the kernel
645time to mount those partitions. Use the <c>mount</c> command. As an example we 589time to mount those partitions. Use the <c>mount</c> command. As an example we
646mount the root partition: 590mount the root partition:
647</p> 591</p>
648 592
649<pre caption="Mounting partitions"> 593<pre caption="Mounting partitions">
650# <i>mount /dev/hda4 /mnt/gentoo</i> 594# <i>mount /dev/sda4 /mnt/gentoo</i>
651</pre> 595</pre>
652 596
653<note> 597<note>
654If you want your <path>/tmp</path> to reside on a separate partition, be sure to 598If you want your <path>/tmp</path> to reside on a separate partition, be sure to
655change its permissions after mounting and unpacking with 599change its permissions after mounting and unpacking with

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.51

  ViewVC Help
Powered by ViewVC 1.1.20