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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.44 - (hide annotations) (download) (as text)
Tue Jun 26 17:12:56 2007 UTC (6 years, 9 months ago) by nightmorph
Branch: MAIN
Changes since 1.43: +8 -2 lines
File MIME type: application/xml
added impo for reiserfs default block sizes and yaboot, bug 183239

1 swift 1.1 <?xml version='1.0' encoding='UTF-8'?>
2     <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3    
4     <!-- The content of this document is licensed under the CC-BY-SA license -->
5 swift 1.29 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 swift 1.1
7 nightmorph 1.44 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.43 2007/06/26 07:07:27 nightmorph Exp $ -->
8 swift 1.1
9     <sections>
10 swift 1.20
11 nightmorph 1.44 <version>8.3</version>
12 nightmorph 1.43 <date>2007-06-26</date>
13 swift 1.20
14 swift 1.1 <section>
15     <title>Introduction to Block Devices</title>
16     <subsection>
17     <title>Block Devices</title>
18     <body>
19    
20     <p>
21 nightmorph 1.38 We'll start by taking a good look at disk-oriented aspects of Gentoo Linux
22 swift 1.1 and Linux in general, including Linux filesystems, partitions and block devices.
23     Then, once you're familiar with the ins and outs of disks and filesystems,
24     you'll be guided through the process of setting up partitions and filesystems
25     for your Gentoo Linux installation.
26     </p>
27    
28     <p>
29 fox2mike 1.34 To begin, we'll introduce <e>block devices</e>. The most common block device is
30     the 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
32 nightmorph 1.38 drives, then your first hard drive would be <path>/dev/sda</path>. Additional
33     drives are enumerated by the next letter in the alphabet. As an example, the
34     third IDE disk could be found at <path>/dev/hdc</path>.
35 swift 1.1 </p>
36    
37     <p>
38     The block devices above represent an abstract interface to the disk. User
39 nightmorph 1.38 programs can use these block devices to interact with the disk without worrying
40     about whether the drives are IDE, SCSI or something else. The program can
41 swift 1.1 simply address the storage on the disk as a bunch of contiguous,
42     randomly-accessible 512-byte blocks.
43     </p>
44    
45     </body>
46     </subsection>
47     <subsection>
48 swift 1.31 <title>Partitions</title>
49 swift 1.1 <body>
50    
51     <p>
52     Although it is theoretically possible to use a full disk to house your Linux
53     system, this is almost never done in practice. Instead, full disk block devices
54     are split up in smaller, more manageable block devices. On most systems,
55 swift 1.31 these are called <e>partitions</e>.
56 swift 1.1 </p>
57    
58     </body>
59     </subsection>
60     </section>
61     <section>
62     <title>Designing a Partitioning Scheme</title>
63     <subsection>
64     <title>Default Partitioning Scheme</title>
65     <body>
66    
67     <p>
68     If you are not interested in drawing up a partitioning scheme for your system,
69 nightmorph 1.38 you can use the partitioning scheme we use throughout this book. Choose the
70     filesystem layout that best matches the type of PowerPC system you are
71     installing on.
72     </p>
73    
74     </body>
75     </subsection>
76     <subsection>
77     <title>Apple New World</title>
78     <body>
79    
80     <p>
81     Apple New World machines are fairly straightforward to configure. The first
82     partition is always an <e>Apple Partition Map</e>. This partition keeps track
83     of the layout of the disk. You cannot remove this partition. The next
84     partition should always be a bootstrap partition. This partition contains a
85     small (800k) HFS filesystem that holds a copy of the bootloader Yaboot and its
86     configuration file. This partition is <e>not</e> the same as a
87     <path>/boot</path> partition as found on other architectures. After the boot
88     partition, the usual Linux filesystems are placed, according to the scheme
89     below. The swap partition is a temporary storage place for when your system
90     runs out of physical memory. The root partition will contain the filesystem
91     that Gentoo is installed on. If you wish to dual boot, the OSX partition
92     can go anywhere after the bootstrap partition to insure that yaboot starts
93     first.
94 swift 1.1 </p>
95    
96 josejx 1.35 <note>
97 nightmorph 1.39 There may be "Disk Driver" partitions on your disk such as
98     <path>Apple_Driver63</path>, <path>Apple_Driver_ATA</path>,
99     <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
101     need for this, you can remove them by initializing the disk with mac-fdisk's
102     <c>i</c> option. This will completely erase the disk! If you are in doubt,
103     just let them be.
104 nightmorph 1.38 </note>
105    
106     <note>
107     If you partitioned this disk with Apple's Disk Utility, there may be
108     128Mb spaces between partitions which Apple reserves for "future use". You
109     can safely remove these.
110 josejx 1.35 </note>
111    
112 swift 1.1 <table>
113     <tr>
114 nightmorph 1.38 <th>Partition</th>
115     <th>Size</th>
116 swift 1.1 <th>Filesystem</th>
117     <th>Description</th>
118     </tr>
119     <tr>
120     <ti><path>/dev/hda1</path></ti>
121 sejo 1.17 <ti>32k</ti>
122 nightmorph 1.38 <ti>None</ti>
123     <ti>Apple Partition Map</ti>
124 sejo 1.17 </tr>
125     <tr>
126     <ti><path>/dev/hda2</path></ti>
127 swift 1.1 <ti>800k</ti>
128 nightmorph 1.38 <ti>HFS</ti>
129     <ti>Apple Bootstrap</ti>
130     </tr>
131     <tr>
132     <ti><path>/dev/hda3</path></ti>
133     <ti>512Mb</ti>
134     <ti>Swap</ti>
135     <ti>Linux Swap</ti>
136 swift 1.1 </tr>
137     <tr>
138 nightmorph 1.38 <ti><path>/dev/hda4</path></ti>
139     <ti>Rest of Disk</ti>
140     <ti>ext3, reiserfs, xfs</ti>
141     <ti>Linux Root</ti>
142     </tr>
143     </table>
144    
145     </body>
146     </subsection>
147     <subsection>
148     <title>Apple Old World</title>
149     <body>
150    
151     <p>
152     Apple Old World machines are a bit more complicated to configure. The first
153     partition is always an <e>Apple Partition Map</e>. This partition keeps track
154     of the layout of the disk. You cannot remove this partition. If you are using
155     BootX, the configuration below assumes that MacOS is installed on a seperate
156     disk. If this is not the case, there will be additional partitions for "Apple
157     Disk Drivers" such as <path>Apple_Driver63, Apple_Driver_ATA, Apple_FWDriver,
158     Apple_Driver_IOKit, Apple_Patches</path> and the MacOS install. If you are
159     using Quik, you will need to create a boot partition to hold the kernel, unlike
160     other Apple boot methods. After the boot partition, the usual Linux filesystems
161     are placed, according to the scheme below. The swap partition is a temporary
162     storage place for when your system runs out of physical memory. The root
163     partition will contain the filesystem that Gentoo is installed on.
164     </p>
165    
166     <note>
167     If you are using an OldWorld machine, you will need to keep MacOS available.
168     The layout here assumes MacOS is installed on a separate drive.
169     </note>
170    
171     <table>
172     <tr>
173     <th>Partition</th>
174     <th>Size</th>
175     <th>Filesystem</th>
176     <th>Description</th>
177 swift 1.28 </tr>
178     <tr>
179     <ti><path>/dev/hda1</path></ti>
180 nightmorph 1.38 <ti>32k</ti>
181     <ti>None</ti>
182     <ti>Apple Partition Map</ti>
183     </tr>
184     <tr>
185     <ti><path>/dev/hda2</path></ti>
186     <ti>32Mb</ti>
187 swift 1.28 <ti>ext2</ti>
188 nightmorph 1.38 <ti>Quik Boot Partition (quik only)</ti>
189 swift 1.28 </tr>
190     <tr>
191 sejo 1.17 <ti><path>/dev/hda3</path></ti>
192 nightmorph 1.38 <ti>512Mb</ti>
193     <ti>Swap</ti>
194     <ti>Linux Swap</ti>
195     </tr>
196     <tr>
197     <ti><path>/dev/hda4</path></ti>
198     <ti>Rest of Disk</ti>
199     <ti>ext3, reiserfs, xfs</ti>
200     <ti>Linux Root</ti>
201     </tr>
202     </table>
203    
204     </body>
205     </subsection>
206     <subsection>
207     <title>Pegasos</title>
208     <body>
209    
210     <p>
211 nightmorph 1.40 The Pegasos partition layout is quite simple compared to the Apple layouts.
212 nightmorph 1.38 The first partition is a Boot Partition, which contains kernels to be booted,
213     along with an OpenFirmware script that presents a menu on boot. After the boot
214     partition, the usual Linux filesystems are placed, according to the scheme
215     below. The swap partition is a temporary storage place for when your system
216     runs out of physical memory. The root partition will contain the filesystem
217     that Gentoo is installed on.
218     </p>
219    
220     <table>
221     <tr>
222     <th>Partition</th>
223     <th>Size</th>
224     <th>Filesystem</th>
225     <th>Description</th>
226     </tr>
227     <tr>
228     <ti><path>/dev/hda1</path></ti>
229     <ti>32Mb</ti>
230     <ti>affs1 or ext2</ti>
231     <ti>Boot Partition</ti>
232     </tr>
233     <tr>
234 swift 1.28 <ti><path>/dev/hda2</path></ti>
235 nightmorph 1.38 <ti>512Mb</ti>
236     <ti>Swap</ti>
237     <ti>Linux Swap</ti>
238 swift 1.1 </tr>
239     <tr>
240 swift 1.28 <ti><path>/dev/hda3</path></ti>
241 nightmorph 1.38 <ti>Rest of Disk</ti>
242     <ti>ext3, reiserfs, xfs</ti>
243     <ti>Linux Root</ti>
244 swift 1.1 </tr>
245     </table>
246 dertobi123 1.21
247 nightmorph 1.38 </body>
248     </subsection>
249     <subsection>
250     <title>IBM PReP (RS/6000)</title>
251     <body>
252    
253     <p>
254 nightmorph 1.41 The IBM PowerPC Reference Platform (PReP) requires a small PReP boot partition
255     on the disk's first partition, followed by the swap and root partitions.
256 nightmorph 1.38 </p>
257    
258     <table>
259     <tr>
260     <th>Partition</th>
261     <th>Size</th>
262     <th>Filesystem</th>
263     <th>Description</th>
264     </tr>
265     <tr>
266     <ti><path>/dev/hda1</path></ti>
267     <ti>800k</ti>
268     <ti>None</ti>
269     <ti>PReP Boot Partition (Type 0x41)</ti>
270     </tr>
271     <tr>
272     <ti><path>/dev/hda2</path></ti>
273     <ti>512Mb</ti>
274     <ti>Swap</ti>
275     <ti>Linux Swap (Type 0x82)</ti>
276     </tr>
277     <tr>
278     <ti><path>/dev/hda3</path></ti>
279     <ti>Rest of Disk</ti>
280     <ti>ext3, reiserfs, xfs</ti>
281     <ti>Linux Root (Type 0x83)</ti>
282     </tr>
283     </table>
284 nightmorph 1.36
285 swift 1.28 <warn>
286 nightmorph 1.38 <c>parted</c> is able to resize partitions including HFS+. Unfortunately there
287     may be issues with resizing HFS+ journaled filesystems, so, for the best
288     results, switch off journaling in Mac OS X before resizing. Remember that any
289     resizing operation is dangerous, so attempt at your own risk! Be sure to always
290     have a backup of your data before resizing!
291 swift 1.28 </warn>
292 nightmorph 1.36
293 swift 1.1 <p>
294 swift 1.22 If you are interested in knowing how big a partition should be, or even how many
295 swift 1.31 partitions you need, read on. Otherwise continue now with
296     <uri link="#mac-fdisk"> Default: Using mac-fdisk (Apple) to Partition your Disk
297     </uri> or <uri link="#parted">Alternative: Using parted (IBM/Pegasos) to
298 swift 1.6 Partition your Disk</uri>.
299 swift 1.1 </p>
300    
301     </body>
302     </subsection>
303     <subsection>
304     <title>How Many and How Big?</title>
305     <body>
306    
307     <p>
308     The number of partitions is highly dependent on your environment. For instance,
309     if you have lots of users, you will most likely want to have your
310     <path>/home</path> separate as it increases security and makes backups easier.
311 swift 1.22 If you are installing Gentoo to perform as a mailserver, your <path>/var</path>
312 nightmorph 1.38 should be separate as all received mail is stored in <path>/var</path>. A good
313     choice of filesystem will then maximise your performance. Game servers should
314     have a separate <path>/opt</path> as most game servers are installed there. The
315     reason is similar for <path>/home</path>: security and backups. Whatever layout
316     you chose, you will definitely want to keep <path>/usr</path> large: not only
317     will it contain the majority of applications, the Portage tree alone takes
318     more than 500Mb excluding the various sources that are stored in it.
319 swift 1.1 </p>
320    
321     <p>
322     As you can see, it very much depends on what you want to achieve. Separate
323     partitions or volumes have the following advantages:
324     </p>
325    
326     <ul>
327     <li>
328 neysx 1.9 You can choose the best performing filesystem for each partition or volume
329 swift 1.1 </li>
330     <li>
331     Your entire system cannot run out of free space if one defunct tool is
332     continuously writing files to a partition or volume
333     </li>
334     <li>
335     If necessary, file system checks are reduced in time, as multiple checks can
336     be done in parallel (although this advantage is more with multiple disks than
337     it is with multiple partitions)
338     </li>
339     <li>
340 swift 1.28 Security can be enhanced by mounting some partitions or volumes read-only,
341 swift 1.1 nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc.
342     </li>
343     </ul>
344    
345     <p>
346 swift 1.28 However, multiple partitions have one big disadvantage: if not configured
347     properly, you might result in having a system with lots of free space on one
348     partition and none on another. There is also a 15-partition limit for SCSI and
349     SATA.
350 swift 1.1 </p>
351    
352     </body>
353     </subsection>
354     </section>
355 swift 1.31 <section id="mac-fdisk">
356 swift 1.28 <title>Default: Using mac-fdisk (Apple) Partition your Disk</title>
357 swift 1.1 <body>
358    
359     <p>
360     At this point, create your partitions using <c>mac-fdisk</c>:
361     </p>
362    
363     <pre caption="Starting mac-fdisk">
364     # <i>mac-fdisk /dev/hda</i>
365     </pre>
366    
367     <p>
368 nightmorph 1.38 If you used Apple's Disk Utility to leave space for Linux, first delete the
369     partitions you have created previously to make room for your new install. Use
370     <c>d</c> in <c>mac-fdisk</c> to delete those partition(s). It will ask for the
371     partition number to delete. Usually the first partition on NewWorld machines
372     (Apple_partition_map) could not be deleted. If you would like to start with a
373     clean disk, you can simply initialize the disk by pressing <c>i</c>. This
374     will completely erase the disk, so use this with caution.
375 swift 1.1 </p>
376    
377     <p>
378 nightmorph 1.36 Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will
379     ask for what block you want to start. Enter the number of your first free
380     partition, followed by a <c>p</c>. For instance this is <c>2p</c>.
381 swift 1.1 </p>
382    
383     <note>
384 swift 1.28 This partition is <e>not</e> a <path>/boot</path> partition. It is not used by
385     Linux at all; you don't have to place any filesystem on it and you should never
386     mount it. Apple users don't need an extra partition for <path>/boot</path>.
387 swift 1.1 </note>
388    
389     <p>
390     Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will
391 swift 1.22 ask for what block you want to start this partition from. As we used <c>2</c>
392 swift 1.1 before to create the Apple_Bootstrap partition, you now have to enter
393 swift 1.22 <c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size
394 nightmorph 1.38 you want -- a minimum of 512MB is recommended, but 2 times your physical memory
395     is the generally accepted size). When asked for a name, enter <c>swap</c>.
396 swift 1.1 </p>
397    
398     <p>
399 swift 1.22 To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select
400 swift 1.1 from what block the root partition should start. When asked for the size, enter
401 swift 1.22 <c>4p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available
402 nightmorph 1.38 space". When asked for the name, enter <c>root</c>.
403 swift 1.1 </p>
404    
405     <p>
406     To finish up, write the partition to the disk using <c>w</c> and <c>q</c> to
407     quit <c>mac-fdisk</c>.
408     </p>
409 dertobi123 1.21
410 sejo 1.19 <note>
411 nightmorph 1.38 To make sure everything is ok, you should run <c>mac-fdisk -l</c> and check
412 dertobi123 1.21 whether all the partitions are there. If you don't see any of the partitions
413     you created, or the changes you made, you should reinitialize your partitions
414     by pressing "i" in mac-fdisk. Note that this will recreate the partition map
415     and thus remove all your partitions.
416 sejo 1.19 </note>
417 dertobi123 1.21
418 swift 1.1 <p>
419 nightmorph 1.38 Now that your partitions are created, you can continue with
420     <uri link="#filesystems">Creating Filesystems</uri>.
421 swift 1.1 </p>
422    
423     </body>
424     </section>
425 swift 1.6 <section id="parted">
426 nightmorph 1.38 <title>Using parted to Partition your Disk (Pegasos and RS/6000)</title>
427 swift 1.6 <body>
428    
429     <p>
430 dertobi123 1.11 <c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by
431 swift 1.28 Mac OS and Mac OS X. With this tool you can resize your Mac-partitions and
432 dertobi123 1.11 create space for your Linux partitions. Nevertheless, the example below
433     describes partitioning for Pegasos machines only.
434     </p>
435    
436     <p>
437 swift 1.6 To begin let's fire up <c>parted</c>:
438     </p>
439    
440     <pre caption="Starting parted">
441     # <i>parted /dev/hda</i>
442     </pre>
443    
444     <p>
445 nightmorph 1.38 If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new
446 swift 1.6 disklabel for the drive.
447     </p>
448    
449     <p>
450     You can type <c>print</c> at any time in parted to display the current partition
451 swift 1.28 table. If at any time you change your mind or made a mistake you can press
452     <c>Ctrl-c</c> to abort parted.
453 swift 1.6 </p>
454    
455     <p>
456     If you intend to also install MorphOS on your Pegasos create an affs1 filesystem
457 nightmorph 1.38 at the start of the drive. 32MB should be more than enough to store the MorphOS
458 nightmorph 1.42 kernel. If you have a Pegasos I or intend to use any filesystem besides ext2 or
459     ext3, you will also have to store your Linux kernel on this partition (the
460     Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the
461     partition run <c>mkpart primary affs1 START END</c> where <c>START</c> and
462     <c>END</c> should be replaced with the megabyte range (e.g. <c>0 32</c>) which
463 nightmorph 1.38 creates a 32 MB partition starting at 0MB and ending at 32MB. If you chose to
464     create an ext2 or ext3 partition instead, substitute ext2 or ext3 for affs1 in
465     the mkpart command.
466 swift 1.6 </p>
467    
468     <p>
469 nightmorph 1.38 You will need to create two partitions for Linux, one root filesystem and one
470     swap partition. Run <c>mkpart primary START END</c> to create each partition,
471     replacing <c>START</c> and <c>END</c> with the desired megabyte boundries.
472 swift 1.6 </p>
473    
474     <p>
475 nightmorph 1.38 It is generally recommended that you create a swap partition that is two times
476     bigger than the amount of RAM in your computer, but at least 512Mb is
477     recommended. To create the swap partition, run
478     <c>mkpart primary linux-swap START END</c> with START and END again denoting
479     the partition boundries.
480 swift 1.6 </p>
481    
482     <p>
483 nightmorph 1.38 When you are done in parted simply type <c>quit</c>.
484 swift 1.6 </p>
485    
486     </body>
487     </section>
488 swift 1.1 <section id="filesystems">
489     <title>Creating Filesystems</title>
490     <subsection>
491     <title>Introduction</title>
492     <body>
493    
494     <p>
495 swift 1.28 Now that your partitions are created, it is time to place a filesystem on them.
496 nightmorph 1.38 If you're not sure which filesystems to choose and are happy with our defaults,
497     continue with
498     <uri link="#filesystems-apply">Applying a Filesystem to a Partition</uri>.
499     Otherwise, read on to learn about the available filesystems.
500 swift 1.1 </p>
501    
502     </body>
503     </subsection>
504     <subsection>
505     <title>Filesystems?</title>
506     <body>
507    
508     <p>
509 nightmorph 1.38 Several filesystems are available for use on the PowerPC architecture including
510     ext2, ext3, ReiserFS and XFS, each with their strengths and faults.
511 swift 1.1 </p>
512    
513     <p>
514     <b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
515     journaling, which means that routine ext2 filesystem checks at startup time can
516 nightmorph 1.38 be quite time-consuming. There is now quite a selection of journaled
517     filesystems that can be checked for consistency very quickly and are thus
518     generally preferred over their non-journaled counterparts.
519 swift 1.1 </p>
520    
521     <p>
522     <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
523 nightmorph 1.43 journaling for fast recovery in addition to other enhanced journaling modes like
524     full data and ordered data journaling. It uses an HTree index that enables high
525     performance in almost all situations. In short, ext3 is a very good and reliable
526     filesystem.
527 swift 1.1 </p>
528    
529     <p>
530 nightmorph 1.43 <b>ReiserFS</b> is a B+tree-based filesystem that has very good overall
531 nightmorph 1.37 performance and greatly outperforms both ext2 and ext3 when dealing with small
532     files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
533     extremely well and has metadata journaling. ReiserFS is solid and usable as
534     both general-purpose filesystem and for extreme cases such as the creation of
535     large filesystems, very large files and directories containing tens of
536     thousands of small files.
537 swift 1.1 </p>
538    
539     <p>
540 neysx 1.10 <b>XFS</b> is a filesystem with metadata journaling which comes with a robust
541     feature-set and is optimized for scalability. We only recommend using this
542     filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
543     an uninterruptible power supply. Because XFS aggressively caches in-transit data
544     in RAM, improperly designed programs (those that don't take proper precautions
545     when writing files to disk and there are quite a few of them) can lose a good
546     deal of data if the system goes down unexpectedly.
547 swift 1.1 </p>
548    
549     </body>
550     </subsection>
551 nightmorph 1.38 <subsection>
552     <title>Activating the Swap Partition</title>
553     <body>
554    
555     <p>
556     <c>mkswap</c> is the command that is used to initialize swap partitions:
557     </p>
558    
559     <pre caption="Creating a swap signature">
560     # <i>mkswap /dev/hda3</i>
561     </pre>
562    
563     <p>
564     To activate the swap partition, use <c>swapon</c>:
565     </p>
566    
567     <pre caption="Activating the swap partition">
568     # <i>swapon /dev/hda3</i>
569     </pre>
570    
571     <p>
572     Create and activate the swap now before creating other filesystems.
573     </p>
574    
575     </body>
576     </subsection>
577 swift 1.1 <subsection id="filesystems-apply">
578     <title>Applying a Filesystem to a Partition</title>
579     <body>
580    
581     <p>
582     To create a filesystem on a partition or volume, there are tools available for
583     each possible filesystem:
584     </p>
585    
586     <table>
587     <tr>
588     <th>Filesystem</th>
589     <th>Creation Command</th>
590     </tr>
591     <tr>
592     <ti>ext2</ti>
593 nightmorph 1.38 <ti><c>mke2fs</c></ti>
594 swift 1.1 </tr>
595     <tr>
596     <ti>ext3</ti>
597 nightmorph 1.38 <ti><c>mke2fs -j</c></ti>
598 swift 1.1 </tr>
599     <tr>
600     <ti>reiserfs</ti>
601 nightmorph 1.38 <ti><c>mkreiserfs</c></ti>
602 swift 1.1 </tr>
603     <tr>
604     <ti>xfs</ti>
605     <ti><c>mkfs.xfs</c></ti>
606     </tr>
607     </table>
608    
609     <p>
610 nightmorph 1.38 For instance, to make an ext3 filesystem on the root partition
611     (<path>/dev/hda4</path> in our example), you would use:
612 swift 1.1 </p>
613    
614     <pre caption="Applying a filesystem on a partition">
615 nightmorph 1.38 # <i>mke2fs -j /dev/hda4</i>
616 swift 1.1 </pre>
617    
618     <p>
619     Now create the filesystems on your newly created partitions (or logical
620     volumes).
621     </p>
622    
623 nightmorph 1.44 <impo>
624     If you choose to use ReiserFS for <path>/</path>, do not change its default
625     block size if you will also be using <c>yaboot</c> as your bootloader, as
626     explained in <uri link="?part=1&amp;chap=10">Configuring the Bootloader</uri>.
627     </impo>
628    
629 dertobi123 1.11 <note>
630 nightmorph 1.38 On the PegasosII your partition which holds the kernel must be ext2, ext3 or
631 nightmorph 1.36 affs1. NewWorld machines can boot from any of ext2, ext3, XFS, ReiserFS or
632     even HFS/HFS+ filesystems. On OldWorld machines booting with BootX, the kernel
633     must be placed on an HFS partition, but this will be completed when you
634     configure your bootloader.
635 dertobi123 1.11 </note>
636    
637 swift 1.1 </body>
638     </subsection>
639     </section>
640     <section>
641     <title>Mounting</title>
642     <body>
643    
644     <p>
645     Now that your partitions are initialized and are housing a filesystem, it is
646 nightmorph 1.36 time to mount those partitions. Use the <c>mount</c> command. As an example we
647     mount the root partition:
648 swift 1.1 </p>
649    
650     <pre caption="Mounting partitions">
651 swift 1.22 # <i>mount /dev/hda4 /mnt/gentoo</i>
652 swift 1.1 </pre>
653    
654     <note>
655     If you want your <path>/tmp</path> to reside on a separate partition, be sure to
656 nightmorph 1.38 change its permissions after mounting and unpacking with
657     <c>chmod 1777 /mnt/gentoo/tmp</c>. This is also true for <path>/var/tmp</path>.
658 swift 1.1 </note>
659    
660 pylon 1.4 <p>
661 swift 1.12 Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
662 swift 1.1 Installation Files</uri>.
663     </p>
664    
665     </body>
666     </section>
667     </sections>

  ViewVC Help
Powered by ViewVC 1.1.20