From nobody Thu Apr 04 12:05:22 2024 X-Original-To: freebsd-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 4V9L0w2M0bz5GtXV for ; Thu, 4 Apr 2024 12:05:36 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.126.123]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4V9L0w0fL5z4178 for ; Thu, 4 Apr 2024 12:05:35 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2601:5cf:407e:55c1::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id 613AA7D0E7; Thu, 4 Apr 2024 08:05:33 -0400 (EDT) Content-Type: text/plain; charset=utf-8 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 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: changing ext. USB disk to UEFI boot From: Paul Mather In-Reply-To: Date: Thu, 4 Apr 2024 08:05:22 -0400 Cc: "Edward Sanford Sutton, III" , freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <9E39CC23-F507-428E-9B03-C0BE482BAE84@gromit.dlib.vt.edu> References: To: Matthias Apitz X-Mailer: Apple Mail (2.3774.500.171.1.1) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1312, ipnet:128.173.0.0/16, country:US] X-Rspamd-Queue-Id: 4V9L0w0fL5z4178 On Apr 4, 2024, at 5:03=E2=80=AFAM, Matthias Apitz = wrote: > This is the start of the partition table of the /dev/nda0 device > (still with Windows and looked at from the working USB-key): >=20 > # gpart list nda0 > Geom name: nda0 > modified: false > state: OK > fwheads: 255 > fwsectors: 63 > last: 1000215182 > first: 34 > entries: 128 > scheme: GPT > Providers: > 1. Name: nda0p1 > Mediasize: 272629760 (260M) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 1048576 > Mode: r0w0e0 > efimedia: = HD(1,GPT,be8d2f98-9d0b-4887-b93d-5f8fa172a50f,0x800,0x82000) > rawuuid: be8d2f98-9d0b-4887-b93d-5f8fa172a50f > rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b > label: EFI system partition > length: 272629760 > offset: 1048576 > type: efi > index: 1 > end: 534527 > start: 2048 > ... >=20 > Three things which are calling my attention: >=20 > - the size is 260M (and not 40M as in our Wiki explained) > - the label is 'EFI system partition' > - it is the first partition starting a 2048 and its 'index' is 1 For comparison, here is the start of my FreeBSD 14 system, originally = installed via the BSD installer from FreeBSD 13: # gpart list ada0 Geom name: ada0 modified: false state: OK fwheads: 16 fwsectors: 63 last: 1953525127 first: 40 entries: 128 scheme: GPT Providers: 1. Name: ada0p1 Mediasize: 272629760 (260M) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode: r1w1e2 efimedia: HD(1,GPT,652a5d29-e2ab-11ed-83ed-ac87a33b749b,0x28,0x82000) rawuuid: 652a5d29-e2ab-11ed-83ed-ac87a33b749b rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b label: efiboot0 length: 272629760 offset: 20480 type: efi index: 1 end: 532519 start: 40 [[...]] The EFI partition that resulted is at index 1, but starts at sector 40. = I believe I may have set the label manually, but don't remember exactly. = Like your example, the type is "efi" (rawtype: = c12a7328-f81f-11d2-ba4b-00a0c93ec93b). Could be that an EFI partition type at index 1 is the winning = combination, but I'll let someone with better understanding of UEFI rule = on that. :-) > I will by a new USB disk and start vom scratch and also with the above > values. I would also suggest that before trying that you just perform a standard = install of FreeBSD onto the new USB disk and see whether the resulting = partition table it lays down becomes visible to the new laptop. That = would be a method that's easily reproducible in the future. Cheers, Paul.