General discussion


Partition Removal Debug Script

By john.mccord ·
Hello all,

I am trying to setup a Debug script to run from a bootdisk automatically. I am reading machines for reallocation and have to run the Debug script on MANY machines. I want all of the data to be removed for security reasons but I still want it to be a simple process for a "Work study" type without a lot of computer experience. Idealy I would like to boot up to a screen that allows you to select your partition type like MS-DOS or Non-DOS and then the program starts the Debug program and enters the correct values for each script. Am I asking to much???

Thanks for your help,


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

I moved this question to the correct location.

by john.mccord In reply to Partition Removal Debug S ...

Hello all,

Sorry for the confusion. I moved this question to the Technical Q&A section under "Software".

Thanks again,


Collapse -

Partition Removal Debug Script

by dkeggins In reply to Partition Removal Debug S ...

Here is a small simple debug script that will remove the partition off a hard drive in the matter of a seconds (including the time to type it in.
After the computer is booted, run DEBUG, you will then be at the minus (-) prompt. Enter as followed. Press [enter] after each line. the addresses will be displayed automatically and don't need to be typed. The xxxx is a automatically generated address location.

-F 200 L1000 0 [enter]
-A CS:100 [enter]
xxxx:0100 MOV AX,301 [enter]
xxxx:0103 MOV BX,200 [enter]
xxxx:0106 MOV CX,1 [enter]
xxxx:0109 MOV DX,80 [enter]
xxxx:010C INT 13 [enter]
xxxx:010E INT 20 [enter]
xxxx:0100 [enter]

You will get a responce "Program terminated normally"
NOTE: '80' in line 0109 is for hard drive 0. '81' is for hard drive 1.

Turn the computer off and next time you start up the computer, the hard drive will require a partition and format.

This is also good for destroying a virus fested hard drive.

Related Discussions

Related Forums