Re: how to remove freebsd when it is running

From: Polytropon <freebsd_at_edvax.de>
Date: Wed, 17 Apr 2024 20:10:10 UTC
On Wed, 17 Apr 2024 22:21:15 +0800, hlyg wrote:
> my freebsd 13 is installed at flash disk of dell thin client
> 
> it doesn't work well, i want to remove it
> 
> "dd if=/dev/zero of=/dev/ada0 count=1000 ..." doesn't work, freebsd 
> doesn't allow

This is intended, because you cannot write to a disk currently
in use by the OS.



> according to dell manual, i shall be able to enter bios by pressing F2 
> before bsd booting so that i can set boot sequence  to boot from usb 
> disk, but i can't enter bios, pressing F2 doesn't work

Reboot the system with a FreeBSD live system from USB stick
and then use the dd command to remove the FreeBSD installation.

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.



> it's not easy for me to open case and dismount disk

That surely isn't needed.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...