From nobody Tue Apr 22 03:55:50 2025 X-Original-To: freebsd-current@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 4ZhT1M0cfGz5tW1W for ; Tue, 22 Apr 2025 03:56:07 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (udns.ultimatedns.net [24.113.41.81]) (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 "ultimatedns.net", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZhT1L2qFpz417v; Tue, 22 Apr 2025 03:56:06 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Authentication-Results: mx1.freebsd.org; dkim=fail ("headers rsa verify failed") header.d=ultimatedns.net header.s=mx99 header.b=ZscUSbIz; dmarc=pass (policy=none) header.from=bsdforge.com; spf=pass (mx1.freebsd.org: domain of bsd-lists@bsdforge.com designates 24.113.41.81 as permitted sender) smtp.mailfrom=bsd-lists@bsdforge.com Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 53M3tpfP088760; Mon, 21 Apr 2025 20:55:57 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ultimatedns.net; s=mx99; t=1745294164; x=1745294764; r=y; bh=rDWTqBqGk+cJOURmWJA75A3/DJFN2n8OVn0D5D37hVM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=ZscUSbIzRr9isU+RXGJvp0738RUpFxl9rrEbsBcY4jgkGP0dN6MqRPm+ZaqX6m7Cg OrKh/cyWuHDLSsBx2So/YyFjXhF0d8GXwQuFNZ2eB/8TJfgDsNCqknH1R88Qz0ydUs +t/GlZLvm2i4rV10ZD4u3n+xCsA0C68d6H+yrZSUvNh+7qI1imIz+9JeXIHEXzyuzf 2jS7UH49wNxX92yF9Na4crioYtXcfb171C5IlaZcc5s8U65maj5+oW0h2/6MxPS7+r 58Sh20CWRHwhtCevH0IwpLVqT34Ciuy4zqMcaUbmOtrpkRwNPmiuW8LORgDwQIwZe7 z1WrCuYHxh+ag== List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Date: Mon, 21 Apr 2025 20:55:50 -0700 From: Chris To: =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= Cc: Warner Losh , garyj@gmx.de, freebsd-current Subject: Re: New kernel doesn?t recognize ufs gpt root filesystem In-Reply-To: <1e9587924c07c24067120320fca5e118@bsdforge.com> References: <811fddf82af288d409fc5df1c5b5d958@bsdforge.com> <809aba26a8884f36ae32a6f253345b3b@bsdforge.com> <86bjsr5jv8.fsf@ltc.des.dev> <93cecfcebd42c222ec8f283b891b19dc@bsdforge.com> <20250421092301.724f623f@ernst.home> <7fdc20653ac8aa60dca6859ca81abbcd@bsdforge.com> <8634e15ruc.fsf@ltc.des.dev> <1e9587924c07c24067120320fca5e118@bsdforge.com> User-Agent: UDNSMS/17.0 Message-ID: X-Sender: bsd-lists@bsdforge.com Content-Type: multipart/mixed; boundary="=_fb8224113a580a2b419d64d03b54935a" X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: local_wl_ip X-Spamd-Result: default: False [0.50 / 15.00]; R_DKIM_REJECT(1.00)[ultimatedns.net:s=mx99]; DMARC_POLICY_ALLOW(-0.50)[bsdforge.com,none]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+ip4:24.113.41.81/29:c]; MIME_UNKNOWN(0.10)[application/pgp-keys]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; ARC_NA(0.00)[]; local_wl_ip(0.00)[24.113.41.81]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; DKIM_TRACE(0.00)[ultimatedns.net:-]; HAS_ATTACHMENT(0.00)[]; FREEMAIL_CC(0.00)[bsdimp.com,gmx.de,freebsd.org]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] X-Rspamd-Queue-Id: 4ZhT1L2qFpz417v X-Spamd-Bar: / --=_fb8224113a580a2b419d64d03b54935a Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8; format=flowed On 2025-04-21 11:46, Chris wrote: > On 2025-04-21 10:47, Dag-Erling Smørgrav wrote: >> Chris writes: >>> Can I safely move my new kernel to say, kernel.new while running my >>> current >>> kernel as kernel and rebuild the new kernel with the kernconf corrections? >> >> If you're booted into kernel.old you can just build a new kernel and run >> `make reinstallkernel` to replace the new (non-working) kernel without >> touching kernel.old. > Sorry. But this the first failed kernel in some 40+ years. So I'm now second > guessing every move I make... > > So if I break to the boot prompt and choose boot kernel.old > followed by cd /usr/src, make buildkernel KERNCONF=, > make reinstallkernel KERNCONF= > boot -s > installworld dance. I'm good to go? Just an update to indicate I answered myself and performed a $ mv /boot/kernel.old /boot/kernel (old kernel that worked) $ cp -rp /boot/kernel /boot/kernel-save (as per your advice) left broken /boot/krernel.new as is. rebooted with revised KERNCONF now in place $ cd /usr/src $ make -j4 -DALWAYS_CHECK_MAKE buildkernel KERNCONF= $ make -j4 -DALWAYS_CHECK_MAKE installkernel KERNCONF= rebooted single-user perform the installworld dance reboot build/install iwlwifi-firmware reboot now having an internet connection again build/install gpu/drm bits and reboot to a fully working system. Thanks a million to you,Warner and Gary for all the time you gave me for this. Sorry for being a bit of a PITA. :( --Chris >> >> Same if you're booted into the new kernel with some sort of workaround >> and want to preserve the old kernel. >> >> It is 100% safe to replace or rename the kernel and modules, even the >> one you're currently running. Just be aware that you may have trouble >> loading modules afterward. If for instance you boot into kernel.old and >> then rename /boot/kernel.old to /boot/kernel.works as I suggested >> earlier, you won't be able to load kernel modules until you update >> `kern.bootfile` to point to the new location of the running kernel >> (`make installkernel` does this when it renames the running kernel to >> kernel.old). >> >> DES -- sent from hardware written from and running on FreeBSD --=_fb8224113a580a2b419d64d03b54935a Content-Transfer-Encoding: 7bit Content-Type: application/pgp-keys; name=0xE512722F.asc Content-Disposition: attachment; filename=0xE512722F.asc; size=3074 -----BEGIN PGP PUBLIC KEY BLOCK----- mQENBGf/G0IBCADARuJc6IcwOe3jv7dQsP1X/EIHvCFExPbTmlMNFMXbMMccQUnV o8ayEn+wmTvPhw7uL3PDk7DQs16W1sN2b8UMFc804cVWNGtoG3rA+Np+TFEYlXJx eh5Q42VHptkuwzHKl+q2utkpRlS7uHyfjsInQAoHxLyi/wrsaZTHHhDbLLhJ5Ez0 arohQ2Q1w0M5e9rW8Fy5rpC7RpC6uO1SZMxcbdqURI/BBqxbiD1iW62cDWFkfFX+ dtaEXghFV7BIBMDSrgIunGoEfdMZgXys7O6bPWn8z0cuOZIPj4HrjoCYARyQ+sdc rjz/k06SLM/UvEZDorJhT4DbYrwMNvaPWJiPABEBAAG0HkNocmlzIDxic2QtbGlz dHNAYnNkZm9yZ2UuY29tPokBNQQQAQgAHwUCZ/8bQgYLCQcIAwIEFQgKAgMWAgEC GQECGwMCHgEACgkQVKBqaOUSci8bSwf/fK3QcTYXRMrv82HIp4SiGCSD7/bRmyWr ipv2vzknGFHxPBN4AEWIqF/U4j5oDXaodyU6xsy59Z47/lgbyzyZiVR6nmJVgZVf el/EgwnLt7ZuYGLLEhIN2pd9itJkB8PMPZrUHMWgIw8BxX5YFYGuyiNe9pGn0Coj 98t/v3fouhqksH+BpB4TBHJBBDSxSiMm66VTJX4Xcnpf0ZnQVP4GBuoyodnFBfdI wqftPLESsCC08lUhD2j7v2NRWwMi/q3ed8D6VCKPImBByY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