/[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.25 Revision 1.26
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.25 2007/09/18 15:48:12 neysx Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-tipsntricks.xml,v 1.26 2008/05/21 20:26:03 swift 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 7
8<author title="Author"> 8<author title="Author">
118# <i>mknod /dev/md2 b 9 2</i> 118# <i>mknod /dev/md2 b 9 2</i>
119# <i>mknod /dev/md3 b 9 3</i> 119# <i>mknod /dev/md3 b 9 3</i>
120</pre> 120</pre>
121 121
122<p> 122<p>
123After partitioning, create the <path>/etc/mdadm.conf</path> file (yes, indeed, 123After partitioning, create the <path>/etc/mdadm.conf</path> file (yes, indeed,
124on the Installation CD environment) using <c>mdadm</c>, an advanced tool for <uri 124on the Installation CD environment) using <c>mdadm</c>, an advanced tool for
125link="http://www.linuxdevcenter.com/pub/a/linux/2002/12/05/RAID.html">RAID 125<uri link="http://www.linuxdevcenter.com/pub/a/linux/2002/12/05/RAID.html">RAID
126management</uri>. For instance, to have your boot, swap and root partition 126management</uri>. For instance, to have your boot, swap and root partition
127mirrored (RAID-1) covering <path>/dev/sda</path> and <path>/dev/sdb</path>, 127mirrored (RAID-1) covering <path>/dev/sda</path> and <path>/dev/sdb</path>,
128you can use: 128you can use:
129</p> 129</p>
130 130
131<pre caption="Creating raid devices with the mdadm command"> 131<pre caption="Creating raid devices with the mdadm command">
132# <i>mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1</i> 132# <i>mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1</i>
160to <path>/mnt/gentoo/etc</path>. 160to <path>/mnt/gentoo/etc</path>.
161</p> 161</p>
162 162
163<p> 163<p>
164When you're configuring your kernel, make sure you have the appropriate RAID 164When you're configuring your kernel, make sure you have the appropriate RAID
165support <e>in</e> your kernel and not as module. 165support <e>in</e> your kernel and not as module.
166</p> 166</p>
167 167
168<p> 168<p>
169When installing extra tools, emerge <c>mdadm</c> as well. Note that this isn't 169When installing extra tools, emerge <c>mdadm</c> as well. Note that this isn't
170available on all Installation CDs so you might not be able to install Gentoo on 170available on all Installation CDs so you might not be able to install Gentoo on
171a Software RAID when using a networkless installation! 171a Software RAID when using a networkless installation!
172</p> 172</p>
173 173
174<p> 174<p>
175When configuring your bootloader, make sure it gets installed in the MBR of 175When configuring your bootloader, make sure it gets installed in the MBR of
176<e>both</e> disks if you use mirroring. 176<e>both</e> disks if you use mirroring.
177</p> 177</p>
178 178
179</body> 179</body>
180</section> 180</section>
181<section id="ata-raid-2.4"> 181<section id="ata-raid-2.4">
182<title>ATA RAID using 2.4 kernels</title> 182<title>ATA RAID using 2.4 kernels</title>
183<body> 183<body>
184 184
185<p> 185<p>
186Make sure you boot your Installation CD using the <c>doataraid</c> option. Once booted, 186Make sure you boot your Installation CD using the <c>doataraid</c> option. Once
187check the contents of <path>/dev/ataraid</path>. It should contain various 187booted, check the contents of <path>/dev/ataraid</path>. It should contain
188<path>disc*</path> directories for each harddisk available in the ATA RAID. An 188various <path>disc*</path> directories for each harddisk available in the ATA
189entire disk is displayed as <path>disc</path> while partitions are 189RAID. An entire disk is displayed as <path>disc</path> while partitions are
190<path>part*</path>. 190<path>part*</path>.
191</p> 191</p>
192 192
193<p> 193<p>
194Write down the various <path>/dev/ataraid/disc*/*</path> device files that you 194Write down the various <path>/dev/ataraid/disc*/*</path> device files that you
226</pre> 226</pre>
227 227
228<p> 228<p>
229You still need to write your <path>grub.conf</path> file. This is no different 229You still need to write your <path>grub.conf</path> file. This is no different
230from the installation instructions, just make sure that your <c>root=</c> points 230from the installation instructions, just make sure that your <c>root=</c> points
231to the ATA RAID device. 231to the ATA RAID device.
232</p> 232</p>
233 233
234<p> 234<p>
235After finishing the installation, boot with your GRUB bootdisk. You will be 235After finishing the installation, boot with your GRUB bootdisk. You will be
236greeted by a GRUB prompt. Now configure GRUB to boot from the ATA RAID device: 236greeted by a GRUB prompt. Now configure GRUB to boot from the ATA RAID device:
257<title>Using the Installation CD kernel</title> 257<title>Using the Installation CD kernel</title>
258<body> 258<body>
259 259
260<p> 260<p>
261If you don't want to compile a kernel yourself you can use the kernel from the 261If you don't want to compile a kernel yourself you can use the kernel from the
262Installation CD and copy it to your system. When you come to the point that you're asked 262Installation CD and copy it to your system. When you come to the point that
263to compile a kernel, go to another terminal (press Alt-F2) and log in with the 263you're asked to compile a kernel, go to another terminal (press Alt-F2) and
264root password you've supplied at the beginning of the installation. 264log in with the root password you've supplied at the beginning of the
265installation.
265</p> 266</p>
266 267
267<p> 268<p>
268Copy over the kernel and modules to your Gentoo system: 269Copy over the kernel and modules to your Gentoo system:
269</p> 270</p>
304perform the compilation in the background and log out from all terminals. 305perform the compilation in the background and log out from all terminals.
305</p> 306</p>
306 307
307<p> 308<p>
308There are several possible solutions for this. The first one is to use 309There are several possible solutions for this. The first one is to use
309<c>screen</c>. After booting the Installation CD, set your root password and start a 310<c>screen</c>. After booting the Installation CD, set your root password and
310screen session: 311start a screen session:
311</p> 312</p>
312 313
313<note> 314<note>
314Not all Installation CDs provide screen. If this is the case, you will have to use one of 315Not all Installation CDs provide screen. If this is the case, you will have to
315the other methods described in this section. 316use one of the other methods described in this section.
316</note> 317</note>
317 318
318<pre caption="Starting a screen session"> 319<pre caption="Starting a screen session">
319# <i>screen -S gentoo</i> 320# <i>screen -S gentoo</i>
320</pre> 321</pre>
325the same time, then followed by a d) to <e>detach</e> your screen session. You 326the same time, then followed by a d) to <e>detach</e> your screen session. You
326can now safely log out of your system. 327can now safely log out of your system.
327</p> 328</p>
328 329
329<p> 330<p>
330To regain access to your terminal, log in as root again and <e>attach</e> to 331To regain access to your terminal, log in as root again and <e>attach</e> to
331the running screen session: 332the running screen session:
332</p> 333</p>
333 334
334<pre caption="Attaching to a screen session"> 335<pre caption="Attaching to a screen session">
335# <i>screen -x gentoo</i> 336# <i>screen -x gentoo</i>
350/usr/portage 351/usr/portage
351# <i>nohup ./scripts/bootstrap.sh &amp;</i> 352# <i>nohup ./scripts/bootstrap.sh &amp;</i>
352</pre> 353</pre>
353 354
354<p> 355<p>
355Now exit the chrooted environment (<c>exit</c>) and the Installation CD session. Your 356Now exit the chrooted environment (<c>exit</c>) and the Installation CD session.
356compilation will continue in the background. 357Your compilation will continue in the background.
357</p>
358
359<p> 358</p>
359
360<p>
360When you want to check the compilation, log in as root (on the Installation CD) and 361When you want to check the compilation, log in as root (on the Installation CD)
361chroot back into your environment and go to the directory where you left off: 362and chroot back into your environment and go to the directory where you left
363off:
362</p> 364</p>
363 365
364<pre caption="Chrooting back"> 366<pre caption="Chrooting back">
365# <i>chroot /mnt/gentoo /bin/bash</i> 367# <i>chroot /mnt/gentoo /bin/bash</i>
366# <i>env-update &amp;&amp; source /etc/profile</i> 368# <i>env-update &amp;&amp; source /etc/profile</i>
419<p> 421<p>
420First of all you need to chroot back into your Gentoo Linux environment. Follow 422First of all you need to chroot back into your Gentoo Linux environment. Follow
421the instructions again, but ignore the partitioning steps as your partitions are 423the instructions again, but ignore the partitioning steps as your partitions are
422already created and even populated. You can therefore immediately mount those 424already created and even populated. You can therefore immediately mount those
423partitions at <path>/mnt/gentoo</path>. You should also ignore the steps about 425partitions at <path>/mnt/gentoo</path>. You should also ignore the steps about
424stage extraction and modifying <path>make.conf</path> - you don't want to 426stage extraction and modifying <path>make.conf</path> - you don't want to
425overwrite your files do you? 427overwrite your files do you?
426</p> 428</p>
427 429
428<p> 430<p>
429Once chrooted inside your Gentoo Linux environment, immediately go to the step 431Once chrooted inside your Gentoo Linux environment, immediately go to the step
439</p> 441</p>
440 442
441<p> 443<p>
442Once you have tried a different approach for your situation, you should consider 444Once you have tried a different approach for your situation, you should consider
443how much of the subsequent steps you need to perform again. If the subsequent 445how much of the subsequent steps you need to perform again. If the subsequent
444steps are depending on your change, you will need to redo those. 446steps are depending on your change, you will need to redo those.
445</p> 447</p>
446 448
447<p> 449<p>
448For instance, 450For instance,
449</p> 451</p>
450 452
451<ul> 453<ul>
452 <li> 454 <li>
453 if you have changed a variable inside <path>make.conf</path> you will need 455 if you have changed a variable inside <path>make.conf</path> you will need
454 to do all subsequent compiling since those depend on the settings inside 456 to do all subsequent compiling since those depend on the settings inside
455 <path>make.conf</path> 457 <path>make.conf</path>
456 </li> 458 </li>
457 <li> 459 <li>
458 if you have altered <path>/boot/grub/grub.conf</path> you can immediately 460 if you have altered <path>/boot/grub/grub.conf</path> you can immediately

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20