If you have a DOS or Windows 95 version that will not delete a non-DOS
partition OR you have a NON-DOS partition that just will not delete, you can use DOS's
DEBUG.EXE to clear the partition table of the hard drive, thus deleting all partitions on
the drive no questions asked! I recommend that you use a DOS or Windows 95 Boot disk that
has the minimum files on it:
The BOOT files of course.
DEBUG.EXE
FDISK.EXE
FORMAT.COM
SYS.COM
Here is the step by step method to follow:
CAUTION: This is non reversible so use it with care.
Run DEBUG.EXE and at the debug prompts type in the commands and press
ENTER.
Prompt (what you see) |
Command (what you type) |
Comments (what is happening) |
- | A 100 | Assemble from CS:0100 |
nnnn:0100 | INT 13 | Call interrupt 13 |
nnnn:0102 | Press the ENTER key | (nnnn in the segment address) |
- | RAX | Replace the AX register |
AX 0000 | 0301 | Write on sector |
- | RBX | Replace BX register |
BX 0000 | 0200 | Start from ES:200 |
- | F 200 L 200 0 | We want to write zeros |
- | RCX | Replace CX register |
CX 0000 | 0001 | Cylinder, 0, sector 1 |
- | RDX | Replace DX register |
DX 0000 | 0080 | First physical hard disk, head 0. (substitute 0081 for this entry if you are clearing the table on the second physical hard disk, 0082 for third etc.) |
- | P | Proceed (debug will display several lines of information.) |
- | Q | Quit back to DOS |
Run FDISK and there will be no partitions defined.
To automate the process of running the above DEBUG script I have created a diskette that will run the above scripts on eleven hard drives. Feel free to download the file DISKCLN.ZIP. Just be sure to read the README.TXT for instruction of how to setup it up and use it.