| … | |
… | |
| 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-alpha-disk.xml,v 1.29 2009/01/26 08:04:26 nightmorph Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.30 2009/02/15 06:48:11 rane Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>9.0</version> |
11 | <version>9.1</version> |
| 12 | <date>2008-04-01</date> |
12 | <date>2009-02-15</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> |
| … | |
… | |
| 254 | <subsection> |
254 | <subsection> |
| 255 | <title>Creating the Swap Slice</title> |
255 | <title>Creating the Swap Slice</title> |
| 256 | <body> |
256 | <body> |
| 257 | |
257 | |
| 258 | <p> |
258 | <p> |
| 259 | On Alpha based systems you don't need a separate boot partition. However, the |
259 | On Alpha based systems you don't need a separate boot slice. However, the |
| 260 | first cylinder cannot be used as the <c>aboot</c> image will be placed there. |
260 | first cylinder cannot be used as the <c>aboot</c> image will be placed there. |
| 261 | </p> |
261 | </p> |
| 262 | |
262 | |
| 263 | <p> |
263 | <p> |
| 264 | We will create a swap slice starting at the third cylinder, with a total |
264 | We will create a swap slice starting at the third cylinder, with a total |
| … | |
… | |
| 297 | <body> |
297 | <body> |
| 298 | |
298 | |
| 299 | <p> |
299 | <p> |
| 300 | We will now create the root slice, starting from the first cylinder <e>after</e> |
300 | We will now create the root slice, starting from the first cylinder <e>after</e> |
| 301 | the swap slice. Use the <c>p</c> command to view where the swap slice ends. In |
301 | the swap slice. Use the <c>p</c> command to view where the swap slice ends. In |
| 302 | our example, this is at 1003, making the root partition start at 1004. |
302 | our example, this is at 1003, making the root slice start at 1004. |
| 303 | </p> |
303 | </p> |
| 304 | |
304 | |
| 305 | <p> |
305 | <p> |
| 306 | Another problem is that there is currently a bug in <c>fdisk</c> making it think |
306 | Another problem is that there is currently a bug in <c>fdisk</c> making it think |
| 307 | the number of available cylinders is one above the real number of cylinders. In |
307 | the number of available cylinders is one above the real number of cylinders. In |
| 308 | other words, when you are asked for the last cylinder, decrease the cylinder |
308 | other words, when you are asked for the last cylinder, decrease the cylinder |
| 309 | number (in this example: 5290) with one. |
309 | number (in this example: 5290) with one. |
| 310 | </p> |
310 | </p> |
| 311 | |
311 | |
| 312 | <p> |
312 | <p> |
| 313 | When the partition is created, we change the type to <c>8</c>, for <e>ext2</e>. |
313 | When the slice is created, we change the type to <c>8</c>, for <e>ext2</e>. |
| 314 | </p> |
314 | </p> |
| 315 | |
315 | |
| 316 | <pre caption="Creating the root slice"> |
316 | <pre caption="Creating the root slice"> |
| 317 | D disklabel command (m for help): <i>n</i> |
317 | D disklabel command (m for help): <i>n</i> |
| 318 | Partition (a-p): <i>b</i> |
318 | Partition (a-p): <i>b</i> |
| … | |
… | |
| 499 | <subsection> |
499 | <subsection> |
| 500 | <title>Creating the Swap Partition</title> |
500 | <title>Creating the Swap Partition</title> |
| 501 | <body> |
501 | <body> |
| 502 | |
502 | |
| 503 | <p> |
503 | <p> |
| 504 | We will create a swap partition starting at the third cylinder, with a total |
504 | We will create a swap partition with a total size of 1 GB. Use <c>n</c> to |
| 505 | size of 1 GB. Use <c>n</c> to create a new partition. |
505 | create a new partition. |
| 506 | </p> |
506 | </p> |
| 507 | |
507 | |
| 508 | <pre caption="Creating the swap partition"> |
508 | <pre caption="Creating the swap partition"> |
| 509 | Command (m for help): <i>n</i> |
509 | Command (m for help): <i>n</i> |
| 510 | Command action |
510 | Command action |
| … | |
… | |
| 703 | |
703 | |
| 704 | <p> |
704 | <p> |
| 705 | Now that your partitions are initialized and are housing a filesystem, it is |
705 | Now that your partitions are initialized and are housing a filesystem, it is |
| 706 | time to mount those partitions. Use the <c>mount</c> command. Don't forget to |
706 | time to mount those partitions. Use the <c>mount</c> command. Don't forget to |
| 707 | create the necessary mount directories for every partition you created. As an |
707 | create the necessary mount directories for every partition you created. As an |
| 708 | example we mount the root and boot partition: |
708 | example we mount the root partition: |
| 709 | </p> |
709 | </p> |
| 710 | |
710 | |
| 711 | <pre caption="Mounting partitions"> |
711 | <pre caption="Mounting partitions"> |
| 712 | # <i>mount /dev/sda2 /mnt/gentoo</i> |
712 | # <i>mount /dev/sda2 /mnt/gentoo</i> |
| 713 | </pre> |
713 | </pre> |