/[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.47 Revision 1.48
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.47 2008/05/02 08:04:23 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.48 2010/07/21 00:52:41 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>9.1</version> 11<version>10.0</version>
12<date>2008-05-02</date> 12<date>2010-07-20</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>
50<subsection> 50<subsection>
51<title>Apple New World</title> 51<title>Apple New World</title>
52<body> 52<body>
53 53
54<p> 54<p>
55Apple New World machines are fairly straightforward to configure. The first 55Apple New World machines are fairly straightforward to configure. The first
56partition is always an <e>Apple Partition Map</e>. This partition keeps track 56partition is always an <e>Apple Partition Map</e>. This partition keeps track of
57of the layout of the disk. You cannot remove this partition. The next 57the layout of the disk. You cannot remove this partition. The next partition
58partition should always be a bootstrap partition. This partition contains a 58should always be a bootstrap partition. This partition contains a small (800k)
59small (800k) HFS filesystem that holds a copy of the bootloader Yaboot and its 59HFS filesystem that holds a copy of the bootloader Yaboot and its configuration
60configuration file. This partition is <e>not</e> the same as a 60file. This partition is <e>not</e> the same as a <path>/boot</path> partition as
61<path>/boot</path> partition as found on other architectures. After the boot 61found on other architectures. After the boot partition, the usual Linux
62partition, the usual Linux filesystems are placed, according to the scheme 62filesystems are placed, according to the scheme below. The swap partition is a
63below. The swap partition is a temporary storage place for when your system 63temporary storage place for when your system runs out of physical memory. The
64runs out of physical memory. The root partition will contain the filesystem 64root partition will contain the filesystem that Gentoo is installed on. If you
65that Gentoo is installed on. If you wish to dual boot, the OSX partition 65wish to dual boot, the OSX partition can go anywhere after the bootstrap
66can go anywhere after the bootstrap partition to insure that yaboot starts 66partition to insure that yaboot starts first.
67first.
68</p> 67</p>
69 68
70<note> 69<note>
71There may be "Disk Driver" partitions on your disk such as 70There may be "Disk Driver" partitions on your disk such as
72<path>Apple_Driver63</path>, <path>Apple_Driver_ATA</path>, 71<path>Apple_Driver63</path>, <path>Apple_Driver_ATA</path>,
73<path>Apple_FWDriver</path>, <path>Apple_Driver_IOKit</path>, and 72<path>Apple_FWDriver</path>, <path>Apple_Driver_IOKit</path>, and
74<path>Apple_Patches</path>. These are used to boot MacOS, so if you have no 73<path>Apple_Patches</path>. These are used to boot MacOS, so if you have no need
75need for this, you can remove them by initializing the disk with mac-fdisk's 74for this, you can remove them by initializing the disk with <c>mac-fdisk</c>'s
76<c>i</c> option. This will completely erase the disk! If you are in doubt, 75<c>i</c> option. This will completely erase the disk! If you are in doubt, just
77just let them be. 76let them be.
78</note> 77</note>
79 78
80<note> 79<note>
81If you partitioned this disk with Apple's Disk Utility, there may be 80If you partitioned this disk with Apple's Disk Utility, there may be
82128Mb spaces between partitions which Apple reserves for "future use". You 81128Mb spaces between partitions which Apple reserves for "future use". You
83can safely remove these. 82can safely remove these.
84</note> 83</note>
85 84
86<table> 85<table>
87<tr> 86<tr>
338# <i>mac-fdisk /dev/sda</i> 337# <i>mac-fdisk /dev/sda</i>
339</pre> 338</pre>
340 339
341<p> 340<p>
342If you used Apple's Disk Utility to leave space for Linux, first delete the 341If you used Apple's Disk Utility to leave space for Linux, first delete the
343partitions you have created previously to make room for your new install. Use 342partitions you have created previously to make room for your new install. Use
344<c>d</c> in <c>mac-fdisk</c> to delete those partition(s). It will ask for the 343<c>d</c> in <c>mac-fdisk</c> to delete those partition(s). It will ask for the
345partition number to delete. Usually the first partition on NewWorld machines 344partition number to delete. Usually the first partition on NewWorld machines
346(Apple_partition_map) could not be deleted. If you would like to start with a 345(Apple_partition_map) cannot be deleted. If you would like to start with a
347clean disk, you can simply initialize the disk by pressing <c>i</c>. This 346clean disk, you can simply initialize the disk by pressing <c>i</c>. This
348will completely erase the disk, so use this with caution. 347will completely erase the disk, so use this with caution.
349</p> 348</p>
350 349
351<p> 350<p>
352Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will 351Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will
381quit <c>mac-fdisk</c>. 380quit <c>mac-fdisk</c>.
382</p> 381</p>
383 382
384<note> 383<note>
385To make sure everything is ok, you should run <c>mac-fdisk -l</c> and check 384To make sure everything is ok, you should run <c>mac-fdisk -l</c> and check
386whether all the partitions are there. If you don't see any of the partitions 385whether all the partitions are there. If you don't see any of the partitions you
387you created, or the changes you made, you should reinitialize your partitions 386created, or the changes you made, you should reinitialize your partitions by
388by pressing "i" in mac-fdisk. Note that this will recreate the partition map 387pressing <c>i</c> in <c>mac-fdisk</c>. Note that this will recreate the
389and thus remove all your partitions. 388partition map and thus remove all your partitions.
390</note> 389</note>
391 390
392<p> 391<p>
393Now that your partitions are created, you can continue with 392Now that your partitions are created, you can continue with
394<uri link="#filesystems">Creating Filesystems</uri>. 393<uri link="#filesystems">Creating Filesystems</uri>.
400<title>Using parted to Partition your Disk (Pegasos and RS/6000)</title> 399<title>Using parted to Partition your Disk (Pegasos and RS/6000)</title>
401<body> 400<body>
402 401
403<p> 402<p>
404<c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by 403<c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by
405Mac OS and Mac OS X. With this tool you can resize your Mac-partitions and 404Mac OS and Mac OS X. With this tool you can resize your Mac partitions and
406create space for your Linux partitions. Nevertheless, the example below 405create space for your Linux partitions. Nevertheless, the example below
407describes partitioning for Pegasos machines only. 406describes partitioning for Pegasos machines only.
408</p> 407</p>
409 408
410<p> 409<p>
421</p> 420</p>
422 421
423<p> 422<p>
424You can type <c>print</c> at any time in parted to display the current partition 423You can type <c>print</c> at any time in parted to display the current partition
425table. If at any time you change your mind or made a mistake you can press 424table. If at any time you change your mind or made a mistake you can press
426<c>Ctrl-c</c> to abort parted. 425<c>Ctrl-c</c> to abort <c>parted</c>.
427</p> 426</p>
428 427
429<p> 428<p>
430If you intend to also install MorphOS on your Pegasos create an affs1 filesystem 429If you intend to also install MorphOS on your Pegasos create an affs1 filesystem
431at the start of the drive. 32MB should be more than enough to store the MorphOS 430at the start of the drive. 32MB should be more than enough to store the MorphOS
434Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the 433Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the
435partition run <c>mkpart primary affs1 START END</c> where <c>START</c> and 434partition run <c>mkpart primary affs1 START END</c> where <c>START</c> and
436<c>END</c> should be replaced with the megabyte range (e.g. <c>0 32</c>) which 435<c>END</c> should be replaced with the megabyte range (e.g. <c>0 32</c>) which
437creates a 32 MB partition starting at 0MB and ending at 32MB. If you chose to 436creates a 32 MB partition starting at 0MB and ending at 32MB. If you chose to
438create an ext2 or ext3 partition instead, substitute ext2 or ext3 for affs1 in 437create an ext2 or ext3 partition instead, substitute ext2 or ext3 for affs1 in
439the mkpart command. 438the <c>mkpart</c> command.
440</p> 439</p>
441 440
442<p> 441<p>
443You will need to create two partitions for Linux, one root filesystem and one 442You will need to create two partitions for Linux, one root filesystem and one
444swap partition. Run <c>mkpart primary START END</c> to create each partition, 443swap partition. Run <c>mkpart primary START END</c> to create each partition,
452<c>mkpart primary linux-swap START END</c> with START and END again denoting 451<c>mkpart primary linux-swap START END</c> with START and END again denoting
453the partition boundries. 452the partition boundries.
454</p> 453</p>
455 454
456<p> 455<p>
457When you are done in parted simply type <c>quit</c>. 456When you are done in <c>parted</c> simply type <c>quit</c>.
458</p> 457</p>
459 458
460</body> 459</body>
461</section> 460</section>
462<section id="filesystems"> 461<section id="filesystems">

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.20