| … | |
… | |
| 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-sparc-disk.xml,v 1.30 2007/06/26 07:07:27 nightmorph Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-sparc-disk.xml,v 1.31 2008/04/01 08:53:46 nightmorph Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>4.1</version> |
11 | <version>5.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> |
|
|
| 21 | We'll take a good look at some of the disk-oriented aspects of Gentoo Linux |
|
|
| 22 | and Linux in general, including Linux filesystems, partitions, and block |
|
|
| 23 | devices. Then, once you're familiar with the ins and outs of disks and |
|
|
| 24 | filesystems, you'll be guided through the process of setting up partitions |
|
|
| 25 | and filesystems for your Gentoo Linux installation. |
|
|
| 26 | </p> |
|
|
| 27 | |
|
|
| 28 | <p> |
|
|
| 29 | To begin, we introduce <e>block devices</e>. The most typical block device is |
|
|
| 30 | probably the one that represents the first SCSI hard disk in a Linux system, |
|
|
| 31 | namely <path>/dev/sda</path>. |
|
|
| 32 | </p> |
|
|
| 33 | |
|
|
| 34 | <p> |
|
|
| 35 | Block devices represent an abstract interface to the disk. User programs can |
|
|
| 36 | use these block devices to interact with your disk without worrying about |
|
|
| 37 | whether your drives are IDE, SCSI, or something else. The program can simply |
|
|
| 38 | address the storage on the disk as a bunch of contiguous, randomly-accessible |
|
|
| 39 | 512-byte blocks. |
|
|
| 40 | </p> |
|
|
| 41 | |
|
|
| 42 | <p> |
|
|
| 43 | Block devices show up as entries in <path>/dev/</path>. Typically, the first |
|
|
| 44 | SCSI drive is named <path>/dev/sda</path>, the second <path>/dev/sdb</path>, |
|
|
| 45 | and so on. IDE drives are named similarly, however, they are prefixed by hd- |
|
|
| 46 | instead of sd-. If you are using IDE drives, the first one will be named |
|
|
| 47 | <path>/dev/hda</path>, the second <path>/dev/hdb</path>, and so on. |
|
|
| 48 | </p> |
|
|
| 49 | |
|
|
| 50 | </body> |
|
|
| 51 | </subsection> |
17 | <subsection> |
|
|
18 | <include href="hb-install-blockdevices.xml"/> |
|
|
19 | </subsection> |
|
|
20 | |
| 52 | <subsection> |
21 | <subsection> |
| 53 | <title>Partitions</title> |
22 | <title>Partitions</title> |
| 54 | <body> |
23 | <body> |
| 55 | |
24 | |
| 56 | <p> |
25 | <p> |
| … | |
… | |
| 488 | Otherwise, read on to learn about the available filesystems... |
457 | Otherwise, read on to learn about the available filesystems... |
| 489 | </p> |
458 | </p> |
| 490 | |
459 | |
| 491 | </body> |
460 | </body> |
| 492 | </subsection> |
461 | </subsection> |
| 493 | <subsection> |
|
|
| 494 | <title>Filesystems?</title> |
|
|
| 495 | <body> |
|
|
| 496 | |
462 | |
| 497 | <p> |
|
|
| 498 | Several filesystems are available, some are known to be stable on the |
|
|
| 499 | SPARC architecture. Ext2 and ext3, for example, are known to work well. |
|
|
| 500 | Alternate filesystems may not function correctly. |
|
|
| 501 | </p> |
|
|
| 502 | |
|
|
| 503 | <p> |
|
|
| 504 | <b>ext2</b> is the tried-and-true Linux filesystem. It does not support |
|
|
| 505 | journaling, which means that periodic checks of ext2 filesystems at startup |
|
|
| 506 | can be quite time-consuming. There is quite a selection of newer-generation |
|
|
| 507 | journaled filesystems that can be checked for consistency very quickly at |
|
|
| 508 | startup, and are therefore generally preferred over their non-journaled |
|
|
| 509 | counterparts. In general, journaled filesystems prevent long delays when a |
|
|
| 510 | system is booted and the filesystem is in an inconsistent state. |
|
|
| 511 | </p> |
|
|
| 512 | |
|
|
| 513 | <p> |
|
|
| 514 | <b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata |
|
|
| 515 | journaling for fast recovery in addition to other enhanced journaling modes like |
|
|
| 516 | full data and ordered data journaling. It uses an HTree index that enables high |
|
|
| 517 | performance in almost all situations. In short, ext3 is a very good and reliable |
|
|
| 518 | filesystem. |
|
|
| 519 | </p> |
|
|
| 520 | |
|
|
| 521 | </body> |
|
|
| 522 | </subsection> |
463 | <subsection> |
|
|
464 | <include href="hb-install-filesystems.xml"/> |
|
|
465 | </subsection> |
|
|
466 | |
| 523 | <subsection id="filesystems-apply"> |
467 | <subsection id="filesystems-apply"> |
| 524 | <title>Applying a Filesystem to a Partition</title> |
468 | <title>Applying a Filesystem to a Partition</title> |
| 525 | <body> |
469 | <body> |
| 526 | |
470 | |
| 527 | <p> |
471 | <p> |