# Ubuntu – Wipe usb flash drive ubuntu

partitioningusb

I have made a bootable USB drive with Ubuntu installer and now I can't delete Ubuntu from it. I tried to use GParted and erased the partition table, made a new ms-dos partition table and formatted the drive as FAT32. Now the name of the drive is still Ubuntu 13.04 amd64 and a couple of files and folders from ubuntu installer are still there(eg: wubi.exe, boot and others). I can't delete them because it is read-only. I also tried the following:
open terminal

sudo fdisk /dev/sdb
command: n
partition type: p
partition number: 1
Now, the minimum value of the first sector is 2048 instead of 62 (the drive has 62 sectors /track)
Tried with 2048 as first and all remained the same as before.
I need urgent help, any command or thing that might help. Preferably not stuff like Gutmann wipe :)

Note: make sure that you have no needed data on the USB, because this is not reversible.

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo umount -l /dev/sdbx
sudo dd if=/dev/zero of=/dev/sdbx


Replace x with your device ID.

Make sure that you format the drive after that.