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
-
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.
Dell Hard Drive Debug ( With HDD in 2.5" Enclosure)
Discussion in 'Dell' started by zeuskid, Dec 26, 2012.