New to FreeNAS - Looking for line help to dd ada1

Status
Not open for further replies.

jonathanrupp

Dabbler
Joined
May 23, 2018
Messages
13
So I have a know issue with a single drive FreeNAS server where I started the setup process then got interrupted and had to stop and went back and got this lovely error;

[MiddlewareError: Unable to GPT format the disk "ada1": gpart: geom 'ada1': File exists
]

Long story short, it's been advised to try wiping the drive via the dd. So I'm looking to help with the line code to dd ada1.

Nothing we want to save.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
This command will destroy data on the drive, depending on capacity of
said drive, it will take a long time.
Code:
badblocks -ws /dev/adaX

You may find other ways to get what you want done, try google!
 

jonathanrupp

Dabbler
Joined
May 23, 2018
Messages
13
This command will destroy data on the drive, depending on capacity of
said drive, it will take a long time.
Code:
badblocks -ws /dev/adaX

You may find other ways to get what you want done, try google!

Thank you, either I'm not using the right wording or I'm google dumb. Because I keep getting wrong lines. But again, thank you.
 

jonathanrupp

Dabbler
Joined
May 23, 2018
Messages
13
Here's the common issue;

dd if=/dev/zero of=/dev/ada1

I receive the error ;

dd: /dev/ada1: Operation not permitted

Yes I understand Linux commands and basic coding. But I'm seeing there's an issue here. I should be able to issue a format wipe command.
 

Linkman

Patron
Joined
Feb 19, 2015
Messages
219
Try running it with sudo, or as root.
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
Is it mounted? FreeBSD has a failsafe for block access to live drives
 

jonathanrupp

Dabbler
Joined
May 23, 2018
Messages
13
Problem resolved, I removed the drive and reformatted it in a Windows environment. I am now able to create the bucket. However still can’t connect to the new drive on the network but that’s tomorrow’s issue.


Sent from my iPad using Tapatalk
 
Status
Not open for further replies.
Top