[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Booting into DOS



At 05:26 PM 12/1/2011, Tom H wrote:
On Thu, Dec 1, 2011 at 1:51 PM, Brian <ad44@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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAOdoctbED-xAc4kzfH5jvWJ2jt5sTrHaO7+OtjO529gBgAQ@mail.gmail.com



Reply to: