| 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-ppc-disk.xml,v 1.52 2012/10/28 10:29:03 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.54 2013/02/23 18:38:22 swift Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <abstract> |
11 | <abstract> |
| 12 | To be able to install Gentoo, you must create the necessary partitions. |
12 | To be able to install Gentoo, you must create the necessary partitions. |
| 13 | This chapter describes how to partition a disk for future usage. |
13 | This chapter describes how to partition a disk for future usage. |
| 14 | </abstract> |
14 | </abstract> |
| 15 | |
15 | |
| 16 | <version>13</version> |
16 | <version>15</version> |
| 17 | <date>2012-10-28</date> |
17 | <date>2013-02-23</date> |
| 18 | |
18 | |
| 19 | <section> |
19 | <section> |
| 20 | <title>Introduction to Block Devices</title> |
20 | <title>Introduction to Block Devices</title> |
| 21 | |
21 | |
| 22 | <subsection> |
22 | <subsection> |
| 23 | <include href="hb-install-blockdevices.xml"/> |
23 | <include href="hb-install-blockdevices.xml"/> |
| 24 | </subsection> |
24 | </subsection> |
| 25 | |
25 | |
| 26 | <subsection> |
26 | <subsection> |
| 27 | <title>Partitions</title> |
27 | <title>Partitions</title> |
| 28 | <body> |
28 | <body> |
| 29 | |
29 | |
| 30 | <p> |
30 | <p> |
| 31 | Although it is theoretically possible to use a full disk to house your Linux |
31 | Although it is theoretically possible to use a full disk to house your Linux |
| 32 | system, this is almost never done in practice. Instead, full disk block devices |
32 | system, this is almost never done in practice. Instead, full disk block devices |
| … | |
… | |
| 120 | </tr> |
120 | </tr> |
| 121 | </table> |
121 | </table> |
| 122 | |
122 | |
| 123 | </body> |
123 | </body> |
| 124 | </subsection> |
124 | </subsection> |
| 125 | <subsection> |
125 | <subsection> |
| 126 | <title>Apple Old World</title> |
126 | <title>Apple Old World</title> |
| 127 | <body> |
127 | <body> |
| 128 | |
128 | |
| 129 | <p> |
129 | <p> |
| 130 | Apple Old World machines are a bit more complicated to configure. The first |
130 | Apple Old World machines are a bit more complicated to configure. The first |
| 131 | partition is always an <e>Apple Partition Map</e>. This partition keeps track |
131 | partition is always an <e>Apple Partition Map</e>. This partition keeps track |
| 132 | of the layout of the disk. You cannot remove this partition. If you are using |
132 | of the layout of the disk. You cannot remove this partition. If you are using |
| 133 | BootX, the configuration below assumes that MacOS is installed on a seperate |
133 | BootX, the configuration below assumes that MacOS is installed on a seperate |
| 134 | disk. If this is not the case, there will be additional partitions for "Apple |
134 | disk. If this is not the case, there will be additional partitions for "Apple |
| 135 | Disk Drivers" such as <path>Apple_Driver63, Apple_Driver_ATA, Apple_FWDriver, |
135 | Disk Drivers" such as <path>Apple_Driver63</path>, <path>Apple_Driver_ATA</path>, |
|
|
136 | <path>Apple_FWDriver</path>, <path>Apple_Driver_IOKit</path>, |
| 136 | Apple_Driver_IOKit, Apple_Patches</path> and the MacOS install. If you are |
137 | <path>Apple_Patches</path> and the MacOS install. If you are |
| 137 | using Quik, you will need to create a boot partition to hold the kernel, unlike |
138 | using Quik, you will need to create a boot partition to hold the kernel, unlike |
| 138 | other Apple boot methods. After the boot partition, the usual Linux filesystems |
139 | other Apple boot methods. After the boot partition, the usual Linux filesystems |
| 139 | are placed, according to the scheme below. The swap partition is a temporary |
140 | are placed, according to the scheme below. The swap partition is a temporary |
| 140 | storage place for when your system runs out of physical memory. The root |
141 | storage place for when your system runs out of physical memory. The root |
| 141 | partition will contain the filesystem that Gentoo is installed on. |
142 | partition will contain the filesystem that Gentoo is installed on. |
| 142 | </p> |
143 | </p> |
| 143 | |
144 | |
| 144 | <note> |
145 | <note> |
| 145 | If you are using an OldWorld machine, you will need to keep MacOS available. |
146 | If you are using an OldWorld machine, you will need to keep MacOS available. |
| 146 | The layout here assumes MacOS is installed on a separate drive. |
147 | The layout here assumes MacOS is installed on a separate drive. |
| 147 | </note> |
148 | </note> |
| 148 | |
149 | |
| 149 | <table> |
150 | <table> |
| 150 | <tr> |
151 | <tr> |
| 151 | <th>Partition</th> |
152 | <th>Partition</th> |
| … | |
… | |
| 542 | <tr> |
543 | <tr> |
| 543 | <ti>ext4</ti> |
544 | <ti>ext4</ti> |
| 544 | <ti><c>mkfs.ext4</c></ti> |
545 | <ti><c>mkfs.ext4</c></ti> |
| 545 | </tr> |
546 | </tr> |
| 546 | <tr> |
547 | <tr> |
| 547 | <ti>reiserfs</ti> |
548 | <ti>reiserfs</ti> |
| 548 | <ti><c>mkreiserfs</c></ti> |
549 | <ti><c>mkreiserfs</c></ti> |
| 549 | </tr> |
550 | </tr> |
| 550 | <tr> |
551 | <tr> |
| 551 | <ti>xfs</ti> |
552 | <ti>xfs</ti> |
| 552 | <ti><c>mkfs.xfs</c></ti> |
553 | <ti><c>mkfs.xfs</c></ti> |
| 553 | </tr> |
554 | </tr> |
| 554 | </table> |
555 | </table> |
| 555 | |
556 | |
| 556 | <p> |
557 | <p> |
| 557 | For instance, to make an ext3 filesystem on the root partition |
558 | For instance, to make an ext4 filesystem on the root partition |
| 558 | (<path>/dev/sda4</path> in our example), you would use: |
559 | (<path>/dev/sda4</path> in our example), you would use: |
| 559 | </p> |
560 | </p> |
| 560 | |
561 | |
| 561 | <pre caption="Applying a filesystem on a partition"> |
562 | <pre caption="Applying a filesystem on a partition"> |
| 562 | # <i>mke2fs -j /dev/sda4</i> |
563 | # <i>mkfs.ext4 /dev/sda4</i> |
| 563 | </pre> |
564 | </pre> |
| 564 | |
565 | |
| 565 | <p> |
566 | <p> |
| 566 | Now create the filesystems on your newly created partitions (or logical |
567 | Now create the filesystems on your newly created partitions (or logical |
| 567 | volumes). |
568 | volumes). |
| 568 | </p> |
569 | </p> |
| 569 | |
570 | |
| 570 | <impo> |
571 | <impo> |
| 571 | If you choose to use ReiserFS for <path>/</path>, do not change its default |
572 | If you choose to use ReiserFS for <path>/</path>, do not change its default |
| 572 | block size if you will also be using <c>yaboot</c> as your bootloader, as |
573 | block size if you will also be using <c>yaboot</c> as your bootloader, as |
| 573 | explained in <uri link="?part=1&chap=10">Configuring the Bootloader</uri>. |
574 | explained in <uri link="?part=1&chap=10">Configuring the Bootloader</uri>. |
| 574 | </impo> |
575 | </impo> |
| 575 | |
576 | |
| 576 | <note> |
577 | <note> |
| 577 | On the PegasosII your partition which holds the kernel must be ext2, ext3 or |
578 | On the PegasosII your partition which holds the kernel must be ext2, ext3 or |