/[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.7
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/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.7 2004/08/17 00:01:21 vapier Exp $ -->
8 8
9<sections> 9<sections>
10<section> 10<section>
11<title>Introduction to Block Devices</title> 11<title>Introduction to Block Devices</title>
12<subsection> 12<subsection>
13<title>Block Devices</title> 13<title>Block Devices</title>
14<body> 14<body>
15 15
16<p> 16<p>
17We'll take a good look at disk-oriented aspects of Gentoo Linux 17We'll take a good look at disk-oriented aspects of Gentoo Linux
18and Linux in general, including Linux filesystems, partitions and block devices. 18and Linux in general, including Linux filesystems, partitions and block devices.
19Then, once you're familiar with the ins and outs of disks and filesystems, 19Then, once you're familiar with the ins and outs of disks and filesystems,
20you'll be guided through the process of setting up partitions and filesystems 20you'll be guided through the process of setting up partitions and filesystems
21for your Gentoo Linux installation. 21for your Gentoo Linux installation.
22</p> 22</p>
171Change your slice layout according to your own will. 171Change your slice layout according to your own will.
172</p> 172</p>
173 173
174 174
175</body> 175</body>
176</subsection> 176</subsection>
177<subsection> 177<subsection>
178<title>Identifying Available Disks</title> 178<title>Identifying Available Disks</title>
179<body> 179<body>
180 180
181<p> 181<p>
182To figure out what disks you have running, use the following commands: 182To figure out what disks you have running, use the following commands:
183</p> 183</p>
184 184
185<pre caption="Identifying available disks"> 185<pre caption="Identifying available disks">
186<comment>(For IDE disks)</comment> # <i>dmesg | grep 'drive$'</i> 186# <i>dmesg | grep 'drive$'</i> <comment>(For IDE disks)</comment>
187<comment>(For SCSI disks)</comment> # <i>dmesg | grep 'scsi'</i> 187# <i>dmesg | grep 'scsi'</i> <comment>(For SCSI disks)</comment>
188</pre> 188</pre>
189 189
190<p> 190<p>
191From this output you should be able to see what disks were detected and their 191From 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 192respective <path>/dev</path> entry. In the following parts we assume that the
193disk is a SCSI disk on <path>/dev/sda</path>. 193disk is a SCSI disk on <path>/dev/sda</path>.
194</p> 194</p>
195 195
196<p> 196<p>
197Now fire up <c>fdisk</c>: 197Now fire up <c>fdisk</c>:
198</p> 198</p>
199 199
200<pre caption="Starting fdisk"> 200<pre caption="Starting fdisk">
201# <i>fdisk /dev/sda</i> 201# <i>fdisk /dev/sda</i>
202</pre> 202</pre>
203 203
204</body> 204</body>
205</subsection> 205</subsection>
206<subsection> 206<subsection>
207<title>Deleting All Slices</title> 207<title>Deleting All Slices</title>
208<body> 208<body>
209
210<p>
211If your hard drive is completely blank, then you'll have to first create
212a BSD disklabel.
213</p>
214
215<pre caption="Creating BSD disklabel">
216Command (m for help): <i>b</i>
217/dev/sda contains no disklabel.
218Do you want to create a disklabel? (y/n) <i>y</i>
219<comment>A bunch of drive-specific info will show here</comment>
2203 partitions:
221# start end size fstype [fsize bsize cpg]
222 c: 1 5290* 5289* unused 0 0
223</pre>
209 224
210<p> 225<p>
211We start with deleting all slices <e>except</e> the 'c'-slice. The following 226We 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 227shows how to delete a slice (in the example we use 'a'). Repeat the process to
213delete all other slices (again, except the 'c'-slice). 228delete all other slices (again, except the 'c'-slice).
214</p> 229</p>
215 230
216<p> 231<p>
217Use <c>p</c> to view all existing slices. <c>d</c> is used to delete a slice. 232Use <c>p</c> to view all existing slices. <c>d</c> is used to delete a slice.
218</p> 233</p>
219 234
220<pre caption="Deleting a slice"> 235<pre caption="Deleting a slice">
221BSD disklabel command (m for help): <i>p</i> 236BSD disklabel command (m for help): <i>p</i>
222 237
2238 partitions: 2388 partitions:

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

  ViewVC Help
Powered by ViewVC 1.1.20