View previous topic :: View next topic |
Author |
Message |
gosugaming n00b
Joined: 21 Jan 2005 Posts: 39
|
Posted: Fri Jan 21, 2005 4:58 am Post subject: grub.conf question [solved] |
|
|
Code: | Code Listing 4: grub.conf for genkernel users
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.4.26-r9
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3
initrd /initrd-2.4.26-gentoo-r9
# Only in case you want to dual-boot
title=Windows XP
root (hd0,5)
makeactive
chainloader +1
Note: If you use a different partitioning scheme and/or kernel image, adjust accordingly. However, make sure that anything that follows a GRUB-device (such as (hd0,0)) is relative to the mountpoint, not the root. In other words, (hd0,0)/grub/splash.xpm.gz is in reality /boot/grub/splash.xpm.gz since (hd0,0) is /boot.
If you need to pass any additional options to the kernel, simply add them to the end of the kernel command. We're already passing one option (root=/dev/hda3 or real_root=/dev/hda3), but you can pass others as well. As an example we use the vga statement for framebuffer we discussed previously:
Code Listing 5: Adding the vga-statement as a kernel option
title=Gentoo Linux 2.4.26-r9
root (hd0,0)
kernel /kernel-2.4.26-gentoo-r9 root=/dev/hda3 vga=788 |
I dont understand that? can anyone clearaify that for me...my vga is 800X600 = 32bpp or 789
Thanks
Last edited by gosugaming on Fri Jan 21, 2005 3:16 pm; edited 2 times in total |
|
Back to top |
|
|
gosugaming n00b
Joined: 21 Jan 2005 Posts: 39
|
Posted: Fri Jan 21, 2005 5:12 am Post subject: |
|
|
do i just add vga=789 at the end of the kernel command? |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2969
|
Posted: Fri Jan 21, 2005 12:07 pm Post subject: |
|
|
gosugaming wrote: | do i just add vga=789 at the end of the kernel command? |
Affirmative. Just look at the last line of your excerpt from the Handbook for an example. |
|
Back to top |
|
|
gosugaming n00b
Joined: 21 Jan 2005 Posts: 39
|
Posted: Fri Jan 21, 2005 3:16 pm Post subject: |
|
|
kimchi_sg wrote: | gosugaming wrote: | do i just add vga=789 at the end of the kernel command? |
Affirmative. Just look at the last line of your excerpt from the Handbook for an example. |
thank you |
|
Back to top |
|
|
|