Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I was trying to zero my usb from the option Disk Utility but could not happened. Help me out to solve this problem.

share|improve this question

closed as off topic by Web-E, Geppettvs D'Constanzo, Thomas W., jokerdino, fossfreedom Jul 26 '12 at 20:10

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

what is zeroing usb?!! – Web-E Jul 24 '12 at 17:16
Please try one-ing USB instead, that sometimes works. – izx Jul 24 '12 at 17:20
Writing zeros is not a low level format. – psusi Jul 24 '12 at 18:29
Possible duplicate of… – user68186 Jul 24 '12 at 20:39

2 Answers 2

I think I found what you mean.

Create a dummy file named junk.bin on the USB flash drive
Open a terminal and type sudo su
Type fdisk -l and locate the partition you would like to zero out
Type mkdir /tmp/ddusb
Type mount -o loop /dev/sdxx /tmp/ddsdb (replacing sdxxx with your partition)
Type dd if=/dev/zero of=/tmp/ddusb/junk.bin
Type rm /tmp/ddusb/junk.bin

You want to delete all information and make sure it is not recoverable.

Here is the source of the answer:

share|improve this answer
Why even mount it and create a file. Just write to the device instead. – Anonymous Jul 24 '12 at 20:45
dd if=/dev/zero of=/dev/sdxxx – Anonymous Jul 24 '12 at 20:46

If there are files you need to "hide", I'd recommend shred utility. Its purpose is exactly what you need - replace existing files (or drives) with zeros.

This should help you:

man shred
share|improve this answer
shred actually overwrites the file multiple times with patterns to securely erase the data. – Anonymous Jul 24 '12 at 20:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.