windows entry for grub2

Ralf Mardorf ralf.mardorf at rocketmail.com
Tue Aug 4 11:09:29 UTC 2015


On Tue, 04 Aug 2015 03:41:08 -0700, David Benfell wrote:
>Windows lives on ada0p5. The EFI partition, presently marked so  
>grub-install will write to it, is /dev/ada0p1. What is the
>incantation for telling grub2 to do Windows?

Perhaps

menuentry "Win"{
  set root=(hd0,5)
  chainloader +1
}


This is how I edited my grub.cfg:

[rocketmouse at archlinux ~]$ grep -B3 -A2 chainloader /mnt/debi386/boot/grub/grub.cfg 

menuentry "FreeBSD"{
    set root=(hd0,msdos1)
    chainloader +1
}

menuentry "XP"{
    set root=(hd1,1)
    drivemap -s hd0 hd1
    chainloader +1
}

[rocketmouse at archlinux ~]$


No EFI involved.

Can't it be done this way?

Regards,
Ralf


More information about the freebsd-questions mailing list