LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (http://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   cleaning up fedora's grub. (http://www.linuxquestions.org/questions/linux-distributions-5/cleaning-up-fedoras-grub-695704/)

nokuku4u 01-07-2009 06:31 PM

cleaning up fedora's grub.
 
Hey guys, i have a dual boot of xp & linux. It's working like a charm, i installed both using a usb install but the grub is a little dirty.

When turning on the computer it gives me 3 different boot options. two are for the same fedora OS. The third option is other, which directs me to windows boot options; which has two options-- boot Windows xp or boot windows xp from usb ( which works even though the usb isn't plugged in)

What command can I use to clean the grub to make it a little more user friendly? It's not a hasssle, just a messy dual boot grub options which, both have unneeded extra options.

thanks,

kuku

billymayday 01-07-2009 06:37 PM

You'll probably need to edit it manually (perhaps there is a gui interface, but I've never seen it).

Can you post your menu.lst (see /boot/grub/menu.lst)

nokuku4u 01-10-2009 12:42 PM

Thanks for the quick reply billy. Here's a list of my menu.lst for grub:

Code:

#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,5)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.29-0.18.rc0.git9.fc11.i686)
        root (hd0,5)
        kernel /vmlinuz-2.6.29-0.18.rc0.git9.fc11.i686 ro root=UUID=51c20bab-e89e-4438-9569-310b2052e8a5 rhgb quiet
        initrd /initrd-2.6.29-0.18.rc0.git9.fc11.i686.img
title Fedora (2.6.27.9-159.fc10.i686)
        root (hd0,5)
        kernel /vmlinuz-2.6.27.9-159.fc10.i686 ro root=UUID=51c20bab-e89e-4438-9569-310b2052e8a5 rhgb quiet
        initrd /initrd-2.6.27.9-159.fc10.i686.img
title Fedora (2.6.27.5-117.fc10.i686)
        root (hd0,5)
        kernel /vmlinuz-2.6.27.5-117.fc10.i686 ro root=UUID=51c20bab-e89e-4438-9569-310b2052e8a5 rhgb quiet
        initrd /initrd-2.6.27.5-117.fc10.i686.img
title Other
        rootnoverify (hd0,0)
        chainloader +1

Shoul I just delete the title,root,kernel,root=, and initrd from the lines of the ones I don't need? If it's going to cause a big problem I don't really care to leave it as-is.

thanks,
kuku

billymayday 01-10-2009 01:02 PM

Yes- delete from title to line before next title.

Note that Fedora keeps 2 old kernels by default in case anything goes wrong with an install, and even if you delete 2.6.27.5-117, next time you install a new kernel, it will keep 2.6.27.9-159.


Rgds

IndyGunFreak 01-11-2009 08:03 AM

I'm curious why after choosing "other".. he gets directed to another menu to choose Windows.

I would think there's a way to add Windows to his "main" grub Wndow, to simplify it all, but I'm far from a Grub expert. I've never had an issue like that, I've always had Debian, Ubuntu, etc, etc, just appear in 1 grub menu w/ Windows, and that was that.

IGF


All times are GMT -5. The time now is 12:53 PM.