On GameSpot: Wii Fit tells 10-year-old she's fat

Wipe PC hard drives with a bootable 'Danger' floppy

Tags: Bill Detwiler, Ted Laun, floppy disk, Efdisk, hard drive, Autoexec.bat, PC

  • Save
  • Print
  • 3

Takeaway: When you need to wipe dozens of hard drives, a correctly configured, bootable floppy can save you time and effort. Find out how to create a 'Danger' disk that uses the Efdisk and Wipe utilities to do the job automatically.


Before you trash, donate, sell, or reuse an old PC, you should always wipe its hard drive. This is often a quick process when performed on a single machine, but performing this same task on dozens of machines can take much longer. If you need to wipe the hard drives on multiple machines, a bootable floppy using the Efdisk and Wipe commands can cut the job down to size.

Necessity is definitely the mother of invention
When Ted Laun, IS technician for CNET Networks, had 80 old PCs that were being taken out of service, he needed a quick, easy, and cheap way to wipe the contents of their hard drives. Unfortunately, the following conditions limited the wiping methods he could use:
  • The PCs were being sold so he couldn't physically destroy the drives.
  • He didn't have time to physically remove the drives and use a bulk eraser or strong magnet to scramble their contents.
  • The PCs had already been removed from their locations and no longer had keyboards, monitors, or mice connected.

With these restrictions in mind, Ted decided to create a bootable floppy that would automatically delete all of a hard drive's partitions, wipe all the drive's data, delete the master boot record (MBR), and alert him when the job was finished. Because his creation would be so destructive, Ted dubbed it the "Danger" floppy and decorated it with a skull and crossbones to prevent himself or anyone else from accidentally using it.

Creating a Danger floppy
To create his Danger floppy, Ted began with a clean boot disk created using Windows 98. This boot disk contained the Command.com, Io.sys, and Msdos.sys files. He then added the Efdisk.exe command line partitioning utility, IBM's Wipe.com hard drive wiping utility, and the freeware Beep.exe program that would generate an alert when the wiping process is complete. Finally, Ted created an Autoexec.bat file that would use the aforementioned programs to wipe the hard drive. The following is the text of that Autoexec.bat file:
Efdisk /delall

echo Y | wipe 0

Efdisk /mbr

:mary
@echo off
BEEP /HE /L500
BEEP /HD /L100
BEEP /HC /L300
BEEP /HD /L300
BEEP /HE /L300
BEEP /HE /L300
BEEP /HE /L700
goto :mary


The Autoexec.bat file's first line of code uses the Efdisk utility with the /delall switch to remove all partitions on the hard drive. The second line uses the wipe utility to write zeros to the hard drive (which overwrites the drive's contents). Ted also uses the echo Y setting with the Wipe command to automatically answer "Yes" to prompts for confirmation. The third line of code uses the Efdisk utility to rewrite the drive's master boot record. The drive should then void any sensitive data that existed before the wiping process started.

To finish up the Autoexec.bat file, Ted wanted his Danger floppy to alert him when the process was complete. Since the machine wouldn't be connected to a monitor, a visual message wasn't possible. Instead, Ted used the Beep utility to generate a series of tones on the PC's internal speaker. The code for these tones is located within the Autoexec.bat's Mary subroutine and, when played, generates a rather nice rendition of "Mary Had A Little Lamb." The final line of code causes the tones to repeat indefinitely, to make sure Ted knows the process is complete.

Using the Danger floppy and potential problems
Using the Danger floppy couldn't have been easier. Ted connected a dozen or so PCs to power cables, inserted a copy of his Danger floppy, and powered on one of the systems. When the PC began to play "Mary Had A Little Lamb," he knew the hard drive had been wiped. He could then power off the machine and remove the Danger floppy.

There were a handful of machines on which the Danger floppy did not work. These machines either had broken floppy drives, didn't have the floppy drive in the boot order, or the BIOS required a keyboard to boot. When Ted encountered a machine that wouldn't run the Danger floppy, he connected a keyboard and monitor to diagnose and resolve the problem. Even with these interruptions, Ted was able to wipe the hard drives on over 80 machines in just a few hours.
  • Save
  • Print
  • 3

Print/View all Posts Comments on this article

Another usagemohamedtag80@...  | 10/14/03
10/16/03 @ 9:45amg.underwood@...  | 10/16/03
Autoclaveandypiesse@...  | 04/14/04
Not so sure it worksPKA  | 10/16/03
EFDISK VERSION 2.1 - NO MBR COMMANDdthompson1@...  | 10/17/03
What about other drives and partitions?slydogwoody@...  | 04/26/04
RE: What about other drives and partitions?griffingr  | 04/19/05
Would like to be able to download thisNick@...  | 05/08/05
This floppy has many optionsbcollins1@...  | 05/09/05
Wipe.exe only works on < 8GB hard drivesfoster_dchi@...  | 10/14/03
Interesting...Where did you find this?Bill Detwiler - TechRepublic Techrepublic | 10/14/03
Wipe.exe 8GB limitm.sullivan@...  | 10/14/03
IBM Secure Data Disposal v1.2slurpee  | 04/20/05
Created bootable floppyMrFurry  | 05/08/05
I would think...bobwelshjr@...  | 10/14/03
You Fergot One Thing....!Blau67  | 10/14/03
Nonononono....Wyrmlord  | 10/15/03
Another disk cleaning utilitymethos7997  | 10/21/03
Industrial strength "kiss this goodbye" nuker.cmtech1@...  | 01/31/04
An AnalogyMrFurry  | 05/08/05
Better Optionsgroon  | 10/15/03
I use a Gateway utility called GWSCANGNX  | 10/16/03
ActiveKill DiskRoninV  | 01/27/04
Gdisk (included with Norton Ghost)digitalrobinhood@...  | 01/31/04
GhostJshee42  | 04/20/05
GDISK - no floppies neededashembers  | 04/20/05
Best so far - Darik's Boot and Nukedidrik  | 04/25/05
Active@KillDisk looks interestingRoger  | 10/16/03
wiped.husmann@...  | 10/16/03
Boot and Nuke Disk UtilityCharles Byrne  | 10/16/03
KillDisk > wipeMehta  | 10/16/03
Gdisk is DoD complianttechno_rob  | 10/16/03
I Need to be sureRobotech  | 01/30/04
KillDiskjhome@...  | 04/20/05
Security takes time, not shortcutsuser support  | 01/30/04
wipedisk - better optionoz_ollie  | 01/30/04
sorry - forgot e-mail addressoz_ollie  | 01/30/04
Autoclave is the best!IT cowgirl  | 01/31/04
Good utilityWillsNF  | 02/01/04
Efdisk not foundbhutin  | 04/14/04
Link fixedBill Detwiler - TechRepublic Techrepublic | 04/20/05
Re: Wipe PC hard drives with a bootable 'Danger' floppymatthew_kleinmann@...  | 07/14/04
what about bad sector table?kevineaton77  | 02/22/05
Add Warning to startup diskServiceTech  | 04/19/05
Be careful searching for wipeDiskMrFurry  | 05/08/05
This is good if it can be used with USB.licensedpenetrationtester@...  | 10/15/07

What do you think?

Article Categories

Security
Security Solutions, IT Locksmith
Networking and Communications
E-mail Administration NetNote, Cisco Routers and Switches
CIO and IT Management
Project Management, CIO Issues, Strategies that Scale
Desktops, Laptops & OS
Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
Data Management
Oracle, SQL Server
Servers
Windows NT, Linux NetNote, Windows Server 2003
Career Development
Geek Trivia
Software/Web Development
Web Development Zone, Visual Basic, .NET

The PC Cracked Open

advertisement
Click Here