Quickly wipe drives not in the GUI?

Status
Not open for further replies.

jamiejunk

Contributor
Joined
Jan 13, 2013
Messages
134
The quick wipe function in the gui works great. Unfortunately I have about 60 drives i need to do a quick wipe with. Is there a way to do this from the cli?
I searched the forums and didn't really see anything. Also looked at some freebsd documentation but couldn't really figure out if i needed gparted or what.
 

JakeHiltz

Dabbler
Joined
Dec 14, 2013
Messages
37
Are all of these drives running within your FreeNAS setup right now? I do not believe there is a command to wipe all disks.
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
The quick wipe function in the gui works great. Unfortunately I have about 60 drives i need to do a quick wipe with. Is there a way to do this from the cli?
I searched the forums and didn't really see anything. Also looked at some freebsd documentation but couldn't really figure out if i needed gparted or what.
You can invoke the GUI quick wipe method from command line like this:
python /usr/local/www/freenasUI/middleware/notifier.py disk_wipe <device_name>
The <device_name> must be without the /dev/ "prefix" (e.g. to wipe /dev/ada1 run "python /usr/local/www/freenasUI/middleware/notifier.py disk_wipe ada1"). It responds "None" when everything went well (or it outputs an error message).
 
Status
Not open for further replies.
Top