/[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.31 Revision 1.34
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.31 2005/08/09 09:43:58 swift 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.3</version> 11<version>2.5</version>
12<date>2005-08-09</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>
24you'll be guided through the process of setting up partitions and filesystems 24you'll be guided through the process of setting up partitions and filesystems
25for your Gentoo Linux installation. 25for your Gentoo Linux installation.
26</p> 26</p>
27 27
28<p> 28<p>
29To begin, we'll introduce <e>block devices</e>. The most famous block device is 29To begin, we'll introduce <e>block devices</e>. The most common block device is
30probably the one that represents the first IDE drive in a Linux system, namely 30the 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
32hard drive would be <path>/dev/sda</path>. 32drives, then your first hard drive would be <path>/dev/sda</path>.
33</p> 33</p>
34 34
35<p> 35<p>
36The block devices above represent an abstract interface to the disk. User 36The block devices above represent an abstract interface to the disk. User
37programs can use these block devices to interact with your disk without worrying 37programs 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>
137There are some partitions named: <path>Apple_Driver43, Apple_Driver_ATA, 137There are some partitions named: <path>Apple_Driver43, Apple_Driver_ATA,
138Apple_FWDriver, Apple_Driver_IOKit, Apple_Patches</path>. If you are not 138Apple_FWDriver, Apple_Driver_IOKit, Apple_Patches</path>. If you are not
139planning to use MacOS 9 you can delete them, because MacOS X and Linux don't 139planning to use MacOS 9 you can delete them, because MacOS X and Linux don't
140need them. To delete them, either use parted or erase the whole disk by 140need them. To delete them, either use parted or erase the whole disk by
141initialing the partition map. 141initializing 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
146are patches included to resize HFS+ filesystem. Unfortunately it is risky to
147resize HFS+ journaled filesystems, be sure to switch off journaling in Mac OS X 146not possible to resize HFS+ journaled filesystems, so switch off journaling in
148first and make sure to run a disk checking tool after the resize. Everything 147Mac OS X before resizing. Remeber that any resizing operation is dangerous,
149you do with resizing in parted you do it at your own risk! Be sure to have a 148so attempt at your own risk! Be sure to always have a backup of your data
150backup of your data! 149before resizing!
151</warn> 150</warn>
152 151
153<p> 152<p>
154If you are interested in knowing how big a partition should be, or even how many 153If you are interested in knowing how big a partition should be, or even how many
155partitions you need, read on. Otherwise continue now with 154partitions 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
510time to mount those partitions. Use the <c>mount</c> command. Don't forget to 509time to mount those partitions. Use the <c>mount</c> command. Don't forget to
511create the necessary mount directories for every partition you created. As an 510create the necessary mount directories for every partition you created. As an
512example we create a mount-point and mount the root partition: 511example we create a mount-point and mount the root partition:
513</p> 512</p>
514 513
515<warn>
516Due to a bug in the e2fsprogs package, you need to explicitly use
517the <c>mount -t ext3</c> option if you are using an ext3 filesystem.
518</warn>
519
520<pre caption="Mounting partitions"> 514<pre caption="Mounting partitions">
521# <i>mkdir /mnt/gentoo</i> 515# <i>mkdir /mnt/gentoo</i>
522# <i>mount /dev/hda4 /mnt/gentoo</i> 516# <i>mount /dev/hda4 /mnt/gentoo</i>
523<comment>(For ext3 partitions:)</comment>
524# <i>mount -t ext3 /dev/hda4 /mnt/gentoo</i>
525</pre> 517</pre>
526 518
527<note> 519<note>
528If you want your <path>/tmp</path> to reside on a separate partition, be sure to 520If you want your <path>/tmp</path> to reside on a separate partition, be sure to
529change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This 521change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
530also holds for <path>/var/tmp</path>. 522also holds for <path>/var/tmp</path>.
531</note> 523</note>
532 524
533
534<p> 525<p>
535We will have to mount the proc filesystem (a virtual interface with the 526We will have to mount the proc filesystem (a virtual interface with the
536kernel) on <path>/proc</path>. But first we will need to place our files on the 527kernel) on <path>/proc</path>. But first we will need to place our files on the
537partitions. 528partitions.
538</p> 529</p>

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.34

  ViewVC Help
Powered by ViewVC 1.1.20