Grubb list menu
ubuntu at tigershaunt.com
Fri Feb 5 22:57:32 GMT 2010
> Now if I reboot, the Win item will be automatically selected.
> I've still not figured out a way to actually rearrange the menu items in
> grub2 (ala put the Win entry at the top), so hopefully someone will come
> along with that answer.
Well, lot of ways, each with their own pro's and con's.
The easy and quick way is to just go ahead edit grub.cfg file. Yes, I
know, I've seen all the dire warnings about how this is bad and not
recommended.... wah wah wah.. in reality, all this means is that the
menu order will go right back to default next time a Kernel update is
performed. As far as I'm concerned, this is a plus, since any screw ups
you make editing the grub.cfg file are just a grub-update away from
The next way is to change the order that grub-update builds the file.
The file is generated from a series of scripts (in /etc/grub.d). They
are executed in order, so just rename 10_linux 20_memtest86+
30_os-prober to 10_os-prober 20_linux 30_memtest.
(osprober is the script that finds windows and adds it to the grub.cfg
file) update-grub and your new menu should be arranged a little
And finally, there's the screw this automatic crap, I'll do it myself
method. Append the contents of your grub.cfg file to the
/etc/grub.d/40_custom file, then remove the executable permission from
all the other files in /etc/grub.d. You can then edit the contents of
40_custom to your heart's content, and when update-grub is called, it
will copy that file back into your grub.cfg file. Big warning though,
new kernels will *not* be automatically added to grub for you, you'll
have to do that yourself, as well as fixing the menu entries yourself if
one of your drive UUID's is changed somehow.
More information about the ubuntu-users