Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Aug 2015 11:39:16 -0600
From:      jd1008 <jd1008@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: windows entry for grub2
Message-ID:  <55C0F8C4.904@gmail.com>
In-Reply-To: <55C0F6E7.8080603@fisglobal.com>
References:  <20150804034108.Horde._OTrFyjhdRQUM4x9GSp-yLG@mail.parts-unknown.org> <CAFYkXjm9eJVdVFkbzR9esVf8D9qeF5aLZ3Hj8rGRN2HRAb3Etg@mail.gmail.com> <20150804054948.Horde.eTUxo9WEBbZWC3ekOhhgbya@mail.parts-unknown.org> <55C0F6E7.8080603@fisglobal.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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
}





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55C0F8C4.904>