Formatting a USB drive to wipe away a previously installd FreeNAS

Status
Not open for further replies.

Fig Newton

Dabbler
Joined
Feb 1, 2013
Messages
18
Hello. I am wondering if someone can help me to wipe a usb flash drive?

The way I have been doing it in the past, is to put it into my windows machine (cheater I know) and use the disk management feature to format or remove partitions. Well now that option is not working. I can't shrink, or delete the volume, nor can I use the unallocated space.

From what I gather on searches, the dd command is maybe what I need to use? If that is the case, could someone help me do it? EVERYTHING I have is safely backed up on my FreeNAS server, so am not afraid to delete anything on the computer.

Any help is greatly appreciated.

Thanks, Joe
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Find your usb stick with camcontrol, here an example:

Code:
# camcontrol devlist
...
<Lexar JD FireFly 1100>            at scbus5 target 0 lun 0 (pass7,da0)


Now you know it's da0, so use dd to fill it with zeros:

Code:
dd if=/dev/zero of=/dev/da0 bs=1M


Not sure if that works while FreeNAS is mounted. Give it a try.
 
Status
Not open for further replies.
Top