/[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.1 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.1 2004/04/05 09:11:03 swift 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 boot 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 boot 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>
362First cylinder (0-8635): <i>(press Enter)</i> 376First cylinder (0-8635): <i>(press Enter)</i>
363Last cylinder or +size or +sizeM or +sizeK (0-8635, default 8635): <i>+512M</i> 377Last cylinder or +size or +sizeM or +sizeK (0-8635, default 8635): <i>+512M</i>
364</pre> 378</pre>
375 389
376 Device Flag Start End Blocks Id System 390 Device Flag Start End Blocks Id System
377/dev/sda1 0 488 499712 83 Linux native 391/dev/sda1 0 488 499712 83 Linux native
378/dev/sda3 0 8635 8842240 5 Whole disk 392/dev/sda3 0 8635 8842240 5 Whole disk
379</pre> 393</pre>
394
380</body> 395</body>
381</subsection> 396</subsection>
382<subsection> 397<subsection>
383<title>Creating a swap partition</title> 398<title>Creating a swap partition</title>
384<body> 399<body>
478<subsection> 493<subsection>
479<title>Filesystems?</title> 494<title>Filesystems?</title>
480<body> 495<body>
481 496
482<p> 497<p>
483Several 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
484SPARC architecture. Ext2 and ext3, for example, are known to work well. 499SPARC architecture. Ext2 and ext3, for example, are known to work well.
485Alternate filesystems may not function correctly. 500Alternate filesystems may not function correctly.
486</p> 501</p>
487 502
488<p> 503<p>
498<p> 513<p>
499<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
500metadata journaling for fast recovery as well as other enhanced journaling 515metadata journaling for fast recovery as well as other enhanced journaling
501modes 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
502b-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>
503Ext3 makes an excellent and reliable alternative to ext2. 519command. Ext3 makes an excellent and reliable alternative to ext2.
504</p>
505
506<p>
507<b>ReiserFS</b> works only partially on sparc64 systems and is therefore not
508recommended for general use. <b>XFS</b> should be avoided, as it is known to
509have many problems on SPARCs and could ruin your data. Another journaling
510filesystem, <b>JFS</b>, is not supported. Regardless of your decision for
511filesystems, the bootloader requires that the root partition be either ext2 or
512ext3."
513</p> 520</p>
514 521
515</body> 522</body>
516</subsection> 523</subsection>
517<subsection id="filesystems-apply"> 524<subsection id="filesystems-apply">
577<pre caption="Activating the swap partition"> 584<pre caption="Activating the swap partition">
578# <i>swapon /dev/sda2</i> 585# <i>swapon /dev/sda2</i>
579</pre> 586</pre>
580 587
581<p> 588<p>
582Create and activate the swap now. 589Create and activate the swap with the commands mentioned above.
583</p> 590</p>
584 591
585</body> 592</body>
586</subsection> 593</subsection>
587</section> 594</section>
599<pre caption="Mounting partitions"> 606<pre caption="Mounting partitions">
600# <i>mount /dev/sda1 /mnt/gentoo</i> 607# <i>mount /dev/sda1 /mnt/gentoo</i>
601# <i>mkdir /mnt/gentoo/usr</i> 608# <i>mkdir /mnt/gentoo/usr</i>
602# <i>mount /dev/sda4 /mnt/gentoo/usr</i> 609# <i>mount /dev/sda4 /mnt/gentoo/usr</i>
603# <i>mkdir /mnt/gentoo/var</i> 610# <i>mkdir /mnt/gentoo/var</i>
604# <i>mount /dev/sda4 /mnt/gentoo/var</i> 611# <i>mount /dev/sda5 /mnt/gentoo/var</i>
605# <i>mkdir /mnt/gentoo/home</i> 612# <i>mkdir /mnt/gentoo/home</i>
606# <i>mount /dev/sda4 /mnt/gentoo/home</i> 613# <i>mount /dev/sda6 /mnt/gentoo/home</i>
607</pre> 614</pre>
608 615
609<note> 616<note>
610If you want your <path>/tmp</path> to reside on a separate partition, be sure 617If you want your <path>/tmp</path> to reside on a separate partition, be sure
611to 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>.
612This also holds for <path>/var/tmp</path>. 619This also holds for <path>/var/tmp</path>.
613</note> 620</note>
614 621
615<p> 622<p>
616We 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
617on <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.
618mount point and then mount the filesystem:
619</p>
620
621<pre caption="Creating the /mnt/gentoo/proc mount point">
622# <i>mkdir /mnt/gentoo/proc</i>
623# <i>mount -t proc none /mnt/gentoo/proc</i>
624</pre>
625
626<p> 625</p>
626
627<p>
627Now continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo 628Continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
628Installation Files</uri>. 629Installation Files</uri>.
629</p> 630</p>
630 631
631</body> 632</body>
632</section> 633</section>

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

  ViewVC Help
Powered by ViewVC 1.1.20