From owner-freebsd-questions@freebsd.org Wed Aug 5 16:27:35 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08F0A9B43FD for ; Wed, 5 Aug 2015 16:27:35 +0000 (UTC) (envelope-from cary@SDF.org) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.229]) by mx1.freebsd.org (Postfix) with ESMTP id C2F08D6F for ; Wed, 5 Aug 2015 16:27:34 +0000 (UTC) (envelope-from cary@SDF.org) Received: from [67.49.10.59] ([67.49.10.59:15227] helo=bsdfull.Belkin) by cdptpa-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id A5/20-11960-1A832C55; Wed, 05 Aug 2015 16:24:20 +0000 Message-ID: <55C2388B.8030803@SDF.org> Date: Wed, 05 Aug 2015 09:23:39 -0700 From: Cary User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: windows entry for grub2 References: <20150804034108.Horde._OTrFyjhdRQUM4x9GSp-yLG@mail.parts-unknown.org> <20150804132218.Horde.Gj6WjgZdXie82Uv8hJ6DwzP@mail.parts-unknown.org> <55C1418A.8020904@SDF.org> <20150804201540.Horde.tVjfGgqFaL11N353NCxJOb4@mail.parts-unknown.org> <55C1AD48.4060004@SDF.org> <20150805021737.Horde.Aqa-ovKXshlnp4t4PUEB8rw@mail.parts-unknown.org> In-Reply-To: <20150805021737.Horde.Aqa-ovKXshlnp4t4PUEB8rw@mail.parts-unknown.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 16:27:35 -0000 David Benfell wrote: > Quoting Cary : >> >> It looks ok. Not much trouble. We'll know when you reboot. >> In meantime you might also run >> >> $ grub-probe --target=fs_uuid --device /dev/ada0p5 >> >> If the command returns a uuid you might be able to use it in >> the grub.cfg that you have. > > Thanks for this. It did, and it was different from the one I'd gotten from > gpart. I was wondering why the example I'd found for directly loading Windows > had such a short UUID relative to the one I'd gotten from gpart. I now have: > > home-desktop% cat /usr/local/etc/grub.d/42_custom > menuentry "Windows 10 (loader) (on /dev/ada0p5)" --class windows --class os { > insmod part_msdos > insmod ntfs > insmod ntldr > set root='(hd0,msdos1)' > search --no-floppy --fs-uuid --set=root 3CE002FBE002BAE2 ntldr > ($root)/bootmgr } > > I'm getting closer to where I can try a reboot. But still in the middle of one > last thing. > > Glad it worked, David! The menuentry looks a lot like what I was about to suggest. Experience with EFI is too limited for me to know what should be done here. I noticed in the grub.cfg that there were many chainload entries created. Might be that one of these will work with the files installed in the efi system partition. A couple of the lines look to me like they could be removed. "insmod part_msdos" -- shouldn't it be part_gpt ?? "set root='(hd0,msdos1)' " -- again, gpt instead of msdos. And the next line sets root, thus I don't think it has to be done here. "ntldr /bootmgr" -- on last line by itself That's all. If you've got it, that will be nice to hear. Cary -- cary@sdf.org SDF Public Access UNIX System - http://sdf.org ------------------------------