/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml

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

Revision 1.23 Revision 1.24
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-x86+amd64-bootloader.xml,v 1.23 2011/05/09 19:47:22 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml,v 1.24 2012/03/27 17:47:19 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>8</version> 11<version>8</version>
12<date>2011-05-09</date> 12<date>2011-05-09</date>
185<pre caption="Creating /boot/grub/grub.conf"> 185<pre caption="Creating /boot/grub/grub.conf">
186# <i>nano -w /boot/grub/grub.conf</i> 186# <i>nano -w /boot/grub/grub.conf</i>
187</pre> 187</pre>
188 188
189<p> 189<p>
190Now we are going to write up a <path>grub.conf</path>. Below you'll find two 190Now we are going to write up a <path>grub.conf</path>. Make
191possible <path>grub.conf</path> for the partitioning example we use in this
192guide. We've only extensively commented the first <path>grub.conf</path>. Make
193sure you use <e>your</e> kernel image filename and, if appropriate, <e>your</e> 191sure you use <e>your</e> kernel image filename and, if appropriate, <e>your</e>
194initrd image filename. 192initrd image filename.
195</p> 193</p>
196
197<ul>
198 <li>
199 The first <path>grub.conf</path> is for people who have not used
200 <c>genkernel</c> to build their kernel
201 </li>
202 <li>
203 The second <path>grub.conf</path> is for people who have used
204 <c>genkernel</c> to build their kernel
205 </li>
206</ul>
207 194
208<note> 195<note>
209Grub assigns device designations from the BIOS. If you change your BIOS 196Grub assigns device designations from the BIOS. If you change your BIOS
210settings, your device letters and numbers may change, too. For example, if you 197settings, your device letters and numbers may change, too. For example, if you
211change your device boot order, you may need to change your grub configuration. 198change your device boot order, you may need to change your grub configuration.
214<note> 201<note>
215If your root filesystem is JFS, you <e>must</e> add " ro" to the <c>kernel</c> 202If your root filesystem is JFS, you <e>must</e> add " ro" to the <c>kernel</c>
216line since JFS needs to replay its log before it allows read-write mounting. 203line since JFS needs to replay its log before it allows read-write mounting.
217</note> 204</note>
218 205
219<pre caption="grub.conf for non-genkernel users"> 206<pre caption="Example grub.conf">
220<comment># Which listing to boot as default. 0 is the first, 1 the second etc.</comment> 207<comment># Which listing to boot as default. 0 is the first, 1 the second etc.</comment>
221default 0 208default 0
222<comment># How many seconds to wait before the default listing is booted.</comment> 209<comment># How many seconds to wait before the default listing is booted.</comment>
223timeout 30 210timeout 30
224<comment># Nice, fat splash-image to spice things up :) 211<comment># Nice, fat splash-image to spice things up :)
232 219
233title Gentoo Linux <keyval id="kernel-version"/> (rescue) 220title Gentoo Linux <keyval id="kernel-version"/> (rescue)
234<comment># Partition where the kernel image (or operating system) is located</comment> 221<comment># Partition where the kernel image (or operating system) is located</comment>
235root (hd0,0) 222root (hd0,0)
236kernel /boot/<keyval id="kernel-name"/> root=/dev/sda3 init=/bin/bb 223kernel /boot/<keyval id="kernel-name"/> root=/dev/sda3 init=/bin/bb
224<comment># The initrd line is needed when you have built an initramfs (or used genkernel)</comment>
225initrd /boot/<keyval id="genkernel-initrd"/>
237 226
238<comment># The next four lines are only if you dualboot with a Windows system.</comment> 227<comment># The next four lines are only if you dualboot with a Windows system.</comment>
239<comment># In this case, Windows is hosted on /dev/sda6.</comment> 228<comment># In this case, Windows is hosted on /dev/sda6.</comment>
240title Windows XP
241rootnoverify (hd0,5)
242makeactive
243chainloader +1
244</pre>
245
246<pre caption="grub.conf for genkernel users">
247default 0
248timeout 30
249splashimage=(hd0,0)/boot/grub/splash.xpm.gz
250
251title Gentoo Linux <keyval id="kernel-version"/>
252root (hd0,0)
253kernel /boot/<keyval id="genkernel-name"/> real_root=/dev/sda3
254initrd /boot/<keyval id="genkernel-initrd"/>
255
256<comment># Only in case you want to dual-boot</comment>
257title Windows XP 229title Windows XP
258rootnoverify (hd0,5) 230rootnoverify (hd0,5)
259makeactive 231makeactive
260chainloader +1 232chainloader +1
261</pre> 233</pre>
473</pre> 445</pre>
474 446
475<p> 447<p>
476Some sections ago we have asked you to remember the kernel-image name 448Some sections ago we have asked you to remember the kernel-image name
477you have created. In the next example <path>lilo.conf</path> we use the 449you have created. In the next example <path>lilo.conf</path> we use the
478example partitioning scheme. There are two separate parts: 450example partitioning scheme.
479</p> 451</p>
480
481<ul>
482 <li>
483 One for those who have not used <c>genkernel</c> to build their kernel
484 </li>
485 <li>
486 One for those who have used <c>genkernel</c> to build their kernel
487 </li>
488</ul>
489 452
490<p> 453<p>
491Make sure you use <e>your</e> kernel image filename and, if appropriate, 454Make sure you use <e>your</e> kernel image filename and, if appropriate,
492<e>your</e> initrd image filename. 455<e>your</e> initrd image filename.
493</p> 456</p>
502boot=/dev/sda <comment># Install LILO in the MBR</comment> 465boot=/dev/sda <comment># Install LILO in the MBR</comment>
503prompt <comment># Give the user the chance to select another section</comment> 466prompt <comment># Give the user the chance to select another section</comment>
504timeout=50 <comment># Wait 5 (five) seconds before booting the default section</comment> 467timeout=50 <comment># Wait 5 (five) seconds before booting the default section</comment>
505default=gentoo <comment># When the timeout has passed, boot the "gentoo" section</comment> 468default=gentoo <comment># When the timeout has passed, boot the "gentoo" section</comment>
506 469
507<comment># For non-genkernel users</comment>
508image=/boot/<keyval id="kernel-name"/> 470image=/boot/<keyval id="kernel-name"/>
509 label=gentoo <comment># Name we give to this section</comment> 471 label=gentoo <comment># Name we give to this section</comment>
510 read-only <comment># Start with a read-only root. Do not alter!</comment> 472 read-only <comment># Start with a read-only root. Do not alter!</comment>
511 root=/dev/sda3 <comment># Location of the root filesystem</comment> 473 root=/dev/sda3 <comment># Location of the root filesystem</comment>
474<comment># The initrd line is only needed if you built an initramfs (or used genkernel)</comment>
475 initrd=/boot/<keyval id="genkernel-initrd"/>
512 476
513image=/boot/<keyval id="kernel-name"/> 477image=/boot/<keyval id="kernel-name"/>
514 label=gentoo.rescue <comment># Name we give to this section</comment> 478 label=gentoo.rescue <comment># Name we give to this section</comment>
515 read-only <comment># Start with a read-only root. Do not alter!</comment> 479 read-only <comment># Start with a read-only root. Do not alter!</comment>
516 root=/dev/sda3 <comment># Location of the root filesystem</comment> 480 root=/dev/sda3 <comment># Location of the root filesystem</comment>
517 append="init=/bin/bb" <comment># Launch the Gentoo static rescue shell</comment> 481 append="init=/bin/bb" <comment># Launch the Gentoo static rescue shell</comment>
518
519<comment># For genkernel users</comment>
520image=/boot/<keyval id="genkernel-name"/>
521 label=gentoo
522 read-only
523 append="real_root=/dev/sda3"
524 initrd=/boot/<keyval id="genkernel-initrd"/>
525 482
526<comment># The next two lines are only if you dualboot with a Windows system.</comment> 483<comment># The next two lines are only if you dualboot with a Windows system.</comment>
527<comment># In this case, Windows is hosted on /dev/sda6.</comment> 484<comment># In this case, Windows is hosted on /dev/sda6.</comment>
528other=/dev/sda6 485other=/dev/sda6
529 label=windows 486 label=windows

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20