/[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.34 Revision 1.35
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.34 2010/03/03 02:58:47 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-sparc-disk.xml,v 1.35 2010/07/20 08:29:37 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>5.1</version> 11<version>6.0</version>
12<date>2008-05-02</date> 12<date>2010-07-20</date>
13 13
14<section> 14<section>
15<title>Introduction to Block Devices</title> 15<title>Introduction to Block Devices</title>
16 16
17<subsection> 17<subsection>
72 <th>Size</th> 72 <th>Size</th>
73 <th>Mount Point</th> 73 <th>Mount Point</th>
74 <th>Description</th> 74 <th>Description</th>
75</tr> 75</tr>
76<tr> 76<tr>
77 <ti>/dev/sda1</ti>
78 <ti>ext3</ti>
79 <ti>&lt;2 GB</ti>
80 <ti>/</ti>
81 <ti>
82 Root partition. For SPARC64 systems with older OBP versions, this
83 <e>must</e> be less than 2 GB in size, and the first partition on the
84 disk.
85 </ti>
86</tr>
87<tr>
88 <ti>/dev/sda2</ti>
89 <ti>swap</ti>
90 <ti>512 MB</ti>
91 <ti>none</ti>
92 <ti>
93 Swap partition. For bootstrap and certain larger compiles, at least 512
94 MB of RAM (including swap) is required.
95 </ti>
96</tr>
97<tr>
98 <ti>/dev/sda3</ti>
99 <ti>none</ti>
100 <ti>Whole disk</ti>
101 <ti>none</ti>
102 <ti>Whole disk partition. This is required on SPARC systems.</ti>
103</tr>
104<tr>
105 <ti>/dev/sda4</ti>
106 <ti>ext3</ti>
107 <ti>at least 2 GB</ti>
108 <ti>/usr</ti>
109 <ti>
110 /usr partition. Applications are installed here. By default this partition
111 is also used for Portage data (which takes around 500 MB excluding
112 source code).
113 </ti>
114</tr>
115<tr>
116 <ti>/dev/sda5</ti>
117 <ti>ext3</ti>
118 <ti>at least 1 GB</ti>
119 <ti>/var</ti>
120 <ti>
121 /var partition. Used for program-generated data. By default Portage uses
122 this partition for temporary space whilst compiling. Certain larger
123 applications such as Mozilla and OpenOffice.org can require over 1 GB
124 of temporary space here when building.
125 </ti>
126</tr>
127<tr>
128 <ti>/dev/sda6</ti>
129 <ti>ext3</ti>
130 <ti>remaining space</ti>
131 <ti>/home</ti>
132 <ti>/home partition. Used for users' home directories.</ti>
133</tr>
134</table>
135
136</body>
137</subsection>
138</section>
139
140<section id="fdisk">
141<title>Using fdisk to Partition your Disk</title>
142<subsection>
143<body>
144
145<p>
146The following parts explain how to create the example partition layout described
147previously, namely:
148</p>
149
150<table>
151<tr>
152 <th>Partition</th>
153 <th>Description</th>
154</tr>
155<tr>
77 <ti>/dev/sda1</ti> 156 <ti>/dev/sda1</ti>
78 <ti>ext3</ti>
79 <ti>&lt;2 GByte</ti>
80 <ti>/</ti> 157 <ti>/</ti>
81 <ti>
82 Root partition. For SPARC64 systems with older OBP versions, this
83 <e>must</e> be less than 2 GBytes in size, and the first partition on the
84 disk.
85 </ti>
86</tr> 158</tr>
87<tr> 159<tr>
88 <ti>/dev/sda2</ti> 160 <ti>/dev/sda2</ti>
89 <ti>swap</ti> 161 <ti>swap</ti>
90 <ti>512 MBytes</ti>
91 <ti>none</ti>
92 <ti>
93 Swap partition. For bootstrap and certain larger compiles, at least 512
94 MBytes of RAM (including swap) is required.
95 </ti>
96</tr>
97<tr>
98 <ti>/dev/sda3</ti>
99 <ti>none</ti>
100 <ti>Whole disk</ti>
101 <ti>none</ti>
102 <ti>Whole disk partition. This is required on SPARC systems.</ti>
103</tr>
104<tr>
105 <ti>/dev/sda4</ti>
106 <ti>ext3</ti>
107 <ti>at least 2 GBytes</ti>
108 <ti>/usr</ti>
109 <ti>
110 /usr partition. Applications are installed here. By default this partition
111 is also used for Portage data (which takes around 500 Mbyte excluding
112 source code).
113 </ti>
114</tr>
115<tr>
116 <ti>/dev/sda5</ti>
117 <ti>ext3</ti>
118 <ti>at least 1GByte</ti>
119 <ti>/var</ti>
120 <ti>
121 /var partition. Used for program-generated data. By default Portage uses
122 this partition for temporary space whilst compiling. Certain larger
123 applications such as Mozilla and OpenOffice.org can require over 1 GByte
124 of temporary space here when building.
125 </ti>
126</tr>
127<tr>
128 <ti>/dev/sda6</ti>
129 <ti>ext3</ti>
130 <ti>remaining space</ti>
131 <ti>/home</ti>
132 <ti>/home partition. Used for users' home directories.</ti>
133</tr>
134</table>
135
136</body>
137</subsection>
138</section>
139
140<section id="fdisk">
141<title>Using fdisk to Partition your Disk</title>
142<subsection>
143<body>
144
145<p>
146The following parts explain how to create the example partition layout described
147previously, namely:
148</p>
149
150<table>
151<tr>
152 <th>Partition</th>
153 <th>Description</th>
154</tr>
155<tr>
156 <ti>/dev/sda1</ti>
157 <ti>/</ti>
158</tr>
159<tr>
160 <ti>/dev/sda2</ti>
161 <ti>swap</ti>
162</tr> 162</tr>
163<tr> 163<tr>
164 <ti>/dev/sda3</ti> 164 <ti>/dev/sda3</ti>
165 <ti>whole disk slice</ti> 165 <ti>whole disk slice</ti>
166</tr> 166</tr>
178</tr> 178</tr>
179</table> 179</table>
180 180
181<p> 181<p>
182Change the partition layout as required. Remember to keep the root partition 182Change the partition layout as required. Remember to keep the root partition
183entirely within the first 2 GBytes of the disk for older systems. There is also 183entirely within the first 2 GB of the disk for older systems. There is also
184a 15-partition limit for SCSI and SATA. 184a 15-partition limit for SCSI and SATA.
185</p> 185</p>
186 186
187</body> 187</body>
188</subsection> 188</subsection>
226</pre> 226</pre>
227 227
228<p> 228<p>
229Note the <c>Sun disk label</c> in the output. If this is missing, the disk is 229Note the <c>Sun disk label</c> in the output. If this is missing, the disk is
230using the DOS-partitioning, not the Sun partitioning. In this case, use <c>s</c> 230using the DOS-partitioning, not the Sun partitioning. In this case, use <c>s</c>
231to ensure that the disk has a sun partition table: 231to ensure that the disk has a Sun partition table:
232</p> 232</p>
233 233
234<pre caption="Creating a Sun Disklabel"> 234<pre caption="Creating a Sun Disklabel">
235Command (m for help): s 235Command (m for help): <i>s</i>
236Building a new sun disklabel. Changes will remain in memory only, 236Building a new sun disklabel. Changes will remain in memory only,
237until you decide to write them. After that, of course, the previous 237until you decide to write them. After that, of course, the previous
238content won't be recoverable. 238content won't be recoverable.
239 239
240Drive type 240Drive type
330 330
331<p> 331<p>
332We're ready to create the root partition. To do this, type <c>n</c> to create a 332We're ready to create the root partition. To do this, type <c>n</c> to create a
333new partition, then type <c>1</c> to create the partition. When prompted for 333new partition, then type <c>1</c> to create the partition. When prompted for
334the first cylinder, hit enter. When prompted for the last cylinder, type 334the first cylinder, hit enter. When prompted for the last cylinder, type
335<c>+512M</c> to create a partition <c>512MBytes</c> in size. Make sure that the 335<c>+512M</c> to create a partition <c>512 MB</c> in size. Make sure that the
336entire root partition fits within the first 2GBytes of the disk. You can see 336entire root partition fits within the first 2 GB of the disk. You can see
337output from these steps below: 337output from these steps below:
338</p> 338</p>
339 339
340<pre caption="Creating a root partition"> 340<pre caption="Creating a root partition">
341Command (m for help): <i>n</i> 341Command (m for help): <i>n</i>
367 367
368<p> 368<p>
369Next, let's create the swap partition. To do this, type <c>n</c> to create a new 369Next, let's create the swap partition. To do this, type <c>n</c> to create a new
370partition, then <c>2</c> to create the second partition, <path>/dev/sda2</path> 370partition, then <c>2</c> to create the second partition, <path>/dev/sda2</path>
371in our case. When prompted for the first cylinder, hit enter. When prompted for 371in our case. When prompted for the first cylinder, hit enter. When prompted for
372the last cylinder, type <c>+512M</c> to create a partition 512MB in size. After 372the last cylinder, type <c>+512M</c> to create a partition 512 MB in size. After
373you've done this, type <c>t</c> to set the partition type, and then type in 373you've done this, type <c>t</c> to set the partition type, and then type in
374<c>82</c> to set the partition type to "Linux Swap". After completing these 374<c>82</c> to set the partition type to "Linux Swap". After completing these
375steps, typing <c>p</c> should display a partition table that looks similar to 375steps, typing <c>p</c> should display a partition table that looks similar to
376this: 376this:
377</p> 377</p>
397<p> 397<p>
398Finally, let's create the /usr, /var and /home partitions. As before, 398Finally, let's create the /usr, /var and /home partitions. As before,
399type <c>n</c> to create a new partition, then type <c>4</c> to create the 399type <c>n</c> to create a new partition, then type <c>4</c> to create the
400third partition, <path>/dev/sda4</path> in our case. When prompted for the 400third partition, <path>/dev/sda4</path> in our case. When prompted for the
401first cylinder, hit enter. When prompted for the last cylinder, enter 401first cylinder, hit enter. When prompted for the last cylinder, enter
402<c>+2048M</c> to create a partition 2 GBytes in size. Repeat this process 402<c>+2048M</c> to create a partition 2 GB in size. Repeat this process
403for <path>sda5</path> and <path>sda6</path>, using the desired sizes. Once 403for <path>sda5</path> and <path>sda6</path>, using the desired sizes. Once
404you're done, you should see something like this: 404you're done, you should see something like this:
405</p> 405</p>
406 406
407<pre caption="Listing complete partition table"> 407<pre caption="Listing complete partition table">

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20