From nobody Mon Sep 01 09:15: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 4cFjsj72ZPz66YDW for ; Mon, 01 Sep 2025 09:16:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cFjsj4jMQz46Qv for ; Mon, 01 Sep 2025 09:16:09 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-b4f1ee2e250so796423a12.2 for ; Mon, 01 Sep 2025 02:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1756718163; x=1757322963; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PP5cOhPGF7S6jUEnvyF67QDgqxytj+923+Y84NbOVOM=; b=ANZ/09bLq3tgyZAoQ7iJRmHpDtfiXZOKp4dly2FAPjfjFf0BnEkFYUwFlGw3zYWuBo aJzJJEeMz/W7DhafMgVyRmuvQTSe8kWIuG8q6ULIZZ38WsSp6e9xfyPD66Emyi0FRZNI fp+eG/1gSHwFtG6GEU8l+2jcLdw9wfykVIu3UDxWclLB6ozh5SBiKy9SLuz7V0C+u7Um 9cNOej9dDcIqtj/kp93ITn2Jp/s5DavHPYDNOMAwKbkbfF7oD5o5kuQyNMplubuwSmjR +PcshCo4xWDF90P5GsZoWiiP+fIczL653P1OgBrcnXHIXhMfHBlPer0zc0swRwBZoj53 DiZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756718163; x=1757322963; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PP5cOhPGF7S6jUEnvyF67QDgqxytj+923+Y84NbOVOM=; b=mH0y3JVp5u7Pbv9NtOtp8cAlp6GOdc7tN8/YBi2ZCKKz51yMkJDdl5Rg594r1GZzcD /NikYG3MUf6HKgbZnIB92Uv8Y478cKcT0eMTFntPLbdhfPgfgKzfVJa1GFgptsq6ki26 fwR6V41V/1/hGM8v9RXOKvNwlSZ5mUf7H06Flg7DAo54YmT1ey59Ku94Bz1hxJY5pcZN QdOqiPDrdIdXZwjVce3W4lcg/QMVRBntDSTx/Muu2EHzi/yuj2HSTRc5J165XcCWszb7 m2C4uQoG6oHhY9SOw0NPH0VlAEromqgVH943JIwqlq5nQ02fRWvbw7NVpufKf/uJr+Cq VPsw== X-Forwarded-Encrypted: i=1; AJvYcCX67HOPjUF2xRWJb4SbqBuLUT0CT6Ufh5cPsCTZy/fCehLn2EVrUVbs+eBX6/YOHCAaB7FBnxwmHm6bTKAd6wE=@freebsd.org X-Gm-Message-State: AOJu0YwjqhLjmXwgqnGe0V2auK4ebrlPM8nZoajqDMbxokoAmUbx8Jwj q/7c5/nUT3BnTqsgZNQPYWZQk2sPqosDW4SYtGKB9e+3O5RBRIuufBT4oi5rvaM0/CCX/Qy90Zh JA95wT1dVC+qxrH4AXCp2wirrCzDLaVjrPuahHsdKyA== X-Gm-Gg: ASbGncvjowQ0cdEq0NS2k4pg8Wpm421SJw1upKEFV1wFrdXrem6lIVFlei7eOQLCK9L XcMTTMGYhSSj0jdqTp7zSss/ayLrsDzXksvkcNP5B1QIL+JrX9NEy6+PU8cGoLzF3iRBe2uLsHB /4lxps0L70h+R7MKyVtkloGhwwgjlBa24CMgzEIPVilgZwFjbypu3yz9HR59N2mHnEDlMFqucIl bkbQHqW/cqI/EtLsB8UjfUO/mXRkL0hapaIKXtkkEqUwPQOVfazEqORHtyuo7ywYVq1rA== X-Google-Smtp-Source: AGHT+IGgPvDpPpwZ9RKTT8iCJk910teda0QLWhmR5o2MrPqOcIBZntVhuBCvKTGr5sIwO0vdc6efNmrGqGo3rGyLpO0= X-Received: by 2002:a17:902:cf07:b0:240:3239:21c7 with SMTP id d9443c01a7336-24944aa1e6dmr95274585ad.37.1756718163239; Mon, 01 Sep 2025 02:16:03 -0700 (PDT) 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 References: <7b384ac0-9b24-43a4-bf63-012d745155a7@gmail.com> <18e1a7e9-07d8-43a2-96af-0acdab6c2920@gmail.com> <20250901175827.73ba0ea24812cebe2263811f@dec.sakura.ne.jp> <202509010904.58194iP2007318@critter.freebsd.dk> In-Reply-To: <202509010904.58194iP2007318@critter.freebsd.dk> From: Warner Losh Date: Mon, 1 Sep 2025 03:15:50 -0600 X-Gm-Features: Ac12FXy0utVdLXxEhEvNE61ygFUlVAZeH2Px1CEaUbRXikrgeurtc6vJsfi8EEU Message-ID: Subject: Re: Using a recovery partition to repair a broken installation of FreeBSD To: Poul-Henning Kamp Cc: Tomoaki AOKI , Graham Perrin , FreeBSD-CURRENT Content-Type: multipart/alternative; boundary="000000000000173bc1063db9d294" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cFjsj4jMQz46Qv --000000000000173bc1063db9d294 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Sep 1, 2025, 3:05=E2=80=AFAM Poul-Henning Kamp = wrote: > -------- > Tomoaki AOKI writes: > > > > > > =E2=80=A6 it would be nice to have something like 'recovery partit= ion', as > > > some OSes have. or at least some tiny fail-safe feature. having remot= e > > > machine in some distant datacenter, booting from a flashstick is > always > > > a problem. > > I thought that is what /rescue is for ? > That only works if your boot loader can read it... I've thought for a while now that maybe we should move that into a ram disk image that we fall back to if the boot loader can't read anything else... Warner > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetenc= e. > > --000000000000173bc1063db9d294 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Sep 1, 2025, 3:05=E2=80= =AFAM Poul-Henning Kamp <phk@phk.f= reebsd.dk> wrote:
--------=
Tomoaki AOKI writes:


> >=C2=A0 > =E2=80=A6 it would be nice to have something like '= ;recovery partition', as
> > some OSes have. or at least some tiny fail-safe feature. having r= emote
> > machine in some distant datacenter, booting from a flashstick is = always
> > a problem.

I thought that is what /rescue is for ?

That only works if your boot loader = can read it... I've thought for a while=C2=A0now that maybe we should m= ove that into a ram disk image that we fall back to if the boot loader can&= #39;t read anything else...

Warner


--
Poul-Henning Kamp=C2=A0 =C2=A0 =C2=A0 =C2=A0| UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| TCP/IP since RFC 956
FreeBSD committer=C2=A0 =C2=A0 =C2=A0 =C2=A0| BSD since 4.3-tahoe=C2=A0 =C2= =A0
Never attribute to malice what can adequately be explained by incompetence.=

--000000000000173bc1063db9d294--