/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
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-ppc-disk.xml,v 1.5 2004/04/04 20:09:03 pylon Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.6 2004/04/28 07:52:30 swift 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>
96</table> 96</table>
97 97
98<p> 98<p>
99If you are interested in knowing how big a partition should be, or even how 99If you are interested in knowing how big a partition should be, or even how
100many partitions you need, read on. Otherwise continue now with 100many partitions you need, read on. Otherwise continue now with
101<uri link="#fdisk">Using fdisk to Partition your Disk</uri>. 101<uri link="#fdisk">Default: Using mac-fdisk (Apple/IBM) to Partition your
102Disk</uri> or <uri link="#parted">Alternative: Using parted (Pegasos) to
103Partition your Disk</uri>.
102</p> 104</p>
103 105
104</body> 106</body>
105</subsection> 107</subsection>
106<subsection> 108<subsection>
151 153
152</body> 154</body>
153</subsection> 155</subsection>
154</section> 156</section>
155<section id="fdisk"> 157<section id="fdisk">
156<title>Using mac-fdisk on PPC to Partition your Disk</title> 158<title>Default: Using mac-fdisk (Apple/IBM) Partition your Disk</title>
157<body> 159<body>
158 160
159<p> 161<p>
160At this point, create your partitions using <c>mac-fdisk</c>: 162At this point, create your partitions using <c>mac-fdisk</c>:
161</p> 163</p>
204</p> 206</p>
205 207
206<p> 208<p>
207Now that your partitions are created, you can now continue with <uri 209Now that your partitions are created, you can now continue with <uri
208link="#filesystems">Creating Filesystems</uri>. 210link="#filesystems">Creating Filesystems</uri>.
211</p>
212
213</body>
214</section>
215<section id="parted">
216<title>Using parted (Pegasos) to Partition your Disk</title>
217<body>
218
219<p>
220To begin let's fire up <c>parted</c>:
221</p>
222
223<pre caption="Starting parted">
224# <i>parted /dev/hda</i>
225</pre>
226
227<p>
228If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new
229disklabel for the drive.
230</p>
231
232<p>
233You can type <c>print</c> at any time in parted to display the current partition
234table. Your changes aren't saved until you quit the application; if at any time
235you change your mind or made a mistake you can press <c>Ctrl-c</c> to abort
236parted.
237</p>
238
239<p>
240If you intend to also install MorphOS on your Pegasos create an affs1 filesystem
241named "BI0" (BI zero) at the start of the drive. 50MB should be more than enough
242to store the MorphOS kernel. If you have a Pegasos I or intend to use reiserfs,
243xfs or jfs you will also have to store your Linux kernel on this partition (the
244Pegasos II can boot from ext2/ext3 drives). To create the partition run
245<c>mkpart primary affs1 START END</c> where <c>START</c> and <c>END</c> should
246be replaced with the megabyte range (f.i. <c>5 55</c> creates a 50 MB partition
247starting at 5MB and ending at 55MB.
248</p>
249
250<p>
251You need to create two partitions for Linux, one root filesystem for all your
252program files etc, and one swap partition. To create the root filesystem you
253must first decide which filesystem to use. Possible options are ext2, ext3,
254reiserfs, jfs and xfs. Unless you know what you are doing use ext3. Run
255<c>mkpart primary ext3 START END</c> to create an ext3 partition. Again, replace
256<c>START</c> and <c>END</c> with the megabyte start and stop marks for the
257partition.
258</p>
259
260<p>
261It is generally recommended that you create a swap partition the same size as
262the amount of RAM in your computer times two. You will probably get away with a
263smaller swap partition unless you intend to run a lot of applications at the
264same time (although at least 512MB is recommended). To create the swap
265partition, run <c>mkpart primary linux-swap START END</c>.
266</p>
267
268<p>
269Write down the partition minor numbers as they are required during the
270installation process. To dislay the minor numbers run <c>print</c>. Your drives
271are accessed as <path>/dev/hdaX</path> where X is replaced with the minor number
272of the partition.
273</p>
274
275<p>
276When you are done in parted simply run <c>quit</c>.
209</p> 277</p>
210 278
211</body> 279</body>
212</section> 280</section>
213<section id="filesystems"> 281<section id="filesystems">

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20