The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Recommendations for sanitizing NEW thumb drives by Twitchh2014-02-06 05:15:47
  Linux LiveCD if your that paranoid by Freakazoid2014-02-06 06:42:20
    Make sure no writeable media is connected. by OddParity 2014-02-06 08:54:45
Power off. Physically disconnect all hard disks, flash drives, and any other writeable media. Select a linux live CD with just the bare-bones functions: a command shell with 'dd' is all you need. The first install disk from just about any of the popular linux distributions should work for this, or use a "system rescue" live CD such as UBCD4Win. "Kitchen sink" live CDs (so named because they try to include everything but the kitchen sink, and sometime that too) like Knoppix are not ideal, as they may try to auto-mount your media.

Boot the live disk and get to the command shell. Connect the untrusted flash drive. At the command prompt, type

  dd bs=1073741824 if=/dev/zero of=/dev/sda
Note that we are writing to the whole device 'sda' and not a partition 'sda1'. Also note that the flash drive may be identified differently as 'sda' or 'sdb' or 'sdc' or 'hda' or 'hdb' depending on what live CD you use, what hardware is detected, and in what order the hardware was discovered this time the system booted. If you get an 'out of memory' error, change the block size from 'bs=1073741824' (1 GiB) to 'bs=1048576' (1 MiB).

Blanking the flash drive takes a few minutes to complete. One pass is all you need to be rid of whatever cruft was there before. Multiple passes would only shorten the life of the media. The flash drive is now safe, but not yet useful. It still needs to be partitioned [1] and it needs a file system. You can probably do both with whatever tools are included on your live CD (fdisk, cfdisk, parted, mkdosfs), but you may find it easier to use your usual partitioning and formatting tools. So at this point feel free to power off, reconnect all your harware, and boot normally to your preferred operating system.

[1] Although you could put a file system directly on the whole device, this so-called 'superfloppy' format is deprecated and may not get along well with some systems. The current practice is to have a partition table (either msdos or gpt) with only the first partition defined.

[ Reply ]
      Excellent -- Thanks! (n/t) by Twitchh2014-02-06 10:06:33
      Simplification by ripley82014-02-06 14:07:50
        IOW, Flash cells are like an etch-a-sketch. (n/t) by kahuana2014-02-06 16:58:48
          In a way, yes they are. (n/t) by ripley82014-02-06 22:44:49

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)