home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8928 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.8 KB

  1. Path: sparky!uunet!decwrl!access.usask.ca!ccu.umanitoba.ca!ciit85.ciit.nrc.ca!brandonu.ca!dueck
  2. Newsgroups: comp.os.msdos.programmer
  3. Subject: Re: Invalid Media:  Correction??
  4. Message-ID: <1992Aug31.155902.2191@brandonu.ca>
  5. From: dueck@brandonu.ca
  6. Date: 31 Aug 92 15:59:02 CST
  7. References: <1992Aug27.141456.24146@schunix.uucp>
  8. Organization: Brandon University, Brandon, Manitoba, Canada
  9. Lines: 47
  10.  
  11. In article <1992Aug27.141456.24146@schunix.uucp>, sonix@schunix.uucp (Duane Morin) writes:
  12. > Ok, so, I stay home for ONE sick day, and when I come back, the boss tells me
  13. > that his computer is dead.  This is what it says:  Missing Operating System.
  14. > <deleted>
  15. >
  16. > My question:  We don't want to completely reformat this disk, there's alot 
  17. > of information on it that we hope not to lose.  I would figure that the 
  18. > boot sector has been trashed, not the file allocation tables, so maybe 
  19. > we can resurrect some of the data.  Does anyone know the best way to tackle
  20. > this fairly nasty problem?  Like, can I get to the hard disk to write a new
  21. > media descriptor?  How would I go about doing that?
  22. If you have another computer with the same hard disk, use debug to
  23. transfer a copy of the boot sector from the good disk to the bad disk.
  24.  
  25. On the machine with the good disk:
  26. C:> debug
  27. -l 100 2 0 1
  28. -n bootblok
  29. -r cx
  30. -CX 0000
  31. : 0200
  32. -w
  33. Writing 00200 bytes
  34. -q
  35. c:>
  36.  
  37. What you have done is to read (l=load) into cs:100 from drive c (2)
  38. starting at block 0 for 1 block.
  39. The n command specifies a name for the w(write) and r(read) commands.
  40. The r cx command displays the contents of the CX register, which
  41. you then modify to 0200 (512) bytes.
  42. The w command writes CX bytes to the named file.
  43.  
  44. On the machine with the bad disk, read the bootblock file into
  45. memory and write it to disk
  46.  
  47. A:> debug bootblok
  48. -w 100 2 0 1
  49. -q
  50. A:>
  51.  
  52. Let me know how it works out.
  53.  
  54. Gery Dueck
  55. dueck@brandonu.ca
  56.