From nobody Tue Dec 27 13:53:17 2022 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NhGMP4K8Kz1Lrk5 for ; Tue, 27 Dec 2022 13:53:21 +0000 (UTC) (envelope-from johannes-maria@t-online.de) Received: from mailout06.t-online.de (mailout06.t-online.de [194.25.134.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NhGMP1yB7z4H0d; Tue, 27 Dec 2022 13:53:21 +0000 (UTC) (envelope-from johannes-maria@t-online.de) Authentication-Results: mx1.freebsd.org; none Received: from fwd79.dcpf.telekom.de (fwd79.aul.t-online.de [10.223.144.105]) by mailout06.t-online.de (Postfix) with SMTP id 8726024752; Tue, 27 Dec 2022 14:53:18 +0100 (CET) Received: from t-online.de ([194.140.113.103]) by fwd79.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1pAAOL-0wZxy40; Tue, 27 Dec 2022 14:53:18 +0100 Received: by t-online.de (nbSMTP-1.00) for uid 1001 (using TLSv1/SSLv3 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) johannes-maria@t-online.de; Tue, 27 Dec 2022 14:53:17 +0100 (CET) Date: Tue, 27 Dec 2022 14:53:17 +0100 From: Johannes-Maria Kaltenbach To: questions@freebsd.org, Graham Perrin Subject: Re: gpart: warning (was: Unable to boot from internal hard disks on new PC) Message-ID: <20221227135317.GD11926@localhost.org> References: <20221227110800.GA11926@localhost.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) X-TOI-EXPURGATEID: 150726::1672149198-F3FEE417-12C4CCB7/0/0 CLEAN NORMAL X-TOI-MSGID: dc8346b1-0732-4c9c-90e0-b0e0a2ba5986 X-Rspamd-Queue-Id: 4NhGMP1yB7z4H0d X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3320, ipnet:194.25.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Tue, Dec 27, 2022 at 01:04:10PM +0000, Graham Perrin wrote: > On 27/12/2022 11:08, Johannes-Maria Kaltenbach wrote: > > > … FreeBSD-13.1-RELEASE-amd64-memstick.img … > > > ada0p1 freebsd-boot (512k) > > ada0p2 efi (100m) > > ada0p3 freebsd-swap (32g) > > ada0p4 freebsd-ufs (200g, 13.1 base system) > > (and further partitions for var, tmp, poudriere, home; still unused) > > > > and I tried the following > > > > gpart bootcode -b /boot/pmbr ada0 > > gpart bootcode -p /boot/gptboot -i 1 ada0 > > > > … > > > From , with added > emphasis: sorry, I overlooked this > >> … To update old ESP partitions, users should *stop using the gpart(8) > >> utility*. … I hope I understood this correctly: I deleted the partition ada0p1 (the freebsd-boot with gpart bootcode -p /boot/gptboot -i 1 ada0) and on ada0p2 (efi), mounted on /mnt, I have: |# ls -lR /mnt |total 8 |drwxr-xr-x 1 root wheel 8192 Apr 16 2018 efi | |/mnt/efi: |total 8 |drwxr-xr-x 1 root wheel 8192 Apr 16 2018 boot | |/mnt/efi/boot: |total 880 |-rwxr-xr-x 1 root wheel 892928 Dec 27 14:24 BOOTx64.efi where BOOTx64.efi is the /boot/loader.efi from the install medium. But this didn't change anything. Still I don't see the disks in bios or in the efibootmgr output. Best regards, Johannes-Maria