From owner-freebsd-fs@freebsd.org Fri Mar 30 18:15:42 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B4A8F5340D for ; Fri, 30 Mar 2018 18:15:42 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2771074086 for ; Fri, 30 Mar 2018 18:15:42 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (ezra.dcm1.omnilan.net [78.138.80.135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id w2UIFfZa002497; Fri, 30 Mar 2018 20:15:41 +0200 (CEST) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (s1.omnilan.de [217.91.127.234]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id C6538DD4; Fri, 30 Mar 2018 20:15:40 +0200 (CEST) Message-ID: <5ABE7ECC.9070109@omnilan.de> Date: Fri, 30 Mar 2018 20:15:40 +0200 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: "Alex V. Petrov" CC: freebsd-fs@freebsd.org Subject: Re: Need help for stupid: restotre efi boot References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Greylist: ACL 130 matched, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [78.138.80.130]); Fri, 30 Mar 2018 20:15:41 +0200 (CEST) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: 78.138.80.135; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Mar 2018 18:15:42 -0000 Bezüglich Alex V. Petrov's Nachricht vom 29.03.2018 22:26 (localtime): > How restore efi boot, after command: > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 Hmm, I'm not sure I understand your problem, but I guess ada0p1 might have been your "efi" partition before you corrupted it with the command you quoted. If so, just do: newfs_msdos /dev/ada0p1 mount_msdosfs /dev/ada0p1 /mnt mkdir -p /mnt/EFI/BOOT cp /boot/boot1.efi /mnt/EFI/BOOT/BOOTx64.efi echo "BOOTx64.efi" > /mnt/EFI/BOOT/startup.nsh The latter is optinal for most UEFI implementations, likewise is the partition type (which should be "!c12a7328-f81f-11d2-ba4b-00a0c93ec93b" – gpart knows it under the alias "efi"). I'd suggest you check with "gaprt show ada0" and "gpart modify -t efi -i 1 ada0" before the newfs! Hope this helps, -harry