
Quote: Originally Posted by
MilesAhead
Should be
dd if=/dev/zero of=/dev/drive bs=xx
where /dev/drive should be changed to match the mounted thumb drive
and bs=xx changed to match the block size of the thumb drive(e.g. bs=1M)
Just watch what you put for of= before you run it.
^-- What he said! That should erase the partition table entirely.
I want to provide some overly clear and specific instructions though, because you do have to be careful about finding out which device is which drive.
Run this command to list all of the drives on the system:
ls /dev |grep sd
Insert the offending USB drive at this point and run the line again:
ls /dev |grep sd
You will see more drives on the system. The ones that are new, and were not in the list the first time, are the thumbdrive. Depending how the drive is made there may be two partitions on one drive, or one partition each on two drives.
The "drives" on Linux will be lettered like this:
/dev/sda
/dev/sdb
/dev/sdc
The partitions on those drives will be lettered AND numbered like this:
/dev/sda1
/dev/sda2
/dev/sdb1
/dev/sdc1
If you have one hard drive in your computer already (suggestion: unplug it for safety), it will probably look something like this:
1: Boot computer to Live CD
2: Open a command prompt or terminal (in the Accessories tab)
3: Become root for admin access to the system:
In the terminal window:
user@ubuntu:~# sudo su -
( password will be empty, just push enter )
root@ubuntu:~# ls /dev |grep sd
sda
sda1
sdb
sdb1
sdb2
4: Insert the thumbdrive and wait a sec. It will ask if you want to open it but don't.
root@ubuntu:~# ls /dev |grep sd
sda
sda1
sdb
sdb1
sdb2
sdc <--- Thumbdrive
sdc1 <--- Partition on the Thumbdrive
sdc2 <--- Second partition on the thumbdrive
sdd <--- Possibly a second thumbdrive device?
sdd1 <--- Partition on the second thumbdrive device
5: Write zeroes to the thumbdrive.
root@ubuntu:~# dd if=/dev/zero of=/dev/sdc
If you see sdc, sdc1 and sdc2, the "raw write" will work. If you see sdc, sdc1, sdd, sdd1, it probably will not.
Don't write zeroes to /dev/sda unless you've unplugged your drive. That's your Windows OS!