[Clug-tech] Borked flash drive?

Gustin Johnson gustin at echostar.ca
Tue Jun 23 04:20:49 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mitch Brown wrote:
<snip>

> All I want to do is to completely purge this flash drive of everything
> partitiony. Period.
> 
> How do I do this?
> 
sudo dd if=/dev/zero of=/dev/sd<X> count=1 bs=512

This will wipe out the DOS partition table (for FAT32 and NTFS file
systems).  In the coming years this will change slightly with EFS, but
you should not have to worry about that yet.

In an extreme case you could zero out the entire drive by omitting the
count and byte size options.

Either way you are only a sudo cfdisk away from a new partition.  Don't
forget to sudo mkfs.<fs_type> /dev/sdXN to create a file system on your
new partition.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpAuo8ACgkQwRXgH3rKGfPkMACgjbhQEKi7sX4tMIX1YAxhmnfi
POQAn0vBZO0/0u6GB7OOjM+TXkj0srfU
=/r11
-----END PGP SIGNATURE-----



More information about the clug-tech mailing list