From owner-freebsd-questions@freebsd.org Tue May 12 12:17:46 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7054B2ED8A9 for ; Tue, 12 May 2020 12:17:46 +0000 (UTC) (envelope-from salvatorembartolotta@libero.it) Received: from libero.it (smtp-16-i2.italiaonline.it [213.209.12.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49Lxdj1WZdz4BdR for ; Tue, 12 May 2020 12:17:44 +0000 (UTC) (envelope-from salvatorembartolotta@libero.it) Received: from oxapps-37-170.iol.local ([10.101.8.216]) by smtp-16.iol.local with ESMTPA id YTqvjr8j3GT4iYTqvjR5IV; Tue, 12 May 2020 14:17:41 +0200 x-libjamoibt: 1601 X-CNFS-Analysis: v=2.3 cv=fItHIqSe c=1 sm=1 tr=0 a=SrbWj7XZTKyNiYQ/IdT5bQ==:117 a=yU5Zgh1FNLkA:10 a=IkcTkHD0fZMA:10 a=J2-aUlzrV64A:10 a=6I5d2MoRAAAA:8 a=_yevK9wwAAAA:8 a=N7oLvZ7Lp1x1Ong6-eAA:9 a=QEXdDO2ut3YA:10 a=IjZwj45LgO3ly-622nXo:22 a=QCj3g80VS2wd9d6ItcEr:22 a=pHzHmUro8NiASowvMSCR:22 a=nt3jZW36AmriUCFCBwmW:22 Date: Tue, 12 May 2020 14:17:41 +0200 (CEST) From: salvatorembartolotta@libero.it To: Per Hedeland Cc: freebsd-questions@freebsd.org Message-ID: <1644337982.433672.1589285861644@mail1.libero.it> In-Reply-To: <1560477469.422170.1589267163580@mail1.libero.it> References: <1117249472.400830.1589220133531@mail1.libero.it> <1560477469.422170.1589267163580@mail1.libero.it> Subject: Trivially solved - Dual booting Windows 10 and FREEBSD 12.1-R on an ASUS UEFI laptop (was: Incomplete installation of 12.1-R on an Asus laptop) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.1-Rev30 X-Originating-IP: 151.63.216.26 X-Originating-Client: open-xchange-appsuite x-libjamsun: KQPZqtuioM0SARURk7QL5OPILQj5nKHP5JKGj9QjDUI= x-libjamv: 2Y993eZShPM= X-CMAE-Envelope: MS4wfGEau72mrsw635bcpDBI6NxC8NEL3OHpNPVNYubNtxYY/vpweUkPDhpnVHVqSe228N+0NBfJweTXihVds7LZPhuPFXiyErKtACfkWvhNY0qpNMVMijkY rPidRFs4wuOht00TJyoawprQAtJ1RCZejdnsItcywINcmSXBosnpIPxAjUBb/fRDDQwYTWma71HRHWS+eD6/81eUZbENQrGz5BEnnTINJkEwZSftLaMkqXrr X-Rspamd-Queue-Id: 49Lxdj1WZdz4BdR X-Spamd-Bar: ----- X-Spamd-Result: default: False [-6.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XOIP(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:213.209.8.0/21]; FREEMAIL_FROM(0.00)[libero.it]; DKIM_TRACE(0.00)[libero.it:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[libero.it,quarantine]; HAS_X_PRIO_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8660, ipnet:213.209.0.0/18, country:IT]; IP_SCORE(0.00)[ipnet: 213.209.0.0/18(-3.78), asn: 8660(-3.02), country: IT(0.03)]; FREEMAIL_ENVFROM(0.00)[libero.it]; DWL_DNSWL_NONE(0.00)[libero.it.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[libero.it:s=s2014]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[16.12.209.213.list.dnswl.org : 127.0.5.0]; FROM_NO_DN(0.00)[]; WHITELIST_SPF_DKIM(-3.00)[libero.it:d:+,libero.it:s:+]; RWL_MAILSPIKE_VERYGOOD(0.00)[16.12.209.213.rep.mailspike.net : 127.0.0.19]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 12:17:46 -0000 > Il 12 maggio 2020 alle 9.06 Salvatore Bartolotta via freebsd-questions ha scritto: > > > > Il 12 maggio 2020 alle 0.17 Per Hedeland ha scritto: > > > > On 2020-05-11 20:02, Salvatore Bartolotta via freebsd-questions wrote:> Good afternoon (in the U.S.A.), > > > I installed 12.1-R on an Asus laptop - well, almost. The partition editor, apparently, didn't see the 260MB EFI partition and wanted to create a _second_ EFI partition, in the middle of the disk,right before the rootfs (monted on /), what made little sense to me. I said "no", making the system, for the time being, unbootable. The installation completed except for that step. > > I noticed that too, and did the same, but it didn't result in anunbootable system since I had the EFI partition already set up from anearlier install (which I don't recall wanting to create an EFIpartition, but I may be wrong about that)... > > > nvd0 GPT layout:nvd0p1 260 MB EFI partitionnvd0p2 16MB M$ reserved partitionnvd0p3 256GB M$ system and data partitionnvd0p4 512KB freebsd-bootnvd0p5 2GB rootfs, mounted on /)nvd0p6 80 GB swap (on a 32GB RAM system, maybe overkill)nvd0p7 26GB varfs, mounted on /varnvd0p8 14GB tmpfs, mounted on /tmp, may be ovewrkill as wellnvd0p9 134GB usrfs, mounted on /usr....nvd0lastpartition 650MB M$ Recovery partition > > > I hope there is some simple way to complete this FreeBSD installation, by adding the appropriate booting code to the _existing_ EFI partition. > > It seems you also have a Windows installation - do you want to be ableto dual-boot? Otherwise I think you can find the info you need in theuefi(8) man page. AFAIR it pretty much amounts to "somehow"mount_msdosfs-mounting the EFI partition and copying /boot/boot1.efifrom the FreeBSD installation to /EFI/BOOT/BOOTX64.EFI(case-independent I believe, I actually have /EFI/Boot/bootx64.efi).Should be doable from either of the or (if present)choices in the installer. > > --Per Hedeland > > > Good night, > > I'd like to be able to dual-boot for the time being - multi-boot, at the end of the day. The live CD is certainly my friend, I am just not sure how I am supposed to do it. Should I install some UEFI shell/utility/... in the EFI nvd0p1 partition in order to manage the FreeBSD and Windows booting code, then install/point to the actual FreeBSD (and Windows) booting code (not /boot/boot1.efi, I suppose) ? Has anybody done anything like that? > > In the past, I had used some pay$$ware on BIOS (not EFI) machines, sure, but I'd like to be able to do everything - except for the necessary evil, the M$ Windows OS and some of its $program$ - open-source minded. > > Thanks for any help, pointer, suggestion. Good morning, the solution seems to be trivial: 1) Boot from FreeBSD live CD 2) Mount_msdosfs the GPT EFI partition (e.g. on /mnt) 3) copy (cp -i) /boot/boo1.efi from the live CD to the EFI partition, to e.g. /mnt/EFI/Boot 4) Reboot the machine, access UEFI and create the FreeBSD entry - e.g. path /EFI/Boot/boot1.efi YMMV and at boot time, pressing the appropriate key (e.g. Esc) lets you select which OS to boot. Googling has brought me a number of long and complicated discussions and recipes on various system configurations and some confusion as well; reading _1_ minute the relevant UEFI(8) man page has brought me the solution (!). Shame on me... Maybe someone with docs commit access could put or rather rewrite this "solution" somewhere in the documentation (/FAQs?/handbook?/...), with some frills added (/grub/... configuration?). Thanks all the same.