wunkunn (TechnicalUser) Jan 27, 2004
How to KILL a stubborn hard drive partition
by Vernon Frazee
When you use FDISK to partition a new hard disk, it creates a partition sector beginning at cylinder 0, head 0, sector 1. When you repartition, FDISK does NOT update this entire sector. The DEBUG script below will clear this sector on the first hard drive (hard drive "0"), allowing FDISK to completely start over. This is sometimes useful for removing Disk Manager or EZ Drive and should also remove any boot sector viruses, providing that the virus is not active in memory. (Boot from a known non-infected diskette to be sure). Although this script clears only the first physical drive, you may want to temporarily unplug any other hard drives to prevent accidental data loss.
<<<<<<< Proceed At Your Own Risk! >>>>>>>
If you are ABSOLUTELY certain there is nothing on the hard drive that you need, the following simple but extremely dangerous little DEBUG routine will obliterate the partition table on hard drive 0 . . .
no questions asked.
Boot off a floppy that has the DEBUG.EXE, FDISK.EXE, and FORMAT.COM programs on it.
Load DEBUG by typing the following at any DOS prompt:
DEBUG
(and press [Enter]). At DEBUG's hyphen prompt ("-"), type in
each of the following lines under the "What you type" column, exactly as shown, and press [Enter] at the end of each line.
(Note: The "Addresses" on the left are for reference only, do not type them in. And on line 0110, just press the [Enter] key).
Addresses What you type
--------- -------------
F 200 L1000 0
A CS:100
xxxx:0100 MOV AX,0301
xxxx:0103 MOV BX,0200
xxxx:0106 MOV CX,0001
xxxx:0109 MOV DX,0080
xxxx:010C INT 13
xxxx:010E INT 20
xxxx:0110 [Enter]
G
Q
The "G" means Go and it should give you a response something like "program terminated normally". The "Q" means Quit and will exit DEBUG and land you back at the DOS prompt.
You may still be able to access the hard drive at this point but, once you attempt to reboot off the hard drive you should get an error message similar to the following:
DRIVE NOT READY.
Insert BOOT diskette in A: and press any key when ready ...
Reboot the system off of drive A:, run FDISK to repartition, and then FORMAT each partition.
<<<<<<<<<<< Proceed At Your Own Risk! >>>>>>>>>>>
--------------------------------------------------------
Copy and print - good luck!
Thank the original people who listed this (read at top).