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

Re: Booting into DOS

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...

Reply to: