From nobody Mon Jun 30 03:19:39 2025 X-Original-To: sysinstall@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 4bVrxT5k92z5yrc1 for ; Mon, 30 Jun 2025 03:19:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bVrxT4jH0z3tSb for ; Mon, 30 Jun 2025 03:19:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751253581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d0QTF4V/Gnaus04AELP/9ZAa++hxy/5wJKnrxdeBJVw=; b=ggu+F37/7XZ71xJZwlfC20FTm+ezV4CJfRyQsLBh0FoSeq/aUddp0Jt8zH7RhoUW2QBfWy obQTOEUXY6zpbO5gT50rj1dNKGm2u8IuxpJEzlqolqo6J3+Y/92/N4FCTuBg93gB0YjWqE +B45wdnJYMj8gyAwRGlXlhr1en/p1N06mqcUaeuOId2NTyNE/dtxm21S9SpVPFXd5X5uUb CAfRdRY5vxWSwpA7LvvYy8nkh9EnfM+fyKjUiH8Ll7cPFWl02OnjklvMVm5mtVhrWAFbEm J0zi0CoS4EyQLxGB1/4lh9engJhaHmAoPTtezudRwaiiB+mOF+ezMBaKWi8R2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751253581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d0QTF4V/Gnaus04AELP/9ZAa++hxy/5wJKnrxdeBJVw=; b=I8m3qg9NbPvrG4KT28JFkhiG50HWaRhD4LvQiRSvAlaYSmNWMFnSVnnKo29Ul8XmkuBvXC 8owCxzK4UzX49/NdzIJrzOQUjLQQrZ3895dPrxJOc/8YseeYsfveXvpwffxW4TVBGT9bNb eouS2gqvs+qa40aDTvmGW6rjWD9/bjekPB2MD/Q1gAYs78a5xUxmQl++KGSv9VOx8icJjQ UJfk0CmrNhqeHNe9Adlegaa44/WkmNEMWencKVBgfhFzoQVIPr3b7ZsucIj59oHeNtegxt ipc9UL70+SGEh6TRkbe47OXBmagYrhaTX/buYWzIMTrC0kPNi6liJMMDo5Hvrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1751253581; a=rsa-sha256; cv=none; b=K/g/b5bA/cwfYA2KPq46n5GXr4qs954X74wXaiUqbUqmq0ePtXcJ5XIBfHLT6EWfpBcIU8 43LkkONZP9x6oqB8OKIs2D0Yvqgz9w8ozRnMKzUUVSQPkBkbCG2sGSdRDbHSQyPywlZITL WSLhwukRbxsmu1J6muzs+Anh+9kiImYeRELOj7IQpqMoFRHRG/320ps/poqaqFMqBLRknD 2UedDb/iYzPzKL5bxB7JMKa6FtGUCSUYlT2KpfbZmWgr0Fry0QMbyVEIDxqS2d9zpcMp4m lfpojfxRoMqEj/Wcx9a54uXfaCRM6ZSlNnwIsV2kyKKNkMXyKvhCVe6/3rqfUg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bVrxT4HSTzmm7 for ; Mon, 30 Jun 2025 03:19:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 55U3JfNY076462 for ; Mon, 30 Jun 2025 03:19:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 55U3JfmM076461 for sysinstall@FreeBSD.org; Mon, 30 Jun 2025 03:19:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: sysinstall@FreeBSD.org Subject: [Bug 287904] Most recent installer fails to flush pre-existing GPT labels Date: Mon, 30 Jun 2025 03:19:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: install X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dclarke@blastwave.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sysinstall@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Sysinstall Work List-Archive: https://lists.freebsd.org/archives/freebsd-sysinstall List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-sysinstall@freebsd.org Sender: owner-freebsd-sysinstall@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D287904 --- Comment #4 from Dennis Clarke --- Starting over and over and over again wherein I drop to a single user shell from the installer disk1.iso image ( FreeBSD 14.3-RELEASE ) and then manually use dd to wipe out the GPG labels at the beginning of the disk and ALSO the backup labels at the end of the disk :=20 #=20 # gpart show -l /dev/ada0 =3D> 40 488390552 ada0 GPT (233G) 40 532480 1 efiboot0 (260M) 532520 1024 2 gptboot0 (512K) 533544 984 - free - (492K) 534528 33554432 3 swap0 (16G) 34088960 454299648 4 zfs0 (217G) 488388608 1984 - free - (992K) # gpart show -l /dev/ada1 =3D> 40 488390552 ada1 GPT (233G) 40 532480 1 efiboot1 (260M) 532520 1024 2 gptboot1 (512K) 533544 984 - free - (492K) 534528 33554432 3 swap1 (16G) 34088960 454299648 4 zfs1 (217G) 488388608 1984 - free - (992K) # gpart destroy -F /dev/ada0 ada0 destroyed # gpart destroy -F /dev/ada1 ada1 destroyed #=20 Now nuke the beginning of the disks : #=20 # dd if=3D/dev/zero of=3D/dev/ada0 bs=3D65536 count=3D8192 status=3Dprogress 506527744 bytes (507 MB, 483 MiB) transferred 6.063s, 84 MB/s 8192+0 records in 8192+0 records out 536870912 bytes transferred in 6.477946 secs (82876725 bytes/sec) # dd if=3D/dev/zero of=3D/dev/ada1 bs=3D65536 count=3D8192 status=3Dprogress 506396672 bytes (506 MB, 483 MiB) transferred 6.063s, 84 MB/s 8192+0 records in 8192+0 records out 536870912 bytes transferred in 6.478905 secs (82864448 bytes/sec) #=20 # dmesg | grep 'ada0' ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 SATA 2.x device ada0: Serial Number 9QE68PY6 ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 238471MB (488390625 512 byte sectors) ses0: ada0,pass0 in 'Slot 00', SATA Slot: scbus0 target 0 #=20 Note the number 488390625 of sectors on the disk. GPART tells me 488390552 with a 40 block offset. Thankfully these are older and ( sort of ) smaller disks. So the trick is to read what dmesg says the real physical size of the disk is and then compute a pile of blocks backwards from the end and nuke them. $ echo '8k 488390625 65536 - pq' | dc=20 488325089 # dd if=3D/dev/zero of=3D/dev/ada0 bs=3D512 oseek=3D488325089 count=3D65536 status=3Dprogress 30327296 bytes (30 MB, 29 MiB) transferred 7.063s, 4294 kB/s=20=20=20 65536+0 records in 65536+0 records out 33554432 bytes transferred in 7.857187 secs (4270540 bytes/sec) # dd if=3D/dev/zero of=3D/dev/ada1 bs=3D512 oseek=3D488325089 count=3D65536 status=3Dprogress 30386688 bytes (30 MB, 29 MiB) transferred 7.063s, 4302 kB/s=20=20=20 65536+0 records in 65536+0 records out 33554432 bytes transferred in 7.838621 secs (4280655 bytes/sec) #=20 This was verified with a test and we see end of media hit if we add even a single 512 byte block :=20 #=20 # dd if=3D/dev/zero of=3D/dev/ada0 bs=3D512 oseek=3D488325089 count=3D65537 status=3Dprogress dd: /dev/ada0: end of deviceMiB) transferred 7.063s, 4291 kB/s=20=20=20 65537+0 records in 65536+0 records out 33554432 bytes transferred in 7.823743 secs (4288795 bytes/sec) #=20 At this point I believe that the GPT data has been wiped off the disks. Once again perform the usual install process with the installer and then drop to a shell at the end to inspect the wreckage : This shell is operating in a chroot in the new system. When finished making configuration changes, type "exit". root@triton:/ #=20 root@triton:/ # cat /etc/fstab # Device Mountpoint FStype Options Dump Pas= s# /dev/gpt/efiboot0 /boot/efi msdosfs rw 2= =20=20=20=20=20 2 /dev/mirror/swap none swap sw 0 0 root@triton:/ # root@triton:/ #=20 root@triton:/ # gpart show -l /dev/ada0 =3D> 40 488390552 ada0 GPT (233G) 40 532480 1 efiboot0 (260M) 532520 1024 2 gptboot0 (512K) 533544 984 - free - (492K) 534528 33554432 3 swap0 (16G) 34088960 454299648 4 zfs0 (217G) 488388608 1984 - free - (992K) root@triton:/ # gpart show -l /dev/ada1 =3D> 40 488390552 ada1 GPT (233G) 40 532480 1 efiboot1 (260M) 532520 1024 2 gptboot1 (512K) 533544 984 - free - (492K) 534528 33554432 3 swap1 (16G) 34088960 454299648 4 zfs1 (217G) 488388608 1984 - free - (992K) root@triton:/ #=20 The only geom mirror that exists is swap :=20 root@triton:/ # kldload geom_mirror GEOM_MIRROR: Device mirror/swap launched (2/2). root@triton:/ # gmirror status Name Status Components mirror/swap COMPLETE ada1p3 (ACTIVE) ada0p3 (ACTIVE) root@triton:/ #=20 However we do have something under /dev/gpt : root@triton:/ # ls /dev/gpt/ efiboot0 efiboot1 gptboot0 gptboot1 root@triton:/ #=20 Now I exit from the chroot shell session and reboot :=20 =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=A4Complete=E2=94=9C=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=90 =E2=94=82 Installation of FreeBSD complete! Would =E2=94= =82=20=20 =E2=94=82 you like to reboot into the installed =E2=94= =82=20=20 =E2=94=82 system now? =E2=94= =82=20=20 =E2=94=9C=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=A4=20=20 =E2=94=82[ Reboot ] [ Shutdown ] [Live System]=E2=94= =82=20=20 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=98=20=20 Loading kernel... /boot/kernel/kernel text=3D0x180078 text=3D0xd97948 text=3D0x43a46b data=3D= 0x180+0xe80 data=3D0x187590+0x478a70 0x8+0x18e940+0x8+0x1b2b03| Loading configured modules... can't find '/etc/hostid' /boot/kernel/zfs.ko size 0x5e9340 at 0x2142000 /boot/kernel/cryptodev.ko size 0x7808 at 0x272c000 /boot/kernel/geom_mirror.ko size 0x21350 at 0x2734000 /boot/entropy size=3D0x1000 staging 0x44800000 (not copying) tramp 0x4475b000 PT4 0x44752000 Start @ 0xffffffff80381000 ... EFI framebuffer information: addr, size 0xe0000000, 0x258000 dimensions 800 x 600 stride 1024 masks 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 ---<>--- Copyright (c) 1992-2023 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 14.3-RELEASE releng/14.3-n271432-8c9ce319fef7 GENERIC amd64 FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2) . . . uart0: console (38400,n,8,1) atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 . . . ZFS filesystem version: 5 ZFS storage pool version: features support (5000) hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 20,27 and 24,26 on h= daa0 pcm1: at nid 21 and 25 on hdaa0 hdacc1: at cad 0 on hdac1 hdaa1: at nid 1 on hdacc1 pcm2: at nid 4 on hdaa1 pcm3: at nid 5 on hdaa1 Trying to mount root from zfs:zroot/ROOT/default []... . . . ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 SATA 2.x device ada0: Serial Number 9QE68PY6 ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 238471MB (488390625 512 byte sectors) ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: ATA-7 SATA 2.x device ada1: Serial Number 9QE64QYY ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 238471MB (488390625 512 byte sectors) . . . GEOM_MIRROR: Device mirror/swap launched (2/2). . . . Starting file system checks: /dev/gpt/efiboot0: FILESYSTEM CLEAN; SKIPPING CHECKS Mounting local filesystems:. . . . Boot completes normally. There is no mention of anything like an EFI geom mirror for the DOS partitions. Perhaps they are never mirrored? This is the first time I have seen this work. Clearly the installer script is not clearing out the GPT label data from the disks involved. --=20 You are receiving this mail because: You are the assignee for the bug.=