Debug Script for removing partitions
Home Up Search Trademarks how to use

For best results: this site requires that cookies be enabled for proper operation - see Legal Page for more info

 

Select Any of These

Debug Script for removing partitions

LAST UPDATED: 08 November 2007 18:20:42 -0600

Translate this page      using FreeTranslation.com

Using these scripts you are assuming 100% of the risk.  If either of these scripts screw up your system, Don't call or email me as you have been warned!

These scripts WILL render your Hard Drive inaccessible!

The person that gave this script, Sam Lea of Fort Worth, Texas

DOS partitions:

Boot to Win98SE startup disk (It is the best OS made boot disk ever) (Don't have one? Download it here on our downloads page!). Type in debug at the A: prompt.

A:/debug (ENTER)

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 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) <---"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

Non DOS partitions:

There are two ways to use the following Debug script:

Run Debug and type the Debug commands from the center column of Table 1 at the corresponding Debug prompt. (The left column of the table shows the prompts that are displayed by Debug. You do not need to type the comments in the right column.)

-or-

Type the command in the center column of Table 1 into a file using a text editor such as MS-DOS Editor and then use input redirection to feed the resulting file into Debug. For example, if you typed the commands into a file called HDPART.SCR, you would clear your partition table by typing the following at the MS-DOS command prompt and then pressing ENTER:

debug < hdpart.scr

  Table 1:  Debug Script to Erase Hard-Disk Partition Table
   ----------------------------------------------------------------
      Debug        Enter Debug       Comments
      Prompts      Commands
   ----------------------------------------------------------------
      -            A 100             Assemble from CS:0100.

      nnnn:0100    INT 13            Call interrupt 13.

      nnnn:0102    press the         (nnnn in the segment address).
                   ENTER key

      -            RAX               Replace 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 if you are
                                     clearing the third physical
                                     hard disk, and so forth).

      -            P                 Proceed (Debug will display
                                     several lines of information).

      -            Q                 Quit Debug.
 

Questions?

Just Check out some of our sponsors

Shop at BestPrices.Com!

web server downtime monitoring

HALO Computer Technology

COPYRIGHT 1998 - 2008 All names used are Trademarks of the respective companies

Home ] Up ]

Send mail to CompanyWebmaster  with questions or comments about this web site.
Copyright © 2007 HALO Computer Technology
Last modified: 02/14/08