| 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/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.33 2012/10/06 19:54:14 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-disk.xml,v 1.34 2013/02/23 18:38:22 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>12</version> |
11 | <version>13</version> |
| 12 | <date>2012-10-06</date> |
12 | <date>2013-02-23</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> |
| 18 | <include href="hb-install-blockdevices.xml"/> |
18 | <include href="hb-install-blockdevices.xml"/> |
| 19 | </subsection> |
19 | </subsection> |
| 20 | |
20 | |
| 21 | <subsection> |
21 | <subsection> |
| 22 | <title>Slices</title> |
22 | <title>Slices</title> |
| 23 | <body> |
23 | <body> |
| 24 | |
24 | |
| 25 | <p> |
25 | <p> |
| 26 | Although it is theoretically possible to use a full disk to house your Linux |
26 | Although it is theoretically possible to use a full disk to house your Linux |
| 27 | system, this is almost never done in practice. Instead, full disk block devices |
27 | system, this is almost never done in practice. Instead, full disk block devices |
| … | |
… | |
| 652 | <ti>reiserfs</ti> |
652 | <ti>reiserfs</ti> |
| 653 | <ti><c>mkfs.reiserfs</c></ti> |
653 | <ti><c>mkfs.reiserfs</c></ti> |
| 654 | </tr> |
654 | </tr> |
| 655 | <tr> |
655 | <tr> |
| 656 | <ti>xfs</ti> |
656 | <ti>xfs</ti> |
| 657 | <ti><c>mkfs.xfs</c></ti> |
657 | <ti><c>mkfs.xfs</c></ti> |
| 658 | </tr> |
658 | </tr> |
| 659 | <tr> |
659 | <tr> |
| 660 | <ti>jfs</ti> |
660 | <ti>jfs</ti> |
| 661 | <ti><c>mkfs.jfs</c></ti> |
661 | <ti><c>mkfs.jfs</c></ti> |
| 662 | </tr> |
662 | </tr> |
| 663 | </table> |
663 | </table> |
| 664 | |
664 | |
| 665 | <p> |
665 | <p> |
| 666 | For instance, to have the root partition (<path>/dev/sda2</path> in our example) |
666 | For instance, to have the root partition (<path>/dev/sda2</path> in our example) |
| 667 | in ext3, you would use: |
667 | in ext4, you would use: |
| 668 | </p> |
668 | </p> |
| 669 | |
669 | |
| 670 | <pre caption="Applying a filesystem on a partition"> |
670 | <pre caption="Applying a filesystem on a partition"> |
| 671 | # <i>mkfs.ext3 /dev/sda2</i> |
671 | # <i>mkfs.ext4 /dev/sda2</i> |
| 672 | </pre> |
672 | </pre> |
| 673 | |
673 | |
| 674 | <p> |
674 | <p> |
| 675 | Now create the filesystems on your newly created partitions (or logical |
675 | Now create the filesystems on your newly created partitions (or logical |
| 676 | volumes). |
676 | volumes). |
| 677 | </p> |
677 | </p> |
| 678 | |
678 | |
| 679 | </body> |
679 | </body> |
| 680 | </subsection> |
680 | </subsection> |
| 681 | <subsection> |
681 | <subsection> |
| 682 | <title>Activating the Swap Partition</title> |
682 | <title>Activating the Swap Partition</title> |
| 683 | <body> |
683 | <body> |
| 684 | |
684 | |
| 685 | <p> |
685 | <p> |
| 686 | <c>mkswap</c> is the command that is used to initialize swap partitions: |
686 | <c>mkswap</c> is the command that is used to initialize swap partitions: |