At 05:26 PM 12/1/2011, Tom H wrote:
On Thu, Dec 1, 2011 at 1:51 PM, Brian <a...@cityscape.co.uk> wrote:
>> ### BEGIN /etc/grub.d/40_custom ###
>> # 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.
>> menuentry "DOS (loader) (on /dev/sda1)" {
>> insmod part_msdos
>> insmod fat
>> set root='(hd0,0)'
>> search --no-floppy --fs-uuid --set 351B-1CE1
>> chainloader +1
>> }
>
> Try replacing '--set' with '--set=root' in /etc/grub.d/40_custom and
> then run 'update-grub'. Reboot.
In grub2, sda1 is (hd0,1) or (hd0,msdos1) not (hd0,0) - although the
"search..." line should override the "set root..." line.
("--set" and "--set=root" are the same.)
> Incidentally, I'm not struck with the 10_linux section and wonder why
> you have
>
> set root='(/dev/sda,msdos2)'
>
> in it. We'd normally expect something like
>
> set root='(hd0,msdos2)'
I'd had grub use "/dev/sda" rather than "hd0" but I haven't understood
why it's happened. It works either way...
==============
Tom -
Thanks.
Here is the changed file.
#!/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.
menuentry "DOS (loader) (on /dev/sda1)" {
insmod part_msdos
insmod fat
# set root='(hd0,0)'
set=root
search --no-floppy --fs-uuid --set 351B-1CE1
chainloader +1
}
I probably did not understand what you said, becuase it will not boot into DOS.
Ethan
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive:
http://lists.debian.org/caodoctbed-xac4kzfh5jvwj2jt5strhao7+otjo529gb...@mail.gmail.com
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/0lvj003frsorj...@mta3.srv.hcvlny.cv.net