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

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

Revision 1.28 Revision 1.31
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.28 2007/02/16 13:45:39 neysx 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>3.2</version> 11<version>5.0</version>
12<date>2007-02-16</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>
17<title>Block Devices</title>
19 16
21We'll take a good look at some of the disk-oriented aspects of Gentoo Linux
22and Linux in general, including Linux filesystems, partitions, and block
23devices. Then, once you're familiar with the ins and outs of disks and
24filesystems, you'll be guided through the process of setting up partitions
25and filesystems for your Gentoo Linux installation.
29To begin, we introduce <e>block devices</e>. The most typical block device is
30probably the one that represents the first SCSI hard disk in a Linux system,
31namely <path>/dev/sda</path>.
35Block devices represent an abstract interface to the disk. User programs can
36use these block devices to interact with your disk without worrying about
37whether your drives are IDE, SCSI, or something else. The program can simply
38address the storage on the disk as a bunch of contiguous, randomly-accessible
39512-byte blocks.
43Block devices show up as entries in <path>/dev/</path>. Typically, the first
44SCSI drive is named <path>/dev/sda</path>, the second <path>/dev/sdb</path>,
45and so on. IDE drives are named similarly, however, they are prefixed by hd-
46instead 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.
51</subsection> 17<subsection>
18<include href="hb-install-blockdevices.xml"/>
52<subsection> 21<subsection>
53<title>Partitions</title> 22<title>Partitions</title>
54<body> 23<body>
55 24
56<p> 25<p>
110 <ti>/dev/sda1</ti> 79 <ti>/dev/sda1</ti>
111 <ti>ext3</ti> 80 <ti>ext3</ti>
112 <ti>&lt;2 GByte</ti> 81 <ti>&lt;2 GByte</ti>
113 <ti>/</ti> 82 <ti>/</ti>
114 <ti> 83 <ti>
115 Root partition. For sun4c, sun4d and sun4m systems, some PROMs require 84 Root partition. For sparc64 systems with older OBP versions, this
116 this partition to be less than 1 GBytes in size and the first 85 <e>must</e> be less than 2 GBytes in size, and the first partition on the
117 partition on the disk. 86 disk.
118 </ti> 87 </ti>
119</tr> 88</tr>
120<tr> 89<tr>
121 <ti>/dev/sda2</ti> 90 <ti>/dev/sda2</ti>
122 <ti>swap</ti> 91 <ti>swap</ti>
488Otherwise, read on to learn about the available filesystems... 457Otherwise, read on to learn about the available filesystems...
489</p> 458</p>
490 459
491</body> 460</body>
492</subsection> 461</subsection>
496 462
498Several filesystems are available, some are known to be stable on the
499SPARC architecture. Ext2 and ext3, for example, are known to work well.
500Alternate filesystems may not function correctly.
504<b>ext2</b> is the tried-and-true Linux filesystem. It does not support
505journaling, which means that periodic checks of ext2 filesystems at startup
506can be quite time-consuming. There is quite a selection of newer-generation
507journaled filesystems that can be checked for consistency very quickly at
508startup, and are therefore generally preferred over their non-journaled
509counterparts. In general, journaled filesystems prevent long delays when a
510system is booted and the filesystem is in an inconsistent state.
514<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
515journaling for fast recovery in addition to other enhanced journaling modes
516like full data and ordered data journaling. It uses a hashed B*-tree index that
517enables high performance in almost all situations. Ext3 makes an excellent and
518reliable alternative to ext2.
522</subsection> 463<subsection>
464<include href="hb-install-filesystems.xml"/>
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>
551and <path>6</path> in our example, respectively) as ext3, you would use: 495and <path>6</path> in our example, respectively) as ext3, you would use:
552</p> 496</p>
553 497
554<pre caption="Applying a filesystem on a partition"> 498<pre caption="Applying a filesystem on a partition">
555# <i>mke2fs /dev/sda1</i> 499# <i>mke2fs /dev/sda1</i>
556# <i>mke2fs -j -O dir_index /dev/sda4</i> 500# <i>mke2fs -j /dev/sda4</i>
557# <i>mke2fs -j -O dir_index /dev/sda5</i> 501# <i>mke2fs -j /dev/sda5</i>
558# <i>mke2fs -j -O dir_index /dev/sda6</i> 502# <i>mke2fs -j /dev/sda6</i>
559</pre> 503</pre>
560 504
561</body> 505</body>
562</subsection> 506</subsection>
563<subsection> 507<subsection>

Removed from v.1.28  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.20