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

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.2 Revision 1.23
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
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/1.0 --> 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.2 2004/04/05 13:59:53 neysx Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-sparc-disk.xml,v 1.23 2005/09/25 16:19:37 neysx Exp $ -->
8 8
9<sections> 9<sections>
10
11<version>2.4</version>
12<date>2005-08-25</date>
13
10<section> 14<section>
11<title>Introduction to Block Devices</title> 15<title>Introduction to Block Devices</title>
12<subsection> 16<subsection>
13<title>Block Devices</title> 17<title>Block Devices</title>
14<body> 18<body>
105<tr> 109<tr>
106 <ti>/dev/sda1</ti> 110 <ti>/dev/sda1</ti>
107 <ti>ext3</ti> 111 <ti>ext3</ti>
108 <ti>&lt;2 GByte</ti> 112 <ti>&lt;2 GByte</ti>
109 <ti>/</ti> 113 <ti>/</ti>
114 <ti>
110 <ti>Root partition. For all sparc32 systems, and sparc64 systems with older 115 Root partition. For all sparc32 systems, and sparc64 systems with older
111 OBP versions, this <e>must</e> be less than 2 GBytes in size, and the first 116 OBP versions, this <e>must</e> be less than 2 GBytes in size, and the first
112 partition on the disk.</ti> 117 partition on the disk.
118 </ti>
113</tr> 119</tr>
114<tr> 120<tr>
115 <ti>/dev/sda2</ti> 121 <ti>/dev/sda2</ti>
116 <ti>swap</ti> 122 <ti>swap</ti>
117 <ti>512 MBytes</ti> 123 <ti>512 MBytes</ti>
118 <ti>none</ti> 124 <ti>none</ti>
125 <ti>
119 <ti>Swap partition. For bootstrap and certain larger compiles, at least 512 126 Swap partition. For bootstrap and certain larger compiles, at least 512
120 MBytes of RAM (including swap) is required.</ti> 127 MBytes of RAM (including swap) is required.
128 </ti>
121</tr> 129</tr>
122<tr> 130<tr>
123 <ti>/dev/sda3</ti> 131 <ti>/dev/sda3</ti>
124 <ti>none</ti> 132 <ti>none</ti>
125 <ti>Whole disk</ti> 133 <ti>Whole disk</ti>
129<tr> 137<tr>
130 <ti>/dev/sda4</ti> 138 <ti>/dev/sda4</ti>
131 <ti>ext3</ti> 139 <ti>ext3</ti>
132 <ti>at least 2 GBytes</ti> 140 <ti>at least 2 GBytes</ti>
133 <ti>/usr</ti> 141 <ti>/usr</ti>
142 <ti>
134 <ti>/usr partition. Applications are installed here. By default this partition 143 /usr partition. Applications are installed here. By default this partition
135 is also used for portage data.</ti> 144 is also used for Portage data (which takes around 500 Mbyte excluding
145 source code).
146 </ti>
136</tr> 147</tr>
137<tr> 148<tr>
138 <ti>/dev/sda5</ti> 149 <ti>/dev/sda5</ti>
139 <ti>ext3</ti> 150 <ti>ext3</ti>
140 <ti>at least 1GByte</ti> 151 <ti>at least 1GByte</ti>
141 <ti>/var</ti> 152 <ti>/var</ti>
153 <ti>
142 <ti>/var partition. Used for program-generated data. By default portage uses 154 /var partition. Used for program-generated data. By default Portage uses
143 this partition for temporary space whilst compiling. Certain larger 155 this partition for temporary space whilst compiling. Certain larger
144 applications such as Mozilla and OpenOffice.org can require over 1 GByte 156 applications such as Mozilla and OpenOffice.org can require over 1 GByte
145 of temporary space here when building.</ti> 157 of temporary space here when building.
158 </ti>
146</tr> 159</tr>
147<tr> 160<tr>
148 <ti>/dev/sda6</ti> 161 <ti>/dev/sda6</ti>
149 <ti>ext3</ti> 162 <ti>ext3</ti>
150 <ti>remaining space</ti> 163 <ti>remaining space</ti>
198</tr> 211</tr>
199</table> 212</table>
200 213
201<p> 214<p>
202Change the partition layout as required. Remember to keep the root partition 215Change the partition layout as required. Remember to keep the root partition
203entirely within the first 2 GBytes of the disk for older systems. 216entirely within the first 2 GBytes of the disk for older systems. There is also
217a 15-partition limit for SCSI and SATA.
204</p> 218</p>
205 219
206</body> 220</body>
207</subsection> 221</subsection>
208<subsection> 222<subsection>
346<subsection> 360<subsection>
347<title>Creating the Root Partition</title> 361<title>Creating the Root Partition</title>
348<body> 362<body>
349 363
350<p> 364<p>
351We're ready to create the root partition. To do this, type <c>n</c> to create a 365We're ready to create the root partition. To do this, type <c>n</c> to create a
352new partition, then type <c>1</c> to create the partition. When prompted for the 366new partition, then type <c>1</c> to create the partition. When prompted for
353first cylinder, hit enter. When prompted for the last cylinder, type <c>+512M</c> 367the first cylinder, hit enter. When prompted for the last cylinder, type
354to create a partition <c>512MBytes</c> in size. Make sure that the entire root 368<c>+512M</c> to create a partition <c>512MBytes</c> in size. Make sure that the
355partition must be contained entirely within the first 2GBytes of the disk. 369entire root partition fits within the first 2GBytes of the disk. You can see
356You can see output from these steps below: 370output from these steps below:
357</p> 371</p>
358 372
359<pre caption="Creating a root partition"> 373<pre caption="Creating a root partition">
360Command (m for help): <i>n</i> 374Command (m for help): <i>n</i>
361Partition number (1-8): <i>1</i> 375Partition number (1-8): <i>1</i>
479<subsection> 493<subsection>
480<title>Filesystems?</title> 494<title>Filesystems?</title>
481<body> 495<body>
482 496
483<p> 497<p>
484Several filesystems are available, a few of which are known to be stable on the 498Several filesystems are available, some are known to be stable on the
485SPARC architecture. Ext2 and ext3, for example, are known to work well. 499SPARC architecture. Ext2 and ext3, for example, are known to work well.
486Alternate filesystems may not function correctly. 500Alternate filesystems may not function correctly.
487</p> 501</p>
488 502
489<p> 503<p>
499<p> 513<p>
500<b>ext3</b> is the journaled version of the ext2 filesystem. It provides 514<b>ext3</b> is the journaled version of the ext2 filesystem. It provides
501metadata journaling for fast recovery as well as other enhanced journaling 515metadata journaling for fast recovery as well as other enhanced journaling
502modes like full-data and ordered-data journaling. Ext3 has an additional hashed 516modes like full-data and ordered-data journaling. Ext3 has an additional hashed
503b-tree indexing option that enables high performance in almost all situations. 517b-tree indexing option that enables high performance in almost all situations.
518You can enable this indexing by adding <c>-O dir_index</c> to the <c>mke2fs</c>
504Ext3 makes an excellent and reliable alternative to ext2. 519command. Ext3 makes an excellent and reliable alternative to ext2.
505</p>
506
507<p>
508<b>ReiserFS</b> works only partially on sparc64 systems and is therefore not
509recommended for general use. <b>XFS</b> should be avoided, as it is known to
510have many problems on SPARCs and could ruin your data. Another journaling
511filesystem, <b>JFS</b>, is not supported. Regardless of your decision for
512filesystems, the bootloader requires that the root partition be either ext2 or
513ext3."
514</p> 520</p>
515 521
516</body> 522</body>
517</subsection> 523</subsection>
518<subsection id="filesystems-apply"> 524<subsection id="filesystems-apply">
578<pre caption="Activating the swap partition"> 584<pre caption="Activating the swap partition">
579# <i>swapon /dev/sda2</i> 585# <i>swapon /dev/sda2</i>
580</pre> 586</pre>
581 587
582<p> 588<p>
583Create and activate the swap now. 589Create and activate the swap with the commands mentioned above.
584</p> 590</p>
585 591
586</body> 592</body>
587</subsection> 593</subsection>
588</section> 594</section>
612to change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. 618to change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>.
613This also holds for <path>/var/tmp</path>. 619This also holds for <path>/var/tmp</path>.
614</note> 620</note>
615 621
616<p> 622<p>
617We also need to mount the proc filesystem (a virtual interface with the kernel) 623We will also have to mount the proc filesystem (a virtual interface with the
618on <path>/proc</path>. We first create the <path>/mnt/gentoo/proc</path> 624kernel) on <path>/proc</path>. But first we will need to place our files on the partitions.
619mount point and then mount the filesystem:
620</p>
621
622<pre caption="Creating the /mnt/gentoo/proc mount point">
623# <i>mkdir /mnt/gentoo/proc</i>
624# <i>mount -t proc none /mnt/gentoo/proc</i>
625</pre>
626
627<p> 625</p>
626
627<p>
628Now continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo 628Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
629Installation Files</uri>. 629Installation Files</uri>.
630</p> 630</p>
631 631
632</body> 632</body>
633</section> 633</section>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20