/[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.38 Revision 1.39
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.38 2013/12/18 10:13:54 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-bootloader.xml,v 1.39 2013/12/31 20:29:23 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>22</version> 11<version>23</version>
12<date>2013-12-18</date> 12<date>2013-12-31</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>
431<note> 431<note>
432If your root filesystem is JFS, you <e>must</e> add " ro" to the <c>kernel</c> 432If your root filesystem is JFS, you <e>must</e> add " ro" to the <c>kernel</c>
433line since JFS needs to replay its log before it allows read-write mounting. 433line since JFS needs to replay its log before it allows read-write mounting.
434</note> 434</note>
435 435
436<note>
437If dualboot with Windows is used, the partitioning example used in this
438book will not be sufficient (our example uses all four primary partitions
439for Linux, whereas at least one would need to be extended if Windows is
440installed on a logical partition). Please proceed with caution and consider
441the listing to be an example that needs to be modified to suit your own needs.
442</note>
443
436<pre caption="Example grub.conf"> 444<pre caption="Example grub.conf">
437<comment># Which listing to boot as default. 0 is the first, 1 the second etc.</comment> 445<comment># Which listing to boot as default. 0 is the first, 1 the second etc.</comment>
438default 0 446default 0
439<comment># How many seconds to wait before the default listing is booted.</comment> 447<comment># How many seconds to wait before the default listing is booted.</comment>
440timeout 30 448timeout 30
443splashimage=(hd0,1)/boot/grub/splash.xpm.gz 451splashimage=(hd0,1)/boot/grub/splash.xpm.gz
444 452
445title Gentoo Linux <keyval id="kernel-version"/> 453title Gentoo Linux <keyval id="kernel-version"/>
446<comment># Partition where the kernel image (or operating system) is located</comment> 454<comment># Partition where the kernel image (or operating system) is located</comment>
447root (hd0,1) 455root (hd0,1)
448kernel /boot/<keyval id="kernel-name"/> root=/dev/sda3 456kernel /boot/<keyval id="kernel-name"/> root=/dev/sda4
449 457
450title Gentoo Linux <keyval id="kernel-version"/> (rescue) 458title Gentoo Linux <keyval id="kernel-version"/> (rescue)
451<comment># Partition where the kernel image (or operating system) is located</comment> 459<comment># Partition where the kernel image (or operating system) is located</comment>
452root (hd0,1) 460root (hd0,1)
453kernel /boot/<keyval id="kernel-name"/> root=/dev/sda3 init=/bin/bb 461kernel /boot/<keyval id="kernel-name"/> root=/dev/sda4 init=/bin/bb
454 462
455<comment># The next four lines are only if you dualboot with a Windows system.</comment> 463<comment># The next four lines are only if you dualboot with a Windows system.</comment>
456<comment># In this case, Windows is hosted on /dev/sda6.</comment> 464<comment># In this case, Windows is hosted on /dev/sda6.</comment>
457title Windows XP 465title Windows XP
458rootnoverify (hd0,5) 466rootnoverify (hd0,5)
467</p> 475</p>
468 476
469<pre caption="GRUB snippet for initramfs-enabled kernel builds"> 477<pre caption="GRUB snippet for initramfs-enabled kernel builds">
470title Gentoo Linux <keyval id="kernel-version"/> 478title Gentoo Linux <keyval id="kernel-version"/>
471root (hd0,1) 479root (hd0,1)
472kernel /boot/<keyval id="kernel-version"/> <i>real_</i>root=/dev/sda3 480kernel /boot/<keyval id="kernel-version"/> <i>real_</i>root=/dev/sda4
473<i>initrd /boot/<keyval id="genkernel-initrd"/></i> 481<i>initrd /boot/<keyval id="genkernel-initrd"/></i>
474</pre> 482</pre>
475 483
476<p> 484<p>
477If you used a different partitioning scheme and/or kernel image, adjust 485If you used a different partitioning scheme and/or kernel image, adjust
492</p> 500</p>
493 501
494<p> 502<p>
495If you need to pass any additional options to the kernel, simply add them to the 503If you need to pass any additional options to the kernel, simply add them to the
496end of the kernel command. We're already passing one option 504end of the kernel command. We're already passing one option
497(<c>root=/dev/sda3</c> or <c>real_root=/dev/sda3</c>), but you can pass others 505(<c>root=/dev/sda4</c> or <c>real_root=/dev/sda4</c>), but you can pass others
498as well, such as the <c>video</c> statement for framebuffer as we discussed 506as well, such as the <c>video</c> statement for framebuffer as we discussed
499previously. 507previously.
500</p> 508</p>
501 509
502<p> 510<p>
635 643
636<note> 644<note>
637If you want to install GRUB in a certain partition instead of the MBR, 645If you want to install GRUB in a certain partition instead of the MBR,
638you have to alter the <c>setup</c> command so it points to the right 646you have to alter the <c>setup</c> command so it points to the right
639partition. For instance, if you want GRUB installed in 647partition. For instance, if you want GRUB installed in
640<path>/dev/sda4</path>, then the command becomes <c>setup (hd0,4)</c>. 648<path>/dev/sda4</path>, then the command becomes <c>setup (hd0,3)</c>.
641Few users however want to do this. 649Few users however want to do this.
642</note> 650</note>
643 651
644<p> 652<p>
645If you have more questions regarding GRUB, please consult the <uri 653If you have more questions regarding GRUB, please consult the <uri

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20