Saving and Restoring the Boot Sector with Debug


********************
*   Debug Method   *
********************

  I always save a copy of my MBR so that I can
easily recover from virus infection.  It's
as easy as (from DOS, booted from floppy):
  debug
  n a:\c_mbr.bin
  L 100 2 0 1
  w
  q
Then, to restore:
  debug a:\c_mbr.bin
  w 100 2 0 1
  q 

********************
* Alternate Method *
********************

   The safest and surest way to do this is as follows:
   You will need
    a NT Boot flopppy.
     a DOS boot floppy with fdisk and format
    a valid NT repair disk
    The 3 Setup Floppies
    The original media.

1. Reinstall your old hard drive and boot up your NT system.
2. Build a NT boot floppy. (Format a blank floppy under NT and copy the files
    ntldr , ntdetect.com, and boot.ini from C:\ directory to the floppy)
3. Build a NT repair floppy using Rdisk.
4. Reboot your system using the boot  floppy created in step 2
    and be sure your system come up properly.
5. Make a backup copy of the file in C:\
6. Replace the old hard drive with the new one.
7. Boot up from the DOS boot floppy.
8. Partition and format the new hardrive.
9. Boot up from the NT Boot floppy and be sure your system comes up properly.
10. restore your files from step 5 to C:\
11. Boot the system from the hard drive and make sure DOS boots up.
12. Boot the system up using the first disk of the 3 setup floppies.
13. Follow along untill it gets to the point where you are prompted to continue
      installation or repair an existing installation. Reply R , for repair.
13. When prompted for what too repair choose boot record.
15. Keep following the prompts and insert the repair floppy when asked.
16. When setup has completed, remove all floppies and the system should boot
      up NT or DOS from the new harddrive.