OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • Deleting a ZFS pool before installing?
« previous next »
  • Print
Pages: [1]

Author Topic: Deleting a ZFS pool before installing?  (Read 5821 times)

mg85

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Deleting a ZFS pool before installing?
« 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?
Logged

axsdenied

  • Full Member
  • ***
  • Posts: 199
  • Karma: 9
    • View Profile
Re: Deleting a ZFS pool before installing?
« Reply #1 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.
Logged
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

Taunt9930

  • Full Member
  • ***
  • Posts: 126
  • Karma: 3
    • View Profile
Re: Deleting a ZFS pool before installing?
« Reply #2 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.
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6925
  • Karma: 583
    • View Profile
Re: Deleting a ZFS pool before installing?
« Reply #3 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
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Taunt9930

  • Full Member
  • ***
  • Posts: 126
  • Karma: 3
    • View Profile
Re: Deleting a ZFS pool before installing?
« Reply #4 on: June 10, 2023, 08:36:05 pm »
Thanks. Much appreciate

Sent from my SM-S918B using Tapatalk

Logged

Tismofied

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 1
  • https://www.waveform.com/tools/bufferbloat?test-id
    • View Profile
Re: Deleting a ZFS pool before installing?
« Reply #5 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.7 Legacy Series »
  • Deleting a ZFS pool before installing?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2