Grub not working
Peter Hillier-Brook
phb at hbsys.plus.com
Fri May 6 15:49:49 UTC 2011
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
More information about the ubuntu-users
mailing list