/[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.3 Revision 1.4
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
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.3 2004/04/03 08:37:01 bennyc Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-disk.xml,v 1.4 2004/04/04 19:41:25 pylon 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>
13<title>Block Devices</title> 13<title>Block Devices</title>
14<body> 14<body>
15 15
16<p> 16<p>
17We'll take a good look at disk-oriented aspects of Gentoo Linux 17We'll take a good look at disk-oriented aspects of Gentoo Linux
18and Linux in general, including Linux filesystems, partitions and block devices. 18and Linux in general, including Linux filesystems, partitions and block devices.
19Then, once you're familiar with the ins and outs of disks and filesystems, 19Then, once you're familiar with the ins and outs of disks and filesystems,
20you'll be guided through the process of setting up partitions and filesystems 20you'll be guided through the process of setting up partitions and filesystems
21for your Gentoo Linux installation. 21for your Gentoo Linux installation.
22</p> 22</p>
160At this point, create your partitions using <c>mac-fdisk</c>: 160At this point, create your partitions using <c>mac-fdisk</c>:
161</p> 161</p>
162 162
163<pre caption="Starting mac-fdisk"> 163<pre caption="Starting mac-fdisk">
164# <i>mac-fdisk /dev/hda</i> 164# <i>mac-fdisk /dev/hda</i>
165</pre> 165</pre>
166 166
167<p> 167<p>
168First delete the partitions you have cleared previously to make room for your 168First delete the partitions you have cleared previously to make room for your
169Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s). 169Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s).
170It will ask for the partition number to delete. 170It will ask for the partition number to delete.
171</p> 171</p>
172 172
173<p> 173<p>
174Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will 174Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will
175ask for what block you want to start. If you previously selected <c>3</c> as 175ask for what block you want to start. Enter the number of your first free
176partition number, enter <c>3p</c>. 176partition, followed by a <c>p</c>. For instance this is <c>3p</c>.
177</p> 177</p>
178 178
179<note> 179<note>
180This partition is <e>not</e> a "boot" partition. It is not used by Linux at all; 180This partition is <e>not</e> a "boot" partition. It is not used by Linux at all;
181you don't have to place any filesystem on it and you should never mount it. PPC 181you don't have to place any filesystem on it and you should never mount it. PPC
182users don't need a boot partition. 182users don't need a an extra partition for <path>/boot</path>.
183</note> 183</note>
184 184
185<p> 185<p>
186Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will 186Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will
187ask for what block you want to start this partition from. As we used <c>3</c> 187ask for what block you want to start this partition from. As we used <c>3</c>
188before to create the Apple_Bootstrap partition, you now have to enter 188before to create the Apple_Bootstrap partition, you now have to enter
189<c>4p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size 189<c>4p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size
190you want -- 512 is recommended though). When asked for a name, enter <c>swap</c> 190you want -- 512MB is recommended though). When asked for a name, enter <c>swap</c>
191(mandatory). 191(mandatory).
192</p> 192</p>
193 193
194<p> 194<p>
195To create the root partition, enter <c>c</c>, followed by <c>5p</c> to select 195To create the root partition, enter <c>c</c>, followed by <c>5p</c> to select
196from what block the root partition should start. When asked for the size, enter 196from what block the root partition should start. When asked for the size, enter
197<c>5p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available 197<c>5p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available
198space". When asked for the name, enter <c>root</c> (mandatory). 198space". When asked for the name, enter <c>root</c> (mandatory).
199</p> 199</p>
200 200
201<p> 201<p>
202To finish up, write the partition to the disk using <c>w</c> and <c>q</c> to 202To finish up, write the partition to the disk using <c>w</c> and <c>q</c> to
203quit <c>mac-fdisk</c>. 203quit <c>mac-fdisk</c>.
204</p> 204</p>
205 205
359<p> 359<p>
360Create and activate the swap now. 360Create and activate the swap now.
361</p> 361</p>
362 362
363</body> 363</body>
364</subsection> 364</subsection>
365</section> 365</section>
366<section> 366<section>
367<title>Mounting</title> 367<title>Mounting</title>
368<body> 368<body>
369 369
370<p> 370<p>
371Now that your partitions are initialized and are housing a filesystem, it is 371Now that your partitions are initialized and are housing a filesystem, it is
372time to mount those partitions. Use the <c>mount</c> command. Don't forget to 372time to mount those partitions. Use the <c>mount</c> command. Don't forget to
373create the necessary mount directories for every partition you created. As an 373create the necessary mount directories for every partition you created. As an
374example we mount the root and boot partition: 374example we create a mount-point and mount the root and boot partition:
375</p> 375</p>
376 376
377<pre caption="Mounting partitions"> 377<pre caption="Mounting partitions">
378# <i>mkdir /mnt/gentoo</i>
378# <i>mount /dev/hda3 /mnt/gentoo</i> 379# <i>mount /dev/hda3 /mnt/gentoo</i>
379</pre> 380</pre>
380 381
381<note> 382<note>
382If you want your <path>/tmp</path> to reside on a separate partition, be sure to 383If you want your <path>/tmp</path> to reside on a separate partition, be sure to
383change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This 384change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This
384also holds for <path>/var/tmp</path>. 385also holds for <path>/var/tmp</path>.
385</note> 386</note>
386 387
387<p> 388<p>
388We also need to mount the proc filesystem (a virtual interface with the kernel) 389We also need to mount the proc filesystem (a virtual interface with the kernel)
389on <path>/proc</path>. We first create the <path>/mnt/gentoo/proc</path> 390on <path>/proc</path>. We first create the <path>/mnt/gentoo/proc</path>
390mountpoint and then mount the filesystem: 391mountpoint and then mount the filesystem:
391</p> 392</p>
392 393
393<pre caption="Creating the /mnt/gentoo/proc mountpoint"> 394<pre caption="Creating the /mnt/gentoo/proc mountpoint">
394# <i>mkdir /mnt/gentoo/proc</i> 395# <i>mkdir /mnt/gentoo/proc</i>
395# <i>mount -t proc none /mnt/gentoo/proc</i> 396# <i>mount -t proc none /mnt/gentoo/proc</i>
396</pre> 397</pre>
397 398
398<p> 399<p>
400Finally we have to create the <path>/dev</path> files in our new home, which is
401needed during the bootloader installation. This could be done by "bind"-mapping
402the <path>/dev</path>-filesystem from the LiveCD:
403</p>
404
405<pre caption="Bind-mounting the /dev-filesystem">
406# <i>mkdir /mnt/gentoo/dev</i>
407# <i>mount -o bind /dev /mnt/gentoo/dev</i>
408</pre>
409
410<p>
399Now continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo 411Now continue with <uri link="?part=1&amp;chap=5">Installing the Gentoo
400Installation Files</uri>. 412Installation Files</uri>.
401</p> 413</p>
402 414
403</body> 415</body>
404</section> 416</section>
405</sections> 417</sections>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20