Deleting a ZFS pool before installing?

Started by mg85, September 12, 2022, 07:21:59 PM

Previous topic - Next topic
When performing a clean install of OPNsense, selecting ZFS as partition layout I receive a message indicating the pool name is in use. It asks me to go ahead using the existing one (zroot), but instead it refers to 'xzroot'. I want to clean out the whole partition table and start from scratch (basically formatting as if it was a new disk).

Is there any way I can do this during the installation process?

You can only use what's in front of you but an easy thing to do would be to run the OPNsense live (meaning boot from USB but don't log in as "installer") and use command line to wipe the disk manually.
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

Hello,

Would anyone be able to give a bit more detail on how to do this? Commands to run?

Thanks.

Find which device is the disk you want to install to. You can use "camcontrol devlist" for that. Let's assume the disk device is "ada0".

Then proceed like: "dd if=/dev/zero of=/dev/ada0 bs=1m"

This will take a while.

HTH,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Thanks. Much appreciate [emoji106]

Sent from my SM-S918B using Tapatalk


Quote from: Patrick M. Hausen on May 24, 2023, 04:58:23 PM
Find which device is the disk you want to install to. You can use "camcontrol devlist" for that. Let's assume the disk device is "ada0".

Then proceed like: "dd if=/dev/zero of=/dev/ada0 bs=1m"

This will take a while.

HTH,
Patrick

sorry for hijacking the thread but No matter how many times I do this, I can't seem to wipe the partition.

this my issue
https://forum.opnsense.org/index.php?topic=35453.msg172187#msg172187