New menu.lst on Grub version 2

Karl F. Larsen klarsen1 at gmail.com
Mon Oct 5 21:43:26 UTC 2009


Tom H 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.
> 
	I read the README in /etc/grub.d/ and I want nothing of this 
thank you.

73 Karl


-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
         Key ID = 3951B48D





More information about the ubuntu-users mailing list