| … | |
… | |
| 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.32 2005/08/25 19:22:50 neysx Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.34 2006/02/27 00:55:34 fox2mike Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>2.4</version> |
11 | <version>2.5</version> |
| 12 | <date>2005-08-25</date> |
12 | <date>2006-02-27</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> |
| … | |
… | |
| 24 | you'll be guided through the process of setting up partitions and filesystems |
24 | you'll be guided through the process of setting up partitions and filesystems |
| 25 | for your Gentoo Linux installation. |
25 | for your Gentoo Linux installation. |
| 26 | </p> |
26 | </p> |
| 27 | |
27 | |
| 28 | <p> |
28 | <p> |
| 29 | To begin, we'll introduce <e>block devices</e>. The most famous block device is |
29 | To begin, we'll introduce <e>block devices</e>. The most common block device is |
| 30 | probably the one that represents the first IDE drive in a Linux system, namely |
30 | the one that represents the first IDE drive in a Linux system, namely |
| 31 | <path>/dev/hda</path>. If your system uses SCSI or SATA drives, then your first |
31 | <path>/dev/hda</path>. If you are installing onto SCSI, FireWire, USB or SATA |
| 32 | hard drive would be <path>/dev/sda</path>. |
32 | drives, then your first hard drive would be <path>/dev/sda</path>. |
| 33 | </p> |
33 | </p> |
| 34 | |
34 | |
| 35 | <p> |
35 | <p> |
| 36 | The block devices above represent an abstract interface to the disk. User |
36 | The block devices above represent an abstract interface to the disk. User |
| 37 | programs can use these block devices to interact with your disk without worrying |
37 | programs can use these block devices to interact with your disk without worrying |
| … | |
… | |
| 94 | <ti>(bootstrap)</ti> |
94 | <ti>(bootstrap)</ti> |
| 95 | <ti>800k</ti> |
95 | <ti>800k</ti> |
| 96 | <ti>Apple_Bootstrap</ti> |
96 | <ti>Apple_Bootstrap</ti> |
| 97 | </tr> |
97 | </tr> |
| 98 | <tr> |
98 | <tr> |
| 99 | <ti>(Not applicable</ti> |
99 | <ti>(Not applicable)</ti> |
| 100 | <ti>(Not applicable)</ti> |
100 | <ti>(Not applicable)</ti> |
| 101 | <ti>(Not applicable)</ti> |
101 | <ti>(Not applicable)</ti> |
| 102 | <ti><path>/dev/sda1</path></ti> |
102 | <ti><path>/dev/sda1</path></ti> |
| 103 | <ti>(PReP Boot)</ti> |
103 | <ti>(PReP Boot)</ti> |
| 104 | <ti>800k</ti> |
104 | <ti>800k</ti> |
| … | |
… | |
| 106 | </tr> |
106 | </tr> |
| 107 | <tr> |
107 | <tr> |
| 108 | <ti>(Not applicable)</ti> |
108 | <ti>(Not applicable)</ti> |
| 109 | <ti><path>/dev/hda2</path> (If using quik)</ti> |
109 | <ti><path>/dev/hda2</path> (If using quik)</ti> |
| 110 | <ti><path>/dev/hda1</path></ti> |
110 | <ti><path>/dev/hda1</path></ti> |
| 111 | <ti>(Not needed)</ti> |
111 | <ti>(Not applicable)</ti> |
| 112 | <ti>ext2</ti> |
112 | <ti>ext2</ti> |
| 113 | <ti>32MB</ti> |
113 | <ti>32MB</ti> |
| 114 | <ti>Boot partition</ti> |
114 | <ti>Boot partition</ti> |
| 115 | </tr> |
115 | </tr> |
| 116 | <tr> |
116 | <tr> |
| … | |
… | |
| 136 | <note> |
136 | <note> |
| 137 | There are some partitions named: <path>Apple_Driver43, Apple_Driver_ATA, |
137 | There are some partitions named: <path>Apple_Driver43, Apple_Driver_ATA, |
| 138 | Apple_FWDriver, Apple_Driver_IOKit, Apple_Patches</path>. If you are not |
138 | Apple_FWDriver, Apple_Driver_IOKit, Apple_Patches</path>. If you are not |
| 139 | planning to use MacOS 9 you can delete them, because MacOS X and Linux don't |
139 | planning to use MacOS 9 you can delete them, because MacOS X and Linux don't |
| 140 | need them. To delete them, either use parted or erase the whole disk by |
140 | need them. To delete them, either use parted or erase the whole disk by |
| 141 | initialing the partition map. |
141 | initializing the partition map. |
| 142 | </note> |
142 | </note> |
| 143 | |
143 | |
| 144 | <warn> |
144 | <warn> |
| 145 | <c>parted</c> is able to resize partitions. On the Installation CD there |
145 | <c>parted</c> is able to resize partitions including HFS+. Unfortunately it is |
| 146 | are patches included to resize HFS+ filesystem. Unfortunately it is risky to |
|
|
| 147 | resize HFS+ journaled filesystems, be sure to switch off journaling in Mac OS X |
146 | not possible to resize HFS+ journaled filesystems, so switch off journaling in |
| 148 | first and make sure to run a disk checking tool after the resize. Everything |
147 | Mac OS X before resizing. Remeber that any resizing operation is dangerous, |
| 149 | you do with resizing in parted you do it at your own risk! Be sure to have a |
148 | so attempt at your own risk! Be sure to always have a backup of your data |
| 150 | backup of your data! |
149 | before resizing! |
| 151 | </warn> |
150 | </warn> |
| 152 | |
151 | |
| 153 | <p> |
152 | <p> |
| 154 | If you are interested in knowing how big a partition should be, or even how many |
153 | If you are interested in knowing how big a partition should be, or even how many |
| 155 | partitions you need, read on. Otherwise continue now with |
154 | partitions you need, read on. Otherwise continue now with |
| 156 | <uri link="#mac-fdisk"> Default: Using mac-fdisk (Apple) to Partition your Disk |
155 | <uri link="#mac-fdisk"> Default: Using mac-fdisk (Apple) to Partition your Disk |
| 157 | </uri> or <uri link="#parted">Alternative: Using parted (IBM/Pegasos) to |
156 | </uri> or <uri link="#parted">Alternative: Using parted (IBM/Pegasos) to |
| … | |
… | |
| 521 | If you want your <path>/tmp</path> to reside on a separate partition, be sure to |
520 | If you want your <path>/tmp</path> to reside on a separate partition, be sure to |
| 522 | change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This |
521 | change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This |
| 523 | also holds for <path>/var/tmp</path>. |
522 | also holds for <path>/var/tmp</path>. |
| 524 | </note> |
523 | </note> |
| 525 | |
524 | |
| 526 | |
|
|
| 527 | <p> |
525 | <p> |
| 528 | We will have to mount the proc filesystem (a virtual interface with the |
526 | We will have to mount the proc filesystem (a virtual interface with the |
| 529 | kernel) on <path>/proc</path>. But first we will need to place our files on the |
527 | kernel) on <path>/proc</path>. But first we will need to place our files on the |
| 530 | partitions. |
528 | partitions. |
| 531 | </p> |
529 | </p> |