Using Debug to remove all Hard drive partitions

Discussion in 'Assembly Language Programming (ALP)' started by jwshepherd, Aug 14, 2007.

  1. jwshepherd

    jwshepherd New Member

    Joined:
    Aug 13, 2007
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    VP Technology Corporation
    Location:
    Texas
    Home Page:
    http://www.officialhackers.com
    This is actually posted on Microsoft's website to remove Non-Dos partitions, but it will remove all partition tables. I have used it for years to damaged hard drives where the MBR is damaged and cannot be removed to be re-formated any other way.

    Code:
    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).
    
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I would say repair the hard drives
     
  3. jwshepherd

    jwshepherd New Member

    Joined:
    Aug 13, 2007
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    VP Technology Corporation
    Location:
    Texas
    Home Page:
    http://www.officialhackers.com
    that's what this allows you to do.
     
  4. sreeja

    sreeja New Member

    Joined:
    Nov 13, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    I'm offering this to people who need a last resort to clean their drive. I have been told by an ex-tech that there is a slight failure rate which render an already screwed up hard drive into a pretty paperweight. It has always sounded like a good trade off to me, but you have to decide for yourself because neither Myself or Dell are responsible for what you do with this.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice