Lines 187-210
Link Here
|
187 |
</pre> |
187 |
</pre> |
188 |
|
188 |
|
189 |
<p> |
189 |
<p> |
190 |
Now we are going to write up a <path>grub.conf</path>. Below you'll find two |
190 |
Now we are going to write up a <path>grub.conf</path>. Make |
191 |
possible <path>grub.conf</path> for the partitioning example we use in this |
|
|
192 |
guide. We've only extensively commented the first <path>grub.conf</path>. Make |
193 |
sure you use <e>your</e> kernel image filename and, if appropriate, <e>your</e> |
191 |
sure you use <e>your</e> kernel image filename and, if appropriate, <e>your</e> |
194 |
initrd image filename. |
192 |
initrd image filename. |
195 |
</p> |
193 |
</p> |
196 |
|
194 |
|
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 |
|
208 |
<note> |
195 |
<note> |
209 |
Grub assigns device designations from the BIOS. If you change your BIOS |
196 |
Grub assigns device designations from the BIOS. If you change your BIOS |
210 |
settings, your device letters and numbers may change, too. For example, if you |
197 |
settings, your device letters and numbers may change, too. For example, if you |
Lines 216-222
Link Here
|
216 |
line since JFS needs to replay its log before it allows read-write mounting. |
203 |
line 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> |
221 |
default 0 |
208 |
default 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> |
Lines 234-239
Link Here
|
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> |
235 |
root (hd0,0) |
222 |
root (hd0,0) |
236 |
kernel /boot/<keyval id="kernel-name"/> root=/dev/sda3 init=/bin/bb |
223 |
kernel /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> |
225 |
initrd /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> |
Lines 243-265
Link Here
|
243 |
chainloader +1 |
232 |
chainloader +1 |
244 |
</pre> |
233 |
</pre> |
245 |
|
234 |
|
246 |
<pre caption="grub.conf for genkernel users"> |
|
|
247 |
default 0 |
248 |
timeout 30 |
249 |
splashimage=(hd0,0)/boot/grub/splash.xpm.gz |
250 |
|
251 |
title Gentoo Linux <keyval id="kernel-version"/> |
252 |
root (hd0,0) |
253 |
kernel /boot/<keyval id="genkernel-name"/> real_root=/dev/sda3 |
254 |
initrd /boot/<keyval id="genkernel-initrd"/> |
255 |
|
256 |
<comment># Only in case you want to dual-boot</comment> |
257 |
title Windows XP |
258 |
rootnoverify (hd0,5) |
259 |
makeactive |
260 |
chainloader +1 |
261 |
</pre> |
262 |
|
263 |
<p> |
235 |
<p> |
264 |
If you used a different partitioning scheme and/or kernel image, adjust |
236 |
If you used a different partitioning scheme and/or kernel image, adjust |
265 |
accordingly. However, make sure that anything that follows a GRUB-device (such |
237 |
accordingly. However, make sure that anything that follows a GRUB-device (such |
Lines 475-492
Link Here
|
475 |
<p> |
447 |
<p> |
476 |
Some sections ago we have asked you to remember the kernel-image name |
448 |
Some sections ago we have asked you to remember the kernel-image name |
477 |
you have created. In the next example <path>lilo.conf</path> we use the |
449 |
you have created. In the next example <path>lilo.conf</path> we use the |
478 |
example partitioning scheme. There are two separate parts: |
450 |
example partitioning scheme. |
479 |
</p> |
451 |
</p> |
480 |
|
452 |
|
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 |
|
490 |
<p> |
453 |
<p> |
491 |
Make sure you use <e>your</e> kernel image filename and, if appropriate, |
454 |
Make 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. |
Lines 504-514
Link Here
|
504 |
timeout=50 <comment># Wait 5 (five) seconds before booting the default section</comment> |
467 |
timeout=50 <comment># Wait 5 (five) seconds before booting the default section</comment> |
505 |
default=gentoo <comment># When the timeout has passed, boot the "gentoo" section</comment> |
468 |
default=gentoo <comment># When the timeout has passed, boot the "gentoo" section</comment> |
506 |
|
469 |
|
507 |
<comment># For non-genkernel users</comment> |
|
|
508 |
image=/boot/<keyval id="kernel-name"/> |
470 |
image=/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 |
|
513 |
image=/boot/<keyval id="kernel-name"/> |
477 |
image=/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> |
Lines 516-528
Link Here
|
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 |
|
482 |
|
519 |
<comment># For genkernel users</comment> |
|
|
520 |
image=/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 |
|
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> |
528 |
other=/dev/sda6 |
485 |
other=/dev/sda6 |