/[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.45 Revision 1.46
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.45 2007/07/13 08:40:58 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.46 2008/04/01 08:53:46 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>8.3</version> 11<version>9.0</version>
12<date>2007-06-26</date> 12<date>2008-04-01</date>
13 13
14<section> 14<section>
15<title>Introduction to Block Devices</title> 15<title>Introduction to Block Devices</title>
16<subsection>
17<title>Block Devices</title>
18<body>
19 16
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> 17<subsection>
18<include href="hb-install-blockdevices.xml"/>
19</subsection>
20
47<subsection> 21<subsection>
48<title>Partitions</title> 22<title>Partitions</title>
49<body> 23<body>
50 24
51<p> 25<p>
499Otherwise, read on to learn about the available filesystems. 473Otherwise, read on to learn about the available filesystems.
500</p> 474</p>
501 475
502</body> 476</body>
503</subsection> 477</subsection>
504<subsection>
505<title>Filesystems?</title>
506<body>
507 478
508<p>
509Several filesystems are available for use on the PowerPC architecture including
510ext2, ext3, ReiserFS and XFS, each with their strengths and faults.
511</p>
512
513<p>
514<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata
515journaling, which means that routine ext2 filesystem checks at startup time can
516be quite time-consuming. There is now quite a selection of journaled
517filesystems that can be checked for consistency very quickly and are thus
518generally preferred over their non-journaled counterparts.
519</p>
520
521<p>
522<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
523journaling for fast recovery in addition to other enhanced journaling modes like
524full data and ordered data journaling. It uses an HTree index that enables high
525performance in almost all situations. In short, ext3 is a very good and reliable
526filesystem.
527</p>
528
529<p>
530<b>ReiserFS</b> is a B+tree-based filesystem that has very good overall
531performance and greatly outperforms both ext2 and ext3 when dealing with small
532files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
533extremely well and has metadata journaling. ReiserFS is solid and usable as
534both general-purpose filesystem and for extreme cases such as the creation of
535large filesystems, very large files and directories containing tens of
536thousands of small files.
537</p>
538
539<p>
540<b>XFS</b> is a filesystem with metadata journaling which comes with a robust
541feature-set and is optimized for scalability. We only recommend using this
542filesystem on Linux systems with high-end SCSI and/or fibre channel storage and
543an uninterruptible power supply. Because XFS aggressively caches in-transit data
544in RAM, improperly designed programs (those that don't take proper precautions
545when writing files to disk and there are quite a few of them) can lose a good
546deal of data if the system goes down unexpectedly.
547</p>
548
549</body>
550</subsection> 479<subsection>
480<include href="hb-install-filesystems.xml"/>
481</subsection>
482
551<subsection> 483<subsection>
552<title>Activating the Swap Partition</title> 484<title>Activating the Swap Partition</title>
553<body> 485<body>
554 486
555<p> 487<p>

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.20