OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: mg85 on September 12, 2022, 07:21:59 PM

Title: Deleting a ZFS pool before installing?
Post by: mg85 on September 12, 2022, 07:21:59 PM
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?
Title: Re: Deleting a ZFS pool before installing?
Post by: axsdenied on September 14, 2022, 06:50:35 PM
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.
Title: Re: Deleting a ZFS pool before installing?
Post by: Taunt9930 on May 24, 2023, 04:17:08 PM
Hello,

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

Thanks.
Title: Re: Deleting a ZFS pool before installing?
Post by: 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
Title: Re: Deleting a ZFS pool before installing?
Post by: Taunt9930 on June 10, 2023, 08:36:05 PM
Thanks. Much appreciate [emoji106]

Sent from my SM-S918B using Tapatalk

Title: Re: Deleting a ZFS pool before installing?
Post by: Tismofied on August 17, 2023, 06:21:45 PM
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