Date: Wed, 05 Aug 2015 09:23:39 -0700 From: Cary <cary@SDF.org> To: freebsd-questions@freebsd.org Subject: Re: windows entry for grub2 Message-ID: <55C2388B.8030803@SDF.org> In-Reply-To: <20150805021737.Horde.Aqa-ovKXshlnp4t4PUEB8rw@mail.parts-unknown.org> References: <20150804034108.Horde._OTrFyjhdRQUM4x9GSp-yLG@mail.parts-unknown.org> <CAFYkXjm9eJVdVFkbzR9esVf8D9qeF5aLZ3Hj8rGRN2HRAb3Etg@mail.gmail.com> <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>
next in thread | previous in thread | raw e-mail | index | archive | help
David Benfell wrote: > Quoting Cary <cary@sdf.org>: >> >> 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 ------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55C2388B.8030803>