Ubuntu Forums (Ubuntu Linux Support)

Ubuntu Desktop => Hardware,Installation & Upgrade => Topic started by: datasoup on January 16, 2010, 09:50:00 PM

Title: New 9.10 Install - Where is menu.lst???
Post by: datasoup on January 16, 2010, 09:50:00 PM
I just re-installed Ubuntu 9.10 from CD (after downloading image from ubuntu.com).  I need to modify /boot/grub/menu.lst to change the boot order for my dual boot system, but . . . I don't see it!   I don't see /etc/event.d either.  Can anyone shed light on this one?
Title: Re: New 9.10 Install - Where is menu.lst???
Post by: datasoup on January 17, 2010, 12:26:23 AM
OK, found the answer.  Ubuntu 9.10 comes with grub2.  There is no menu.lst  The following link includes some instructions and more links.
http://ubuntuforums.org/showthread.php?p=8191211#post8191211
Title: Re: New 9.10 Install - Where is menu.lst???
Post by: datasoup on January 17, 2010, 02:44:15 AM
And finally, the actual solution.  Just like in legacy grub, there is a number that indicates which item in the menu will be the default.  That number is assigned to the variable, GRUB_DEFAULT, in /etc/default/grub (which is a regular file).  The menu is contained in /boot/grub/grub.cfg (another regular file), which is re-generated each time you execute update-grub.  The menu entries in grub.cfg are numbered from zero, so the sixth entry is actually #5.  Whew, that only took me a couple of hours to figure out.   :P  Another link I found useful:
http://ubuntuforums.org/showthread.php?t=1308669