Tuesday 27 March 2012

Debug script that will remove a partition from a SATA HDD


Troubleshooting a SATA HDD with 2 Un-partitioned Spaces that my standard debug script wouldn’t touch.
(MS KB 106419, Removing Non-DOS Partitions with Debug, had always worked.)
I kept digging and found another Debug script that I had seen before, but never used.

we tried it, and it wiped the SATA drive to one Unpartitioned Space.
Debug script that will remove All Partitions
Boot to RCD. Select Q to Quit to a DOS prompt.
Type in debug.
Enter in the following commands:
Blue: what you type in.
Pink: what is displayed on the screen. (DO NOT TYPE THIS IN!)
Black: this is useful information. (DO NOT TYPE THIS IN!)
================================================================
To delete partitions on a hard drive:
-------------------------------------------
- F 220 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) <---"80" for hd1, "81" for hd2 >
xxxx:010C INT 13 (ENTER)
xxxx:010E INT 20 (ENTER)
xxxx:0110 (ENTER) <-------BLANK LINE "VERY IMPORTANT" >
- G (ENTER)
Program terminated normally
- (CTRL)-(ALT)-(DEL) to reboot system
REFERENCE:  Found at Dell Knowledge Article ID 157082 & http://www.fdisk.com/fdisk/HardDrive.htm

No comments:

Post a Comment