# How to wipe a USB drive?

**URL:** <https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721>\
**Category:** Factual Questions\
**Created:** [March 27, 2007, 6:57pm UTC](https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721 "2007-03-27T18:57:41Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![drachillix](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@drachillix](https://boards.straightdope.com/u/drachillix)\
**Post date:** [March 28, 2007, 5:13am UTC](https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721/21 "2007-03-28T05:13:04Z")

</div>

[QUOTE=pulykamell]  
Wouldn’t a low-level format be good enough to keep the average schmoe out? I know that with my USB thumbdrive, at least, if I just do a normal format, my recovery utilities can get at the data. If I do a low-level format, none of my recovery programs can find anything.  
[/QUOTE]

Granted, I’m a PC shop but I have recovered from a machine with no valid partitions. Decent software does not care about the formatting it just nitpicks the whole surface of the drive looking for patterns that look like files.

---

<div class="post-metadata">

**Author:** ![si\_blakely](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@si\_blakely](https://boards.straightdope.com/u/si_blakely)\
**Post date:** [March 28, 2007, 7:35am UTC](https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721/22 "2007-03-28T07:35:36Z")

</div>

[QUOTE=Absolute]  
I don’t know - if you fill up the entire drive with data, the wear-levelling algorithm will have no choice but to use every block.  
[/QUOTE]  
Only in a perfect world 😛  
Unless you know completely how the wear-levelling algorithm works, and it works correctly, you can’t make the assumption. Eventually, with enough overwrites, it will.

[QUOTE=Absolute]

You could avoid the problem entirely by encrypting the data that you place on the drive, using something like Truecrypt.  
[/QUOTE]  
TrueCrypt is great, but it requires Admin rights on a PC to install a driver for use (even in Traveller mode), as do most other encrypted USB devices.

[QUOTE=Pulykamell]  
I was under the impression that a low-level format (which takes about 2-3 minutes) completely overwrites all Flash card sectors with either 0s or 1s. This is opposed to the normal format which just seems to clear the directory and nothing else. Is my understanding incorrect?  
[/QUOTE]  
\*Low-level format \*is a nebulous phrase. A _Format_ overwrites all sectors and identifies bad sectors (remapping them), a _Quick Format_ resets the Allocation Tables and directory entries. A _Low-level format_ was a manufacturers supplied method of rewriting the disk and the tracking information that was used to keep the heads aligned. These utilities are no longer used with improvements to drives.

A **Format** may not overwrite all data on a Flash device due to the way File Systems are handled on Flash memory, and the wear-levelling system. Sectors are not static locations im the Flash, but get dynamically mapped as they get used, so one sector _may_ get overwritten more than once, and another not at all. It is unlikely, but possible. Multiple formats will work eventually here as well, but how many is anyones guess. 2 or 3, probably.

Si

---

<div class="post-metadata">

**Author:** ![si\_blakely](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@si\_blakely](https://boards.straightdope.com/u/si_blakely)\
**Post date:** [March 28, 2007, 7:39am UTC](https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721/23 "2007-03-28T07:39:43Z")

</div>

[QUOTE=drachillix]  
Granted, I’m a PC shop but I have recovered from a machine with no valid partitions. Decent software does not care about the formatting it just nitpicks the whole surface of the drive looking for patterns that look like files.  
[/QUOTE]  
Indeed, this is true, but Flash devices are not linear sector-based devices like drives - A drive overwrites a sector, flash devices reallocate sectors to unused cells. With special tools you can get past the reallocation mechanism to the real cells, and pick through deleted and overwritten data.

Si

---

<div class="post-metadata">

**Author:** ![CookingWithGas](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cookingwithgas/32/485_2.png) [@CookingWithGas](https://boards.straightdope.com/u/CookingWithGas)\
**Post date:** [March 28, 2007, 1:15pm UTC](https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721/24 "2007-03-28T13:15:30Z")

</div>

[QUOTE=cornflakes]  
I am only moderately hardware savvy, but why not throw it in the microwave for a few minutes? Thumb drives are cheap.  
[/QUOTE]  
You may want to read the thread instead of just the subject line.

---

<div class="post-metadata">

**Author:** ![jjimm](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jjimm](https://boards.straightdope.com/u/jjimm)\
**Post date:** [March 28, 2007, 1:26pm UTC](https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721/25 "2007-03-28T13:26:58Z")

</div>

Related Q: call me stupid, but how do solid-state drives store data? They’re not magnetic, are they? (And if so, wouldn’t this render the “overwrite seven times” obsolete?)

---

<div class="post-metadata">

**Author:** ![si\_blakely](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@si\_blakely](https://boards.straightdope.com/u/si_blakely)\
**Post date:** [March 28, 2007, 1:34pm UTC](https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721/26 "2007-03-28T13:34:22Z")

</div>

[QUOTE=jjimm]  
Related Q: call me stupid, but how do solid-state drives store data? They’re not magnetic, are they? (And if so, wouldn’t this render the “overwrite seven times” obsolete?)  
[/QUOTE]  
Flash memory uses trapped electrons in an insulated “cell” - once it is overwritten, the data has gone, but (as I explained upthread) the wear-levelling algorithm means that rewriting a piece of data (like a file) does not mean overwriting the old data - the old cells are added to the used list and new cells allocated to the data.

Si

---

<div class="post-metadata">

**Author:** ![gromehown](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gromehown](https://boards.straightdope.com/u/gromehown)\
**Post date:** [March 28, 2007, 9:32pm UTC](https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721/27 "2007-03-28T21:32:52Z")

</div>

What if you just make a sound or movie file the same size as the flashdrive, and copy that on after deleting all other content, and then deleting it?

[Previous page](https://boards.straightdope.com/t/how-to-wipe-a-usb-drive/397721.md?page=1)
