home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / apple2 / 17875 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  3.4 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!sol.ctr.columbia.edu!destroyer!ncar!csn!copper!slate!gdesroch
  2. From: gdesroch@slate.mines.colorado.edu (DESROCHERS GARY FREDERIC)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: HELP!  In need of a GS/OS guru!
  5. Message-ID: <1992Jul24.231745.8940@slate.mines.colorado.edu>
  6. Date: 24 Jul 92 23:17:45 GMT
  7. References: <1992Jul24.145509.17563@bnr.ca>
  8. Organization: Colorado School of Mines
  9. Lines: 77
  10.  
  11. gopher@bnr.ca (Jeff Robertson) writes:
  12. : HELP!
  13. : So.  What I need is some kind GS/OS guru to bring me up to
  14. : date.  What does the Key Pointer of a type $5 file point to?
  15. : Or, more generally, how the heck can I get my file back?
  16. : It wasn't huge, but I'm more interested in not having a
  17. : corrupt file on my drive.  (And the pursuit of knowledge...)
  18. : Oh yes, I'm running System 6 (of course).
  19.  
  20.      I not a guru but I try <grunt>:
  21.  
  22.      The filetype of $05 is a pascal data file.  The key pointer to this
  23. file depends on what type of file it is.  For a seedling file the key block
  24. is the file itself.  Since yours seems to be bigger then that I would say
  25. it is a sapling file.  It doesn't sound big enough for a tree file.  This
  26. means that your key pointer points to an index block.  The index block is
  27. set up so that each block (starting with what used to be your seedling
  28. block) is listed sequentially.  It does not put it in low byte high byte
  29. order though.  The first block's low part of the block number is stored in
  30. the first half of the block and the high part of the block number is stored
  31. in the upper part of the block.  For instance:
  32.  
  33. start of block 010A:
  34.  
  35. First Half
  36. 09 0B 0C 00 00 00 00 00 
  37.  
  38. -----------------------
  39.  
  40. Second Half
  41. 01 01 01 00
  42.  
  43.      This file has 4 blocks to it.  The index block 010A, the first block
  44. 0109, the second block 010B, and the third block 010C.  This is what it may
  45. look like on an unfragmented disk.  A very fragmented may have block
  46. numbers from all over the disk.  The Key pointer of the file would point to
  47. block 010A.
  48.  
  49.      As to how to get it back?  I don't know what the condition of the disk
  50. is.  Sounds like your index may have been overwritten.  If it is only the
  51. index block then you can locate all the blocks manually (of course, you can
  52. try to get a utility that does this for you.) and save them.  Then format a
  53. knew disk and then create a new file header, index block, save the file
  54. blocks to what you said they were in the index block and then update the
  55. disk volume bitmap.  Then copy it to a safe place and try it out.  If it
  56. works then reformat the trial disk.  Do not attemp this on the hard disk.
  57. Also, a good suggestion would be to format your hard (startup? is it a hard
  58. disk?) disk.  If you had to reinstall stuff it is probably very corrupt.
  59. (just a hunch.)
  60.  
  61.     Your worry about a messed up disk is pretty good.  Don't think it is
  62. the only file.  If you had to reinstall stuff then your drive is very
  63. messed up.
  64.  
  65.      I hope this helps.
  66.  
  67. Gary
  68. gdesroch@slate.mines.colorado.edu
  69.  
  70.  
  71. : Please post any suggestions to the net, or mail to my
  72. : account - gopher@bnr.ca
  73. : Thanks for your time...
  74. : ---
  75. : Jeff Robertson
  76. : 4A Systems Design Engineering
  77. : University of Waterloo / Bell Northern Research
  78. : "But what does it all _mean_? / What?  The custard?"
  79. -- 
  80.  ---------------------------------------------------------------------
  81.  Gary F. Desrochers        INTERNET: gdesroch@slate.mines.colorado.edu
  82.                            GENIE:    G.Desrochers
  83.  Any comments/complaints on Disk Witch tell me.  Apple II Forever!!
  84.