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

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

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

Revision 1.6 Revision 1.11
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/1.0 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.6 2004/08/02 15:54:00 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.11 2004/11/15 12:47:47 swift Exp $ -->
8 8
9<sections> 9<sections>
10
11<version>1.9</version>
12<date>August 30, 2004</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>
166 <ti>Full disk (required)</ti> 170 <ti>Full disk (required)</ti>
167</tr> 171</tr>
168</table> 172</table>
169 173
170<p> 174<p>
171Change your slice layout according to your own will. 175Change your slice layout according to your own preference.
172</p> 176</p>
173 177
174 178
175</body> 179</body>
176</subsection> 180</subsection>
181<p> 185<p>
182To figure out what disks you have running, use the following commands: 186To figure out what disks you have running, use the following commands:
183</p> 187</p>
184 188
185<pre caption="Identifying available disks"> 189<pre caption="Identifying available disks">
186<comment>(For IDE disks)</comment> # <i>dmesg | grep 'drive$'</i> 190# <i>dmesg | grep 'drive$'</i> <comment>(For IDE disks)</comment>
187<comment>(For SCSI disks)</comment> # <i>dmesg | grep 'scsi'</i> 191# <i>dmesg | grep 'scsi'</i> <comment>(For SCSI disks)</comment>
188</pre> 192</pre>
189 193
190<p> 194<p>
191From this output you should be able to see what disks were detected and their 195From this output you should be able to see what disks were detected and their
192respective <path>/dev</path> entry. In the following parts we assume that the 196respective <path>/dev</path> entry. In the following parts we assume that the
204</body> 208</body>
205</subsection> 209</subsection>
206<subsection> 210<subsection>
207<title>Deleting All Slices</title> 211<title>Deleting All Slices</title>
208<body> 212<body>
213
214<p>
215If your hard drive is completely blank, then you'll have to first create
216a BSD disklabel.
217</p>
218
219<pre caption="Creating BSD disklabel">
220Command (m for help): <i>b</i>
221/dev/sda contains no disklabel.
222Do you want to create a disklabel? (y/n) <i>y</i>
223<comment>A bunch of drive-specific info will show here</comment>
2243 partitions:
225# start end size fstype [fsize bsize cpg]
226 c: 1 5290* 5289* unused 0 0
227</pre>
209 228
210<p> 229<p>
211We start with deleting all slices <e>except</e> the 'c'-slice. The following 230We start with deleting all slices <e>except</e> the 'c'-slice. The following
212shows how to delete a slice (in the example we use 'a'). Repeat the process to 231shows how to delete a slice (in the example we use 'a'). Repeat the process to
213delete all other slices (again, except the 'c'-slice). 232delete all other slices (again, except the 'c'-slice).
260</p> 279</p>
261 280
262<p> 281<p>
263We will create a swap slice starting at the third cylinder, with a total 282We will create a swap slice starting at the third cylinder, with a total
264size of 1 Gbyte. Use <c>n</c> to create a new slice. After creating the slice, 283size of 1 Gbyte. Use <c>n</c> to create a new slice. After creating the slice,
265we will change its type to <c>1</c>, meaning <e>swap</e>. 284we will change its type to <c>1</c> (one), meaning <e>swap</e>.
266</p> 285</p>
267 286
268<pre caption="Creating the swap slice"> 287<pre caption="Creating the swap slice">
269BSD disklabel command (m for help): <i>n</i> 288BSD disklabel command (m for help): <i>n</i>
270Partition (a-p): <i>a</i> 289Partition (a-p): <i>a</i>

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20