A few things, first it is not really a good idea to encourage people to reformat their hard drive in general.
Before starting it is REALLY important to gather as much information as possible about your hard drive, system, and controller before even thinking about it.
You got lucky that your card was jumpered for your drive type and it wasn't an AT with CMOS settings, or an IDE drive with geometry translation, otherwise you may have gotten stuck.
Also, you may not have "corrected" the bad sector, but just mapped it as bad during the DOS format. Running SCANDISK or Norton Disk test may have done just as well without reformatting and reloading everything.
And you did not need to run that hdformat program, that is just your vendors low level format program. That did the same thing as DEBUG. Normally one goes directly from debug g=c800:5 -> fdisk -> DOS format.
Anyway for an IBM PC clone what I suggest:
Before starting, get the following information
- Hard Drive Model
- Determine if it is MFM/RLL/SCSI/IDE or other.
- Hard Drive bad track list (for MFM and RLL drives)
- Determine sector geometry or if translation is needed
- Hard Drive AT CMOS type (if applicable, and may vary between systems)
- Hard Drive Controller model
- Locate the hard drive controller's manual
- Determine if jumpers have been used to set the drives configuration on the controller and ensure they match.
Proceeded with low-level format:
Perform the low-level format as per the instruction manual (usually debug g=c800:5 or a special tool)
OR
Try using the SpeedStor tool - useful for diagnosing problems.
OR
For IDE drives, I suggest MAXLLF (really just zeros and remaps bad sectors)
Proceed with FDISK
- Must take DOS version compatibility, planned usage, and min/max partition sizes in to consideration.
Proceed with DOS Format(s)
For MFM/RLL tools, follow up with Spinrite.
For others, follow up with any other disk surface tester (Norton Utils, Scandisk, etc.)