/[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.24 Revision 1.25
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.24 2012/03/27 17:47:19 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml,v 1.25 2012/04/22 10:31:29 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>8</version> 11<version>9</version>
12<date>2011-05-09</date> 12<date>2012-04-22</date>
13 13
14<section> 14<section>
15<title>Making your Choice</title> 15<title>Making your Choice</title>
16<subsection> 16<subsection>
17<title>Introduction</title> 17<title>Introduction</title>
219 219
220title Gentoo Linux <keyval id="kernel-version"/> (rescue) 220title Gentoo Linux <keyval id="kernel-version"/> (rescue)
221<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>
222root (hd0,0) 222root (hd0,0)
223kernel /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"/>
226 224
227<comment># The next four lines are only if you dualboot with a Windows system.</comment> 225<comment># The next four lines are only if you dualboot with a Windows system.</comment>
228<comment># In this case, Windows is hosted on /dev/sda6.</comment> 226<comment># In this case, Windows is hosted on /dev/sda6.</comment>
229title Windows XP 227title Windows XP
230rootnoverify (hd0,5) 228rootnoverify (hd0,5)
231makeactive 229makeactive
232chainloader +1 230chainloader +1
231</pre>
232
233<p>
234If, while building the Linux kernel, you opted to include an initramfs to boot
235from, then you will need to change the configuration by referring to this
236initramfs file and telling the initramfs where your real root device is at:
237</p>
238
239<pre caption="GUB snippet for initramfs-enabled kernel builds">
240title Gentoo Linux <keyval id="kernel-version"/>
241root (hd0,0)
242kernel /boot/<keyval id="kernel-version"/> <i>real_</i>root=/dev/sda3
243<i>initrd /boot/<keyval id="genkernel-initrd"/></i>
233</pre> 244</pre>
234 245
235<p> 246<p>
236If you used a different partitioning scheme and/or kernel image, adjust 247If you used a different partitioning scheme and/or kernel image, adjust
237accordingly. However, make sure that anything that follows a GRUB-device (such 248accordingly. However, make sure that anything that follows a GRUB-device (such
469 480
470image=/boot/<keyval id="kernel-name"/> 481image=/boot/<keyval id="kernel-name"/>
471 label=gentoo <comment># Name we give to this section</comment> 482 label=gentoo <comment># Name we give to this section</comment>
472 read-only <comment># Start with a read-only root. Do not alter!</comment> 483 read-only <comment># Start with a read-only root. Do not alter!</comment>
473 root=/dev/sda3 <comment># Location of the root filesystem</comment> 484 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"/>
476 485
477image=/boot/<keyval id="kernel-name"/> 486image=/boot/<keyval id="kernel-name"/>
478 label=gentoo.rescue <comment># Name we give to this section</comment> 487 label=gentoo.rescue <comment># Name we give to this section</comment>
479 read-only <comment># Start with a read-only root. Do not alter!</comment> 488 read-only <comment># Start with a read-only root. Do not alter!</comment>
480 root=/dev/sda3 <comment># Location of the root filesystem</comment> 489 root=/dev/sda3 <comment># Location of the root filesystem</comment>
488 497
489<note> 498<note>
490If you use a different partitioning scheme and/or kernel image, adjust 499If you use a different partitioning scheme and/or kernel image, adjust
491accordingly. 500accordingly.
492</note> 501</note>
502
503<p>
504If, while building the Linux kernel, you opted to include an initramfs to boot
505from, then you will need to change the configuration by referring to this
506initramfs file and telling the initramfs where your real root device is at:
507</p>
508
509<pre caption="LILO snippet for initramfs-enabled kernel builds">
510image=/boot/<keyval id="kernel-name"/>
511 label=gentoo
512 read-only
513 <i>real_</i>root=/dev/sda3
514 <i>initrd=/boot/<keyval id="genkernel-initrd" /></i>
515</pre>
493 516
494<p> 517<p>
495If you need to pass any additional options to the kernel, add an 518If you need to pass any additional options to the kernel, add an
496<c>append</c> statement to the section. As an example, we add the 519<c>append</c> statement to the section. As an example, we add the
497<c>video</c> statement to enable framebuffer: 520<c>video</c> statement to enable framebuffer:

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

  ViewVC Help
Powered by ViewVC 1.1.20