From nobody Wed Apr 17 21:02:52 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 4VKYKP2Qfpz5H7v9 for ; Wed, 17 Apr 2024 21:03:21 +0000 (UTC) (envelope-from freebsd@gushi.org) Received: from prime.gushi.org (prime.gushi.org [IPv6:2620:137:6000:10::142]) (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 (2048 bits) client-digest SHA256) (Client CN "prime.gushi.org", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VKYKN6TFbz4VLV for ; Wed, 17 Apr 2024 21:03:20 +0000 (UTC) (envelope-from freebsd@gushi.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (ool-18bb68ab.dyn.optonline.net [24.187.104.171]) (authenticated bits=0) by prime.gushi.org (8.17.2/8.17.2) with ESMTPSA id 43HL38Ub062707 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Apr 2024 21:03:09 GMT (envelope-from freebsd@gushi.org) DKIM-Filter: OpenDKIM Filter v2.10.3 prime.gushi.org 43HL38Ub062707 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gushi.org; s=prime2014; t=1713387790; bh=W7fhvU+cEeLYUdZR20qzzX82HmkkR2piCP2hEYHo2tI=; h=Subject:From:In-Reply-To:Date:Cc:References:To; z=Subject:=20Re:=20how=20to=20remove=20freebsd=20when=20it=20is=20r unning|From:=20"Dan=20Mahoney=20(Ports)"=20|In- Reply-To:=20<20240417221010.763153b3.freebsd@edvax.de>|Date:=20Wed ,=2017=20Apr=202024=2017:02:52=20-0400|Cc:=20hlyg=20,=0D=0A=20freebsd-questions@freebsd.org|References:=20=0D=0A=20<20240417221010.763153b3.freebsd@edvax.de>|To:= 20Polytropon=20; b=oLxjbV56BMuEe9CFiBF5EFwUEjgPEN2Qv/DlXFLo4COwFb1vPCiLyYo8DrbmS5vzI sekNm3w1pefYpgdgT7qdCAhoH2LbgKmohcB/xHeuTmHjrUUiUOw99LQGh02hx4jgME jH9DXS5Q4tTCtuw9ZeIykHzTYQL+zpe8vPC9Cgjq1Rt32jNZxXU6NoGxHxz/wbP2Dg hlTxCBcghbV1KkmtbDXRBlejs0pWYwU3NbFKeTd6CyKtdTfIEytwb1Qp7pE9qJkRbq BgLVRVSOt0VgSFrfYxxh83BhdXY1ixUXH3xGxafD/fqnTZUCO8FIanSyZrI8+/I8iS yEkOfhmqBa54g== X-Authentication-Warning: prime.gushi.org: Host ool-18bb68ab.dyn.optonline.net [24.187.104.171] claimed to be smtpclient.apple 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: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: how to remove freebsd when it is running From: "Dan Mahoney (Ports)" In-Reply-To: <20240417221010.763153b3.freebsd@edvax.de> Date: Wed, 17 Apr 2024 17:02:52 -0400 Cc: hlyg , freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <74E4B220-4443-4FEE-84D1-714A1C52BE88@gushi.org> References: <20240417221010.763153b3.freebsd@edvax.de> To: Polytropon 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:393507, ipnet:2620:137:6000::/44, country:US] X-Rspamd-Queue-Id: 4VKYKN6TFbz4VLV In the past, when dealing with ancient systems that did not have good = iloms, where I wanted to upgrade but my coworker had (for example) = provisioned too small a / filesystem, I=E2=80=99ve had luck in moving = the MFSBSD binaries into /boot and rebooting =E2=80=94 and then = ssh=E2=80=99ing into the resulting memory-file-system OS and sweeping = the floor under me, but your mileage may vary and you should probably = try this on a VM first. This is absolutely don=E2=80=99t-try-this-at-home-kids networking, but = also, something I would do as a cool presentation at a conference if = someone asked. (I=E2=80=99ll be at BSDCan, I really should have = submitted this). -Dan > On Apr 17, 2024, at 16:10, Polytropon wrote: >=20 > On Wed, 17 Apr 2024 22:21:15 +0800, hlyg wrote: >> my freebsd 13 is installed at flash disk of dell thin client >>=20 >> it doesn't work well, i want to remove it >>=20 >> "dd if=3D/dev/zero of=3D/dev/ada0 count=3D1000 ..." doesn't work, = freebsd=20 >> doesn't allow >=20 > This is intended, because you cannot write to a disk currently > in use by the OS. >=20 >=20 >=20 >> according to dell manual, i shall be able to enter bios by pressing = F2=20 >> before bsd booting so that i can set boot sequence to boot from usb=20= >> disk, but i can't enter bios, pressing F2 doesn't work >=20 > Reboot the system with a FreeBSD live system from USB stick > and then use the dd command to remove the FreeBSD installation. >=20 > But instead of removing it, why not use the installer of the > new OS you want to install to your Dell thin client to first > remove the existing partition(s), then install the new OS? > That approach should be much easier. >=20 >=20 >=20 >> it's not easy for me to open case and dismount disk >=20 > That surely isn't needed. >=20 >=20 >=20 > --=20 > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... >=20