| … | |
… | |
| 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> |
| 171 | Change your slice layout according to your own will. |
175 | Change 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> |
| 182 | To figure out what disks you have running, use the following commands: |
186 | To 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> |
| 191 | From this output you should be able to see what disks were detected and their |
195 | From this output you should be able to see what disks were detected and their |
| 192 | respective <path>/dev</path> entry. In the following parts we assume that the |
196 | respective <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> |
|
|
215 | If your hard drive is completely blank, then you'll have to first create |
|
|
216 | a BSD disklabel. |
|
|
217 | </p> |
|
|
218 | |
|
|
219 | <pre caption="Creating BSD disklabel"> |
|
|
220 | Command (m for help): <i>b</i> |
|
|
221 | /dev/sda contains no disklabel. |
|
|
222 | Do you want to create a disklabel? (y/n) <i>y</i> |
|
|
223 | <comment>A bunch of drive-specific info will show here</comment> |
|
|
224 | 3 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> |
| 211 | We start with deleting all slices <e>except</e> the 'c'-slice. The following |
230 | We start with deleting all slices <e>except</e> the 'c'-slice. The following |
| 212 | shows how to delete a slice (in the example we use 'a'). Repeat the process to |
231 | shows how to delete a slice (in the example we use 'a'). Repeat the process to |
| 213 | delete all other slices (again, except the 'c'-slice). |
232 | delete all other slices (again, except the 'c'-slice). |
| … | |
… | |
| 260 | </p> |
279 | </p> |
| 261 | |
280 | |
| 262 | <p> |
281 | <p> |
| 263 | We will create a swap slice starting at the third cylinder, with a total |
282 | We will create a swap slice starting at the third cylinder, with a total |
| 264 | size of 1 Gbyte. Use <c>n</c> to create a new slice. After creating the slice, |
283 | size of 1 Gbyte. Use <c>n</c> to create a new slice. After creating the slice, |
| 265 | we will change its type to <c>1</c>, meaning <e>swap</e>. |
284 | we 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"> |
| 269 | BSD disklabel command (m for help): <i>n</i> |
288 | BSD disklabel command (m for help): <i>n</i> |
| 270 | Partition (a-p): <i>a</i> |
289 | Partition (a-p): <i>a</i> |