New menu.lst on Grub version 2

David Curtis dcurtis at uniserve.com
Mon Oct 5 23:12:46 UTC 2009


On Mon, 5 Oct 2009 23:22:16 +0200
Tom H <tomh0665 at gmail.com> wrote:

> On Sun, Oct 4, 2009 at 8:51 PM, Leonard Chatagnier
> <lenc5570 at sbcglobal.net> wrote:
> > On Sun, 10/4/09, Karl F. Larsen <klarsen1 at gmail.com> wrote:
> >> ### BEGIN /etc/grub.d/30_os-prober ###
> >> menuentry "Microsoft Windows XP Professional (on
> >> /dev/sda1)" {
> >>     insmod ntfs
> >>     set root=(hd0,1)
> >>     search --no-floppy --fs-uuid --set
> >> 7428ef7928ef392e
> >>     drivemap -s (hd0) ${root}
> >>     chainloader +1
> >> }
> >> Notice the ### instead of #, and the {
> >> and } which set off the actual chore grub
> >> does from the words that tell us what it
> >> is doing.
> >> This makes writing by hand an entry a chore.
> 
> > Is there a question in here that I missed or is this
> > just another of your list blogs?
> 
> It is a blog-type email, of course. However, it does raise two issues.
> 
> 1) /boot/grub/grub.cfg is not supposed to be edited - unless you feel
> like making the same edits after update-grub runs (for example, when
> grub2 is upgraded; regularly, I assume, until Karmic is out of beta).
> You can add entries in /etc/grub.d/40_custom; or you can remove the x
> bit from 10..., 20... 30... and put "all" your entries into 40... and
> end up with a fully-customized menu (and fewer ###s in grub.cfg).
> 
> 2) If you do not like the ###, you can edit the script that is called
> by update-grub - and re-edit it after a grub2 upgrade.

Also note that the file to edit for grub options is
now /etc/default/grub (splash,quiet,timeout etc.). Then, of
course, run update-grub. It should survive a grub2 upgrade or at least
give you the option to choose between your customized version or the
new one.

Dave




More information about the ubuntu-users mailing list