The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Dell Hard Drive Debug ( With HDD in 2.5" Enclosure)

    Discussion in 'Dell' started by zeuskid, Dec 26, 2012.

  1. zeuskid

    zeuskid Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    Hello,
    I wanted to debug my dell hard drive, but before i could land my hands onto the debug code, i got my hard drive changed. I just wanted to know if this code will still work if i put HDD in an enclosure which i will connect via a usb cable to my laptop(i've got the old drive one with me), or i'll have to put the old HDD again into the laptop and then perform the debug??
    thanks.. :)
    The code is
    -F 200 L1000 0
    -A CS:100
    xxxx:0100 MOV AX,301
    xxxx:0103 MOV BX,200
    xxxx:0106 MOV CX,1
    xxxx:0109 MOV DX,80
    xxxx:010C INT 13
    xxxx:010E INT 20
    xxxx:0110
    -G
     
  2. dg1261

    dg1261 Notebook Geek

    Reputations:
    95
    Messages:
    88
    Likes Received:
    4
    Trophy Points:
    16
    There is absolutely no reason to ever need to use that code. That is BIOS machine code from 20-30 yrs ago. It was intended for use on a primary hard drive connected to an ancient MFM or RLL controller or on an IDE primary channel. It definitely will NOT work on a drive in an external USB enclosure.

    All the code ever did was simply zero the first sector of the hard drive. Nothing more. Since the first sector contains the master partition table, zeroing the sector has the effect of "losing" all partitions. Because of this, many people mistakenly believed the code wiped the entire hard drive, but it did nothing of the sort. All partitions are actually left intact and easily recoverable by any number of recovery utilities.

    If your goal is to wipe your old drive before getting rid of it, this code doesn't do it. Use a properly designed utility such as DBAN.

    If your goal is to "prep" a new hard drive before using it, this code serves no purpose. Bare hard drives come with all sectors, including the first, empty already.

    Finally, if there's some reason you still want to zero the first sector, the simplest way is to add it to a working Windows system (even via USB enclosure will work) and use Roadkil's free sector editor (easily located with google) to look at the first sector and manually overwrite it with zeroes. It takes all of about 30 seconds.