Grub not working
Tony Pursell
ajp at princeswalk.fsnet.co.uk
Fri May 6 15:54:23 UTC 2011
On Fri, 2011-05-06 at 16:49 +0100, Peter Hillier-Brook wrote:
> On 06/05/2011 16:17, dave boland wrote:
> >> Forget all that. (Bangs head on wall!). We really should read what it
> >> says 'Simply type the menu entries you want to add after this comment'
> >>
> >> So all you need is to add
> >>
> >> menuentry "WinME" {
> >> insmod part_msdos
> >> insmod fat
> >> set root=(hd0,1)
> >> chainloader +1
> >>
> >> after the line
> >>
> >> # the 'exec tail' line above.
> >>
> >> then the
> >>
> >> exec tail -n +3 $0
> >>
> >> does the rest by outputting everything after the 3rd line.
> >>
> >> Sorry if I sent you down a blind alley before.
> >>
> >> Tony
> >
> > Tony,
> >
> > So if I understand, it should look like this when done?
> >
> > #!/bin/sh
> > exec tail -n +3 $0
> > # This file provides an easy way to add custom menu entries. Simply
> > type the
> > # menu entries you want to add after this comment. Be careful not to
> > change
> > # the 'exec tail' line above.
> > # cat /etc/grub.d/40_custom
> > #!/bin/sh
> > menuentry "WinME" {
> >> insmod part_msdos
> >> insmod fat
> >> set root=(hd0,1)
> >> chainloader +1
> > }
> > EOF
>
> You're nearly there, but...
>
> The line containing cat is still commented out so you need to remove the
> hash symbol (#) and you don't need the line immediately above menuentry.
>
> Peter HB
>
No!
You don't need that. I don't know where that came from because it is
not in the original /etc/grub.d/40_custom.
Tony
More information about the ubuntu-users
mailing list