|
You can zero fill any drive in linux by running this with the drive unmounted:
# dd if=/dev/zero of=[device file of drive to be zero filled]
Be very careful when using this that you get the right device file or you could wind up zeroing out your hard drive by mistake. The device file for a flash drive will usually be /dev/sdx. Sata and scsi drives also use "sdx" for device files, i.e. the first sata/scsi drive is /dev/sda, the second /dev/sdb, ect. The flash drive usually takes the next letter in sequence behind any internal hard drives. If you're not sure which device file your flash drive is on run:
# fdisk -l
for a full listing of every recognized drive on the system by device file. If you don't have any scsi or sata drives, the first usb storage device is typically /dev/sda so you would run:
# umount /dev/sda1
# dd if=/dev/zero of=/dev/sda
It will take several minutes to write zeros to every sector and exit with a block count and a message that it ran out of blocks to write to.
|