| … | |
… | |
| 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-hppa-disk.xml,v 1.8 2004/09/14 11:55:12 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-hppa-disk.xml,v 1.9 2004/09/30 03:14:57 vapier Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | <section> |
10 | <section> |
| 11 | <title>Introduction to Block Devices</title> |
11 | <title>Introduction to Block Devices</title> |
| 12 | <subsection> |
12 | <subsection> |
| … | |
… | |
| 115 | <pre caption="Partitioning the disk"> |
115 | <pre caption="Partitioning the disk"> |
| 116 | # <i>fdisk /dev/sda</i> |
116 | # <i>fdisk /dev/sda</i> |
| 117 | </pre> |
117 | </pre> |
| 118 | |
118 | |
| 119 | <p> |
119 | <p> |
| 120 | PALO needs a special partition to work. You have to create a partition of at |
120 | HPPA machines use the PC standard DOS partition tables. To create a new |
| 121 | least 16Mb at the beginning of your disk. The partition type must be of type |
121 | DOS partition table, simply use the <c>o</c> command. |
| 122 | <e>f0</e> (Linux/PA-RISC boot). |
122 | </p> |
|
|
123 | |
|
|
124 | <pre caption="Creating a DOS partition table"> |
|
|
125 | # <i>fdisk /dev/sda</i> |
|
|
126 | |
|
|
127 | Command (m for help): <i>o</i> |
|
|
128 | Building a new DOS disklabel. |
|
|
129 | </pre> |
|
|
130 | |
|
|
131 | <p> |
|
|
132 | PALO (the HPPA bootloader) needs a special partition to work. You have |
|
|
133 | to create a partition of at least 16Mb at the beginning of your disk. |
|
|
134 | The partition type must be of type <e>f0</e> (Linux/PA-RISC boot). |
| 123 | </p> |
135 | </p> |
| 124 | |
136 | |
| 125 | <impo> |
137 | <impo> |
| 126 | If you ignore this and continue without a special PALO partition, your system |
138 | If you ignore this and continue without a special PALO partition, your system |
| 127 | will stop loving you and fail to start. Also, if your disk is larger than 2Gb, |
139 | will stop loving you and fail to start. Also, if your disk is larger than 2Gb, |
| 128 | make sure that the boot partition is in the first 2Gb of your disk. PALO is |
140 | make sure that the boot partition is in the first 2Gb of your disk. PALO is |
| 129 | unable to read a kernel after the 2Gb limit. |
141 | unable to read a kernel after the 2Gb limit. |
| 130 | </impo> |
142 | </impo> |
|
|
143 | |
|
|
144 | <pre caption="A simple default partition schema"> |
|
|
145 | # <i>cat /etc/fstab</i> |
|
|
146 | /dev/sda2 /boot ext3 noauto,noatime 1 1 |
|
|
147 | /dev/sda3 none swap sw 0 0 |
|
|
148 | /dev/sda4 / ext3 noatime 0 0 |
|
|
149 | |
|
|
150 | # <i>fdisk /dev/sda</i> |
|
|
151 | |
|
|
152 | Command (m for help): <i>p</i> |
|
|
153 | |
|
|
154 | Disk /dev/sda: 4294 MB, 4294816768 bytes |
|
|
155 | 133 heads, 62 sectors/track, 1017 cylinders |
|
|
156 | Units = cylinders of 8246 * 512 = 4221952 bytes |
|
|
157 | |
|
|
158 | Device Boot Start End Blocks Id System |
|
|
159 | /dev/sda1 1 8 32953 f0 Linux/PA-RISC boot |
|
|
160 | /dev/sda2 9 20 49476 83 Linux |
|
|
161 | /dev/sda3 21 70 206150 82 Linux swap |
|
|
162 | /dev/sda4 71 1017 3904481 83 Linux |
|
|
163 | </pre> |
| 131 | |
164 | |
| 132 | <p> |
165 | <p> |
| 133 | Now that your partitions are created, you can now continue with <uri |
166 | Now that your partitions are created, you can now continue with <uri |
| 134 | link="#filesystems">Creating Filesystems</uri>. |
167 | link="#filesystems">Creating Filesystems</uri>. |
| 135 | </p> |
168 | </p> |