| 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.14 2005/01/01 15:23:55 cam Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.15 2005/01/02 12:06:05 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>1.10</version> |
11 | <version>1.10</version> |
| 12 | <date>2004-12-30</date> |
12 | <date>2004-12-30</date> |
| 13 | |
13 | |
| 14 | <section> |
14 | <section> |
| 15 | <title>Introduction to Block Devices</title> |
15 | <title>Introduction to Block Devices</title> |
| 16 | <subsection> |
16 | <subsection> |
| 17 | <title>Block Devices</title> |
17 | <title>Block Devices</title> |
| 18 | <body> |
18 | <body> |
| 19 | |
19 | |
| 20 | <p> |
20 | <p> |
| 21 | We'll take a good look at disk-oriented aspects of Gentoo Linux |
21 | We'll take a good look at disk-oriented aspects of Gentoo Linux |
| 22 | and Linux in general, including Linux filesystems, partitions and block devices. |
22 | and Linux in general, including Linux filesystems, partitions and block devices. |
| … | |
… | |
| 269 | </pre> |
269 | </pre> |
| 270 | |
270 | |
| 271 | </body> |
271 | </body> |
| 272 | </subsection> |
272 | </subsection> |
| 273 | <subsection> |
273 | <subsection> |
| 274 | <title>Creating the Swap Slice</title> |
274 | <title>Creating the Swap Slice</title> |
| 275 | <body> |
275 | <body> |
| 276 | |
276 | |
| 277 | <p> |
277 | <p> |
| 278 | On Alpha based systems you don't need a separate boot partition. However, the |
278 | On Alpha based systems you don't need a separate boot partition. However, the |
| 279 | first cylinder cannot be used as the <c>aboot</c> image will be placed there. |
279 | first cylinder cannot be used as the <c>aboot</c> image will be placed there. |
| 280 | </p> |
280 | </p> |
| 281 | |
281 | |
| 282 | <p> |
282 | <p> |
| 283 | We will create a swap slice starting at the third cylinder, with a total |
283 | We will create a swap slice starting at the third cylinder, with a total |
| 284 | size of 1 Gbyte. Use <c>n</c> to create a new slice. After creating the slice, |
284 | size of 1 GB. Use <c>n</c> to create a new slice. After creating the slice, |
| 285 | we will change its type to <c>1</c> (one), meaning <e>swap</e>. |
285 | we will change its type to <c>1</c> (one), meaning <e>swap</e>. |
| 286 | </p> |
286 | </p> |
| 287 | |
287 | |
| 288 | <pre caption="Creating the swap slice"> |
288 | <pre caption="Creating the swap slice"> |
| 289 | BSD disklabel command (m for help): <i>n</i> |
289 | BSD disklabel command (m for help): <i>n</i> |
| 290 | Partition (a-p): <i>a</i> |
290 | Partition (a-p): <i>a</i> |
| 291 | First cylinder (1-5290, default 1): <i>3</i> |
291 | First cylinder (1-5290, default 1): <i>3</i> |
| 292 | Last cylinder or +size or +sizeM or +sizeK (3-5290, default 5290): <i>+1024M</i> |
292 | Last cylinder or +size or +sizeM or +sizeK (3-5290, default 5290): <i>+1024M</i> |
| 293 | |
293 | |
| 294 | BSD disklabel command (m for help): <i>t</i> |
294 | BSD disklabel command (m for help): <i>t</i> |
| 295 | Partition (a-c): <i>a</i> |
295 | Partition (a-c): <i>a</i> |
| 296 | Hex code (type L to list codes): <i>1</i> |
296 | Hex code (type L to list codes): <i>1</i> |
| 297 | </pre> |
297 | </pre> |
| 298 | |
298 | |
| 299 | <p> |
299 | <p> |
| … | |
… | |
| 509 | |
509 | |
| 510 | Command (m for help): <i>t</i> |
510 | Command (m for help): <i>t</i> |
| 511 | Selected partition 1 |
511 | Selected partition 1 |
| 512 | Hex code (type L to list codes): <i>6</i> |
512 | Hex code (type L to list codes): <i>6</i> |
| 513 | Changed system type of partition 1 to 6 (FAT16) |
513 | Changed system type of partition 1 to 6 (FAT16) |
| 514 | </pre> |
514 | </pre> |
| 515 | |
515 | |
| 516 | </body> |
516 | </body> |
| 517 | </subsection> |
517 | </subsection> |
| 518 | <subsection> |
518 | <subsection> |
| 519 | <title>Creating the Swap Partition</title> |
519 | <title>Creating the Swap Partition</title> |
| 520 | <body> |
520 | <body> |
| 521 | |
521 | |
| 522 | <p> |
522 | <p> |
| 523 | We will create a swap partition starting at the third cylinder, with a total |
523 | We will create a swap partition starting at the third cylinder, with a total |
| 524 | size of 1 Gbyte. Use <c>n</c> to create a new partition. |
524 | size of 1 GB. Use <c>n</c> to create a new partition. |
| 525 | </p> |
525 | </p> |
| 526 | |
526 | |
| 527 | <pre caption="Creating the swap partition"> |
527 | <pre caption="Creating the swap partition"> |
| 528 | Command (m for help): <i>n</i> |
528 | Command (m for help): <i>n</i> |
| 529 | Command action |
529 | Command action |
| 530 | e extended |
530 | e extended |
| 531 | p primary partition (1-4) |
531 | p primary partition (1-4) |
| 532 | <i>p</i> |
532 | <i>p</i> |
| 533 | Partition number (1-4): <i>2</i> |
533 | Partition number (1-4): <i>2</i> |
| 534 | First cylinder (17-8727, default 17): <i>17</i> |
534 | First cylinder (17-8727, default 17): <i>17</i> |
| 535 | Last cylinder or +size or +sizeM or +sizeK (17-8727, default 8727): <i>+1000M</i> |
535 | Last cylinder or +size or +sizeM or +sizeK (17-8727, default 8727): <i>+1000M</i> |
| 536 | |
536 | |
| 537 | Command (m for help): <i>t</i> |
537 | Command (m for help): <i>t</i> |
| 538 | Partition number (1-4): <i>1</i> |
538 | Partition number (1-4): <i>1</i> |
| 539 | Hex code (type L to list codes): <i>82</i> |
539 | Hex code (type L to list codes): <i>82</i> |