windows entry for grub2

jd1008 jd1008 at gmail.com
Tue Aug 4 17:39:08 UTC 2015



On 08/04/2015 11:31 AM, Robison, Dave wrote:
> Here is my 40_custom file. I keep it in my homedir since it often gets overwritten during PCBSD updates.
>
> Put it into /usr/local/etc/grub.d/ and then run
>
> grub-mkconfig /boot/grub/grub.cfg
>
> "Works for me"(tm)
>
>
>
> [lefty] ~% cat 40_custom
> #!/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 "Windows 7" {
> insmod ntfs
> set root=(hd0,2)
> chainloader +1
> }
>
>
I checked the Linux menu entry for windows. It loads ntfs module and the 
module for msdos partitioning scheme.

menuentry 'Microsoft Windows XP Professional (on /dev/sda1)' --class 
windows --class os $menuentry_id_option 'osprober-chain-6FF7484D7DE32A09' {
         insmod part_msdos
         insmod ntfs
         set root='hd0,msdos1'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root 
--hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 
--hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  6FF7484D7DE32A09
         else
           search --no-floppy --fs-uuid --set=root 6FF7484D7DE32A09
         fi
         drivemap -s (hd0) ${root}
         chainloader +1
}




More information about the freebsd-questions mailing list