The Silicon Underground
  Welcome to Dave Farquhar's Silicon Underground Tuesday, February 09 2010 @ 07:16 PM CST  
Theme Changer
Change the look of the site by selecting a theme below:

What's New
STORIES
No new stories

COMMENTS last 48 hrs
No new comments

LINKS last 2 wks
No recent new links

Google Ads

User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User

Firefox


Wiping a disk securely   
Saturday, June 01 2002 @ 11:45 PM CDT
By David L. Farquhar

Sometimes in the course of work, it's necessary to securely wipe a disk. A drive containing confidential information may require replacement. Assuming you caught the problem before the drive died for good, you can wipe it before sending it back to the manufacturer.

Programs to securely wipe a drive cost money. Sometimes big money. Fortunately, it's easy to do it with Linux.

But you don't have a Linux box and the big boss won't let you have one, you say? You don't need one. All it takes is a single-floppy distribution.

I use the asmutils demo disk, for two reasons. One, it's small, so it downloads really fast. Two, it boots up really fast. Three, the utilities are dumb and minimalist, so they don't get bogged down in the details, which is important when you're dealing with failing hardware. Four, many single-floppy distros don't provide everything you need, and the asmutils demo provides most of what you need and the means to make what it doesn't provide.

OK, that was four reasons. I'm sure you're terribly upset.

(Side note: The asmutils demo disk is 619K in size. Most of that is the Linux kernel. The rest of it is 114 standard Unix utilities, written in 32-bit x86 assembly language. A great many of them are under 1K in size. The shell is a mere 4.5K and it's surprisingly usable, with history and command completion.)

Making the asmutils disk can be a challenge. Fortunately there's a Windows disk utility that'll directly read and write those raw images.

OK, so you've got your 619K Linux distro, and you've got it written to disk. Boot a system with the to-be-wiped drive in it, then type the following commands:

mknod /dev/zero c 1 5
mknod /dev/random c 1 8
mknod /dev/urandom c 1 9

Now you can overwrite the drive.

dd if=/dev/random of=/dev/hda

This command will overwrite the primary master hard drive with garbage data.

dd if=/dev/urandom of=/dev/hda

This command will overwrite the primary master hard drive with slightly less random garbage data. It'll also be faster. It's more than sufficient for our purposes--close approximations of true randomness are needed for encryption, but they're not necessary for data destruction.

dd if=/dev/zero of=/dev/hda

This command will overwrite the primary master hard drive with zeros. Primary slave is /dev/hdb, secondary master and slave are /dev/hdc and /dev/hdd, respectively.

For a secure wipe, overwrite the drive seven times. This command line will do the trick.

dd if=/dev/urandom of=/dev/hda ; dd if=/dev/zero of=/dev/hda ; dd if=/dev/urandom of=/dev/hda ; dd if=/dev/zero of=/dev/hda ; dd if=/dev/urandom of=/dev/hda ; dd if=/dev/zero of=/dev/hda ; dd if=/dev/urandom of=/dev/hda

Yeah, it's obnoxious to type, but then you can leave it and if it takes all weekend to overwrite seven times it doesn't matter.

  [ Views: 6767 ]  


Wiping a disk securely | 3 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Dev T
Authored by: ImportedComment on Monday, June 03 2002 @ 04:27 PM CDT
Hi, for a DOS utility (about 56K in size), check out
Active @ KillDisk at http://www.killdisk.com

Dev T
Interesting DOS programs at http://www.opus.co.tt/dave
Trinidad and Tobago Computer Society at http://www.ttcsweb.org

[ Reply to This ]

Dave Farquhar
Authored by: ImportedComment on Tuesday, June 04 2002 @ 08:23 AM CDT
I should have known Dev would have something... He always does.

[ Reply to This ]

Rich~!
Authored by: ImportedComment on Wednesday, June 05 2002 @ 10:23 PM CDT
That he does

[ Reply to This ]

What's Related
  • asmutils demo disk
  • Windows disk utility
  • More by DaveF
  • More from Linux

  • Story Options
  • Mail Story to a Friend
  • Printable Story Format


  • Calendar
    February 2010
    SuMoTuWeThFrSa
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    1
    2
    3
    4
    5
    6
    Click on any day to see postings and events for that date.

    Referrals

    Top 10 by Comments
    Story TitleComments
    Cheap laptops from Sotec 253
    An untrustworthy vendor 164
    Upgrading an eMachine 125
    eMachine upgrade advice 99
    Why I dislike Microsoft 51
    Upgrade diary: Gateway G6-400 35
    And we're live 30
    The day after the Columbia 22
    How to pray 22
    CD-ROM troubleshooting under Windows 9x 20

    Top 10 Read
    Story TitleViews
    eMachine upgrade advice 75643
    Upgrading an eMachine 64116
    How to view a blg file in Windows 2000 52665
    Cheap laptops from Sotec 33313
    Upgrade diary: Gateway G6-400 20454
    Upgrade diary: Compaq Presario 7360 20422
    CD-ROM troubleshooting under Windows 9x 15935
    Finding an open-source alternative to Ghost 14718
    Big trouble 14417
    Why I dislike Microsoft 12198

    Topics
    Home
    Apache (2)
    Baseball (63)
    Book reviews (2)
    Business (1)
    Christianity (57)
    Cooking (1)
    Copyright (16)
    Curmudgeonry (1)
    Design (7)
    DOS (6)
    Games (4)
    Genealogy (11)
    General (507)
    Hardware (168)
    Health (13)
    Human Interest (9)
    Humor/Satire (19)
    Investing (4)
    Journalism (1)
    Linux (93)
    Macintosh (22)
    Model Building (3)
    Music (33)
    net.culture (40)
    Personal (88)
    Photography (6)
    Politics (3)
    Retro Computing (26)
    Saving money (73)
    Servers and Networking (19)
    Society (49)
    Software (55)
    Spam (13)
    St. Louis (23)
    This weblog (14)
    Toy trains (74)
    Troubleshooting (7)
    Useless Trivia (1)
    Vendors (6)
    Video (21)
    Viruses (12)
    Windows (120)
    Writing (16)

    Older Stories
    Saturday 03-Oct
  • I just downloaded Microsoft Security Essentials (0)
  • My last day at Initech (0)

  • Wednesday 30-Sep
  • 401(K) Paperwork (0)

  • Sunday 27-Sep
  • First impressions: HP Mini 110 (1)

  • Saturday 26-Sep
  • Getting more screen real estate in Firefox (0)

  • Wednesday 23-Sep
  • Barfy. (4)

  • Monday 21-Sep
  • Why I quit my job (2)

  • Saturday 12-Sep
  • Slimming down Windows XP for SSDs and nettops (0)

  • Thursday 10-Sep
  • And... bailing out. (3)

  • Friday 04-Sep
  • End of the innocence (0)

  • Who's Online
    Guest Users: 6

    Syndicate!
    Get your RSS/RDF fix here.

    List of all stories
    Click here for a list of all the entries on this site


    Created this page in 0.93 seconds


     Copyright © 2010 Dave Farquhar's Silicon Underground
     All trademarks and copyrights on this page are owned by their respective owners.

    Powered by GL 1.3.x