/[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.34 Revision 1.37
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.34 2006/02/27 00:55:34 fox2mike Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.37 2006/11/02 20:49:38 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>2.5</version> 11<version>7.1</version>
12<date>2006-02-27</date> 12<date>2006-11-02</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>
64 64
65<p> 65<p>
66If you are not interested in drawing up a partitioning scheme for your system, 66If you are not interested in drawing up a partitioning scheme for your system,
67you can use the partitioning scheme we use throughout this book: 67you can use the partitioning scheme we use throughout this book:
68</p> 68</p>
69
70<note>
71If you are using an OldWorld machine, you will need to keep MacOS available.
72The layout here assumes MacOS is installed on a separate drive.
73</note>
69 74
70<table> 75<table>
71<tr> 76<tr>
72 <th>Partition NewWorld</th> 77 <th>Partition NewWorld</th>
73 <th>Partition OldWorld</th> 78 <th>Partition OldWorld</th>
86 <ti>32k</ti> 91 <ti>32k</ti>
87 <ti>Apple_partition_map</ti> 92 <ti>Apple_partition_map</ti>
88</tr> 93</tr>
89<tr> 94<tr>
90 <ti><path>/dev/hda2</path></ti> 95 <ti><path>/dev/hda2</path></ti>
91 <ti>(Not applicable)</ti> 96 <ti>(Not needed)</ti>
92 <ti>(Not applicable)</ti> 97 <ti>(Not applicable)</ti>
93 <ti>(Not applicable)</ti> 98 <ti>(Not applicable)</ti>
94 <ti>(bootstrap)</ti> 99 <ti>(bootstrap)</ti>
95 <ti>800k</ti> 100 <ti>800k</ti>
96 <ti>Apple_Bootstrap</ti> 101 <ti>Apple_Bootstrap</ti>
113 <ti>32MB</ti> 118 <ti>32MB</ti>
114 <ti>Boot partition</ti> 119 <ti>Boot partition</ti>
115</tr> 120</tr>
116<tr> 121<tr>
117 <ti><path>/dev/hda3</path></ti> 122 <ti><path>/dev/hda3</path></ti>
118 <ti><path>/dev/hda2</path>(<path>/dev/hda3</path> if using quik)</ti> 123 <ti><path>/dev/hda2</path> (<path>/dev/hda3</path> if using quik)</ti>
119 <ti><path>/dev/hda2</path></ti> 124 <ti><path>/dev/hda2</path></ti>
120 <ti><path>/dev/sda2</path></ti> 125 <ti><path>/dev/sda2</path></ti>
121 <ti>(swap)</ti> 126 <ti>(swap)</ti>
122 <ti>512M</ti> 127 <ti>512M</ti>
123 <ti>Swap partition, Type 0x82</ti> 128 <ti>Swap partition, Type 0x82</ti>
132 <ti>Root partition, Type 0x83</ti> 137 <ti>Root partition, Type 0x83</ti>
133</tr> 138</tr>
134</table> 139</table>
135 140
136<note> 141<note>
137There are some partitions named: <path>Apple_Driver43, Apple_Driver_ATA, 142There are some partitions named: <path>Apple_Driver63, Apple_Driver_ATA,
138Apple_FWDriver, Apple_Driver_IOKit, Apple_Patches</path>. If you are not 143Apple_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 144planning 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 145need them. To delete them, either use parted or erase the whole disk by
141initializing the partition map. 146initializing the partition map.
142</note> 147</note>
143 148
144<warn> 149<warn>
145<c>parted</c> is able to resize partitions including HFS+. Unfortunately it is 150<c>parted</c> is able to resize partitions including HFS+. Unfortunately it is
146not possible to resize HFS+ journaled filesystems, so switch off journaling in 151not possible to resize HFS+ journaled filesystems, so switch off journaling in
147Mac OS X before resizing. Remeber that any resizing operation is dangerous, 152Mac OS X before resizing. Remember that any resizing operation is dangerous,
148so attempt at your own risk! Be sure to always have a backup of your data 153so attempt at your own risk! Be sure to always have a backup of your data
149before resizing! 154before resizing!
150</warn> 155</warn>
151 156
152<p> 157<p>
153If you are interested in knowing how big a partition should be, or even how many 158If you are interested in knowing how big a partition should be, or even how many
154partitions you need, read on. Otherwise continue now with 159partitions you need, read on. Otherwise continue now with
155<uri link="#mac-fdisk"> Default: Using mac-fdisk (Apple) to Partition your Disk 160<uri link="#mac-fdisk"> Default: Using mac-fdisk (Apple) to Partition your Disk
156</uri> or <uri link="#parted">Alternative: Using parted (IBM/Pegasos) to 161</uri> or <uri link="#parted">Alternative: Using parted (IBM/Pegasos) to
167The number of partitions is highly dependent on your environment. For instance, 172The number of partitions is highly dependent on your environment. For instance,
168if you have lots of users, you will most likely want to have your 173if you have lots of users, you will most likely want to have your
169<path>/home</path> separate as it increases security and makes backups easier. 174<path>/home</path> separate as it increases security and makes backups easier.
170If you are installing Gentoo to perform as a mailserver, your <path>/var</path> 175If you are installing Gentoo to perform as a mailserver, your <path>/var</path>
171should be separate as all mails are stored inside <path>/var</path>. A good 176should be separate as all mails are stored inside <path>/var</path>. A good
172choice of filesystem will then maximize your performance. Gameservers will have 177choice of filesystem will then maximise your performance. Gameservers will have
173a separate <path>/opt</path> as most gaming servers are installed there. The 178a separate <path>/opt</path> as most gaming servers are installed there. The
174reason is similar for <path>/home</path>: security and backups. You will 179reason is similar for <path>/home</path>: security and backups. You will
175definitely want to keep <path>/usr</path> big: not only will it contain the 180definitely want to keep <path>/usr</path> big: not only will it contain the
176majority of applications, the Portage tree alone takes around 500 MB 181majority of applications, the Portage tree alone takes around 500 Mbyte
177excluding the various sources that are stored in it. 182excluding the various sources that are stored in it.
178</p> 183</p>
179 184
180<p> 185<p>
181As you can see, it very much depends on what you want to achieve. Separate 186As you can see, it very much depends on what you want to achieve. Separate
224</pre> 229</pre>
225 230
226<p> 231<p>
227First delete the partitions you have cleared previously to make room for your 232First delete the partitions you have cleared previously to make room for your
228Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s). 233Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s).
229It will ask for the partition number to delete. The first partition on Apple 234It will ask for the partition number to delete. Usually the first partition on
230machines (Apple_partition_map) can not be deleted. 235NewWorld machines (Apple_partition_map) could not be deleted.
231</p>
232
233<p> 236</p>
237
238<p>
234On NewWorld Macs, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. 239Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will
235It will ask for what block you want to start. Enter the number of your first 240ask for what block you want to start. Enter the number of your first free
236free partition, followed by a <c>p</c>. For instance this is <c>2p</c>. 241partition, followed by a <c>p</c>. For instance this is <c>2p</c>.
237</p> 242</p>
238 243
239<note> 244<note>
240This partition is <e>not</e> a <path>/boot</path> partition. It is not used by 245This partition is <e>not</e> a <path>/boot</path> partition. It is not used by
241Linux at all; you don't have to place any filesystem on it and you should never 246Linux at all; you don't have to place any filesystem on it and you should never
245<p> 250<p>
246Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will 251Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will
247ask for what block you want to start this partition from. As we used <c>2</c> 252ask for what block you want to start this partition from. As we used <c>2</c>
248before to create the Apple_Bootstrap partition, you now have to enter 253before to create the Apple_Bootstrap partition, you now have to enter
249<c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size 254<c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size
250you want -- 512MB is recommended though). When asked for a name, enter 255you want -- 512MB is recommended though). When asked for a name, enter <c>swap</c>
251<c>swap</c> (mandatory). 256(mandatory).
252</p> 257</p>
253 258
254<p> 259<p>
255To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select 260To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select
256from what block the root partition should start. When asked for the size, enter 261from what block the root partition should start. When asked for the size, enter
277</p> 282</p>
278 283
279</body> 284</body>
280</section> 285</section>
281<section id="parted"> 286<section id="parted">
282<title>Using parted (Mostly Pegasos) to Partition your Disk</title> 287<title>Using parted (especially Pegasos) to Partition your Disk</title>
283<body> 288<body>
284 289
285<p> 290<p>
286<c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by 291<c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by
287Mac OS and Mac OS X. With this tool you can resize your Mac-partitions and 292Mac OS and Mac OS X. With this tool you can resize your Mac-partitions and
296<pre caption="Starting parted"> 301<pre caption="Starting parted">
297# <i>parted /dev/hda</i> 302# <i>parted /dev/hda</i>
298</pre> 303</pre>
299 304
300<p> 305<p>
301If the drive isn't partitioned, run <c>mklabel amiga</c> to create a new 306If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new
302disklabel for the drive. 307disklabel for the drive.
303</p> 308</p>
304 309
305<p> 310<p>
306You can type <c>print</c> at any time in parted to display the current partition 311You can type <c>print</c> at any time in parted to display the current partition
309</p> 314</p>
310 315
311<p> 316<p>
312If you intend to also install MorphOS on your Pegasos create an affs1 filesystem 317If you intend to also install MorphOS on your Pegasos create an affs1 filesystem
313named "BI0" (BI zero) at the start of the drive. 32MB should be more than enough 318named "BI0" (BI zero) at the start of the drive. 32MB should be more than enough
314to store the MorphOS kernel. If you have a Pegasos I or intend to use reiserfs 319to store the MorphOS kernel. If you have a Pegasos I or intend to use reiserfs or
315or xfs, you will also have to store your Linux kernel on this partition (the 320xfs, you will also have to store your Linux kernel on this partition (the
316Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the partition run 321Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the partition run
317<c>mkpart primary affs1 START END</c> where <c>START</c> and <c>END</c> should 322<c>mkpart primary affs1 START END</c> where <c>START</c> and <c>END</c> should
318be replaced with the megabyte range (e.g. <c>0 32</c> creates a 32 MB partition 323be replaced with the megabyte range (e.g. <c>0 32</c> creates a 32 MB partition
319starting at 0MB and ending at 32MB. 324starting at 0MB and ending at 32MB.
320</p> 325</p>
385happens to be in an inconsistent state. 390happens to be in an inconsistent state.
386</p> 391</p>
387 392
388<p> 393<p>
389<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata 394<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata
390journaling for fast recovery in addition to other enhanced journaling modes like 395journaling for fast recovery in addition to other enhanced journaling modes
391full data and ordered data journaling. ext3 is a very good and reliable 396like full data and ordered data journaling. It uses a hashed B*-tree index that
392filesystem. It has an additional hashed b-tree indexing option that enables 397enables high performance in almost all situations. In short, ext3 is a very
393high performance in almost all situations. You can enable this indexing by 398good and reliable filesystem.
394adding <c>-O dir_index</c> to the <c>mke2fs</c> command. In short, ext3 is an
395excellent filesystem.
396</p>
397
398<p> 399</p>
400
401<p>
399<b>ReiserFS</b> is a B*-tree based filesystem that has very good overall 402<b>ReiserFS</b> is a B*-tree based filesystem that has very good overall
400performance and greatly outperforms both ext2 and ext3 when dealing with small 403performance and greatly outperforms both ext2 and ext3 when dealing with small
401files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales 404files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales
402extremely well and has metadata journaling. As of kernel 2.4.18+, ReiserFS is 405extremely well and has metadata journaling. ReiserFS is solid and usable as
403solid and usable as both general-purpose filesystem and for extreme cases such 406both general-purpose filesystem and for extreme cases such as the creation of
404as the creation of large filesystems, the use of many small files, very large 407large filesystems, very large files and directories containing tens of
405files and directories containing tens of thousands of files. 408thousands of small files.
406</p> 409</p>
407 410
408<p> 411<p>
409<b>XFS</b> is a filesystem with metadata journaling which comes with a robust 412<b>XFS</b> is a filesystem with metadata journaling which comes with a robust
410feature-set and is optimized for scalability. We only recommend using this 413feature-set and is optimized for scalability. We only recommend using this
462Now create the filesystems on your newly created partitions (or logical 465Now create the filesystems on your newly created partitions (or logical
463volumes). 466volumes).
464</p> 467</p>
465 468
466<note> 469<note>
467On the PegasosII your partition which holds the kernel must be ext2 or ext3. 470On the PegasosII your partition which holds the kernel must be ext2/ext3 or
468NewWorld machines can boot from any of ext2, ext3, XFS, ReiserFS or even 471affs1. NewWorld machines can boot from any of ext2, ext3, XFS, ReiserFS or
469HFS/HFS+ filesystems. On OldWorld machines booting with BootX, the kernel must 472even HFS/HFS+ filesystems. On OldWorld machines booting with BootX, the kernel
470be placed on an HFS partition, but this will be completed when you configure 473must be placed on an HFS partition, but this will be completed when you
471your bootloader. 474configure your bootloader.
472</note> 475</note>
473 476
474</body> 477</body>
475</subsection> 478</subsection>
476<subsection> 479<subsection>
504<title>Mounting</title> 507<title>Mounting</title>
505<body> 508<body>
506 509
507<p> 510<p>
508Now that your partitions are initialized and are housing a filesystem, it is 511Now that your partitions are initialized and are housing a filesystem, it is
509time to mount those partitions. Use the <c>mount</c> command. Don't forget to 512time to mount those partitions. Use the <c>mount</c> command. As an example we
510create the necessary mount directories for every partition you created. As an 513mount the root partition:
511example we create a mount-point and mount the root partition:
512</p> 514</p>
513 515
514<pre caption="Mounting partitions"> 516<pre caption="Mounting partitions">
515# <i>mkdir /mnt/gentoo</i>
516# <i>mount /dev/hda4 /mnt/gentoo</i> 517# <i>mount /dev/hda4 /mnt/gentoo</i>
517</pre> 518</pre>
518 519
519<note> 520<note>
520If you want your <path>/tmp</path> to reside on a separate partition, be sure to 521If you want your <path>/tmp</path> to reside on a separate partition, be sure to

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

  ViewVC Help
Powered by ViewVC 1.1.20