/[gentoo]/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml
Gentoo

Diff of /xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml

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

Revision 1.14 Revision 1.15
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml,v 1.14 2005/08/01 13:02:53 swift Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml,v 1.15 2005/10/03 20:53:53 rane Exp $ -->
4 4
5<guide link="/doc/en/gentoo-x86-tipsntricks.xml"> 5<guide link="/doc/en/gentoo-x86-tipsntricks.xml">
6<title>Gentoo/x86 Installation Tips &amp; Tricks</title> 6<title>Gentoo/x86 Installation Tips &amp; Tricks</title>
7<author title="Author"> 7<author title="Author">
8 <mail link="swift@gentoo.org">Sven Vermeulen</mail> 8 <mail link="swift@gentoo.org">Sven Vermeulen</mail>
13installation methods. As it is almost impossible to insert every single tip or 13installation methods. As it is almost impossible to insert every single tip or
14trick in the installation instructions this document tries to deal with all 14trick in the installation instructions this document tries to deal with all
15submitted tips and tricks for reference purposes. 15submitted tips and tricks for reference purposes.
16</abstract> 16</abstract>
17 17
18<!-- The content of this document is licensed under the CC-BY-SA license -->
19<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
18<license/> 20<license/>
19 21
20<version>1.8</version> 22<version>1.9</version>
21<date>2005-07-02</date> 23<date>2005-07-02</date>
22 24
23<chapter> 25<chapter>
24<title>Introduction</title> 26<title>Introduction</title>
25<section> 27<section>
43</p> 45</p>
44 46
45<ul> 47<ul>
46 <li><uri link="#software-raid">Software RAID</uri></li> 48 <li><uri link="#software-raid">Software RAID</uri></li>
47 <li><uri link="#ata-raid-2.4">ATA RAID using 2.4 kernels</uri></li> 49 <li><uri link="#ata-raid-2.4">ATA RAID using 2.4 kernels</uri></li>
48 <li><uri link="#livecd-kernel">Using the LiveCD kernel</uri></li> 50 <li><uri link="#livecd-kernel">Using the Installation CD kernel</uri></li>
49</ul> 51</ul>
50 52
51<p> 53<p>
52<b>Simplifying the Installation</b> 54<b>Simplifying the Installation</b>
53</p> 55</p>
80If you are not familiar with software raid, please read the <uri 82If you are not familiar with software raid, please read the <uri
81link="http://tldp.org/HOWTO/Software-RAID-HOWTO.html">Software-RAID-HOWTO</uri>. 83link="http://tldp.org/HOWTO/Software-RAID-HOWTO.html">Software-RAID-HOWTO</uri>.
82</note> 84</note>
83 85
84<p> 86<p>
85Once you are booted from the LiveCD, load the appropriate RAID modules. For 87Once you are booted from the Installation CD, load the appropriate RAID modules. For
86instance, if you plan on using RAID-1: 88instance, if you plan on using RAID-1:
87</p> 89</p>
88 90
89<pre caption="Loading the RAID-1 module"> 91<pre caption="Loading the RAID-1 module">
90# <i>modprobe raid1</i> 92# <i>modprobe raid1</i>
107# <i>mknod /dev/md2 b 9 2</i> 109# <i>mknod /dev/md2 b 9 2</i>
108</pre> 110</pre>
109 111
110<p> 112<p>
111After partitioning, create the <path>/etc/mdadm.conf</path> file (yes, indeed, 113After partitioning, create the <path>/etc/mdadm.conf</path> file (yes, indeed,
112on the LiveCD environment) using <c>mdadm</c>, an advanced tool for <uri 114on the Installation CD environment) using <c>mdadm</c>, an advanced tool for <uri
113link="http://www.linuxdevcenter.com/pub/a/linux/2002/12/05/RAID.html">RAID 115link="http://www.linuxdevcenter.com/pub/a/linux/2002/12/05/RAID.html">RAID
114management</uri>. For instance, to have your boot, swap and root partition 116management</uri>. For instance, to have your boot, swap and root partition
115mirrored (RAID-1) covering <path>/dev/sda</path> and <path>/dev/sdb</path>, 117mirrored (RAID-1) covering <path>/dev/sda</path> and <path>/dev/sdb</path>,
116you can use: 118you can use:
117</p> 119</p>
152support <e>in</e> your kernel and not as module. 154support <e>in</e> your kernel and not as module.
153</p> 155</p>
154 156
155<p> 157<p>
156When installing extra tools, emerge <c>mdadm</c> as well. Note that this 158When installing extra tools, emerge <c>mdadm</c> as well. Note that this
157isn't available on all LiveCDs so you might not be able to install Gentoo on a 159isn't available on all Installation CDs so you might not be able to install Gentoo on a
158Software RAID when using a networkless installation! 160Software RAID when using a networkless installation!
159</p> 161</p>
160 162
161<p> 163<p>
162When configuring your bootloader, make sure it gets installed in the MBR of 164When configuring your bootloader, make sure it gets installed in the MBR of
168<section id="ata-raid-2.4"> 170<section id="ata-raid-2.4">
169<title>ATA RAID using 2.4 kernels</title> 171<title>ATA RAID using 2.4 kernels</title>
170<body> 172<body>
171 173
172<p> 174<p>
173Make sure you boot your LiveCD using the <c>doataraid</c> option. Once booted, 175Make sure you boot your Installation CD using the <c>doataraid</c> option. Once booted,
174check the contents of <path>/dev/ataraid</path>. It should contain various 176check the contents of <path>/dev/ataraid</path>. It should contain various
175<path>disc*</path> directories for each harddisk available in the ATA RAID. An 177<path>disc*</path> directories for each harddisk available in the ATA RAID. An
176entire disk is displayed as <path>disc</path> while partitions are 178entire disk is displayed as <path>disc</path> while partitions are
177<path>part*</path>. 179<path>part*</path>.
178</p> 180</p>
239</p> 241</p>
240 242
241</body> 243</body>
242</section> 244</section>
243<section id="livecd-kernel"> 245<section id="livecd-kernel">
244<title>Using the LiveCD kernel</title> 246<title>Using the Installation CD kernel</title>
245<body> 247<body>
246 248
247<p> 249<p>
248If you don't want to compile a kernel yourself you can use the kernel from the 250If you don't want to compile a kernel yourself you can use the kernel from the
249LiveCD and copy it to your system. When you come to the point that you're asked 251Installation CD and copy it to your system. When you come to the point that you're asked
250to compile a kernel, go to another terminal (press Alt-F2) and log in with the 252to compile a kernel, go to another terminal (press Alt-F2) and log in with the
251root password you've supplied at the beginning of the installation. 253root password you've supplied at the beginning of the installation.
252</p> 254</p>
253 255
254<p> 256<p>
255Copy over the kernel and modules to your Gentoo system: 257Copy over the kernel and modules to your Gentoo system:
256</p> 258</p>
257 259
258<pre caption="Copying over the LiveCD kernel"> 260<pre caption="Copying over the Installation CD kernel">
259<comment>(${KN} is the kernel name, usually something like 'gentoo' or 'smp')</comment> 261<comment>(${KN} is the kernel name, usually something like 'gentoo' or 'smp')</comment>
260cdimage ~# <i>cp /mnt/cdrom/isolinux/${KN} /mnt/cdrom/isolinux/${KN}.gz /mnt/gentoo/boot</i> 262cdimage ~# <i>cp /mnt/cdrom/isolinux/${KN} /mnt/cdrom/isolinux/${KN}.gz /mnt/gentoo/boot</i>
261cdimage ~# <i>mkdir -p /mnt/gentoo/lib/modules</i> 263cdimage ~# <i>mkdir -p /mnt/gentoo/lib/modules</i>
262cdiamge ~# <i>cp -Rp /lib/modules/`uname -r` /mnt/gentoo/lib/modules</i> 264cdiamge ~# <i>cp -Rp /lib/modules/`uname -r` /mnt/gentoo/lib/modules</i>
263</pre> 265</pre>
264 266
265<p> 267<p>
266Make sure you <c>emerge hotplug</c> and have it added to the boot runlevel. To 268Make sure you <c>emerge hotplug</c> and have it added to the boot runlevel. To
267have all modules that are currently running (from the LiveCD) loaded during 269have all modules that are currently running (from the Installation CD) loaded during
268bootup of your Gentoo system, run the following command from within the chrooted 270bootup of your Gentoo system, run the following command from within the chrooted
269environment: 271environment:
270</p> 272</p>
271 273
272<pre caption="Adding all running modules to the modules.conf file"> 274<pre caption="Adding all running modules to the modules.conf file">
292perform the compilation in the background and log out from all terminals. 294perform the compilation in the background and log out from all terminals.
293</p> 295</p>
294 296
295<p> 297<p>
296There are several possible solutions for this. The first one is to use 298There are several possible solutions for this. The first one is to use
297<c>screen</c>. After booting the LiveCD, set your root password and start a 299<c>screen</c>. After booting the Installation CD, set your root password and start a
298screen session: 300screen session:
299</p> 301</p>
300 302
301<note> 303<note>
302Not all LiveCDs provide screen. If this is the case, you will have to use one of 304Not all Installation CDs provide screen. If this is the case, you will have to use one of
303the other methods described in this section. 305the other methods described in this section.
304</note> 306</note>
305 307
306<pre caption="Starting a screen session"> 308<pre caption="Starting a screen session">
307# <i>screen -S gentoo</i> 309# <i>screen -S gentoo</i>
338/usr/portage 340/usr/portage
339# <i>nohup ./scripts/bootstrap.sh &amp;</i> 341# <i>nohup ./scripts/bootstrap.sh &amp;</i>
340</pre> 342</pre>
341 343
342<p> 344<p>
343Now exit the chrooted environment (<c>exit</c>) and the LiveCD session. Your 345Now exit the chrooted environment (<c>exit</c>) and the Installation CD session. Your
344compilation will continue in the background. 346compilation will continue in the background.
345</p> 347</p>
346 348
347<p> 349<p>
348When you want to check the compilation, log in as root (on the LiveCD) and 350When you want to check the compilation, log in as root (on the Installation CD) and
349chroot back into your environment and go to the directory where you left off: 351chroot back into your environment and go to the directory where you left off:
350</p> 352</p>
351 353
352<pre caption="Chrooting back"> 354<pre caption="Chrooting back">
353# <i>chroot /mnt/gentoo /bin/bash</i> 355# <i>chroot /mnt/gentoo /bin/bash</i>

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20