home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / xenix / sco / 3547 < prev    next >
Encoding:
Internet Message Format  |  1992-12-27  |  3.0 KB

  1. Xref: sparky comp.unix.xenix.sco:3547 biz.sco.general:4849
  2. Newsgroups: comp.unix.xenix.sco,biz.sco.general
  3. Path: sparky!uunet!gatech!destroyer!mudos!mju
  4. From: mju@mudos.ann-arbor.mi.us (Marc Unangst)
  5. Subject: Re: Data recovery from a tar tape
  6. Message-ID: <BzwEq8.FGq@mudos.ann-arbor.mi.us>
  7. Date: Sun, 27 Dec 1992 03:22:55 GMT
  8. References: <BzvvLv.2Mz@mudos.ann-arbor.mi.us> <Bzw6t7.845@world.std.com>
  9. Organization: The Programmer's Pit Stop, Ann Arbor MI
  10. Lines: 51
  11.  
  12. In article <Bzw6t7.845@world.std.com> apl@world.std.com (Anthony P Lawrence) writes:
  13. >I didn't know that: I assumed that "good" data could be found somewhere
  14. >on the tape.
  15. >
  16. >'Splain me this: if the tape doesn't go to the end, and it (as far as
  17. >I know) rewinds without passing through to the end, how does data
  18. >get damaged?
  19.  
  20. Okay.  QIC tape drives use a recording format with multiple tracks in
  21. a serpentine arrangement.  Thus, the tracks on a QIC tape are laid out
  22. like this (arrows indicate the direction of tape movement):
  23.  
  24. BOT----------------->------------------->------------------->---------------
  25.    -----------------<-------------------<-------------------<---------------
  26.    ----------------->------------------->------------------->---------------
  27. EOT-----------------<-------------------<-------------------<---------------
  28.  
  29. (There are really more tracks than that -- QIC24 (60MB) drives have 9
  30. tracks, while QIC150 (150MB/250MB) drives have 18 tracks -- but you
  31. get the idea.)
  32.  
  33. When the drive starts writing at the beginning of the tape, the erase
  34. bar (which is right in front of the read/write head) is activated.
  35. The erases bar spans the entire width of the tape, and erases all of
  36. the tracks as the tape moves past it.  So, let's say that you write
  37. enough data to fill up the first 3/4 of track 0.  The tape will look
  38. like this after you're finished (# indicates erased (blank) tape, X
  39. indicates new data, - indicates old data, and $ indicates an EOF
  40. mark);
  41.  
  42. BOTXXXXXXXXXXXXXXXXX>XXXXXXXXXXXXXXXXXXX>XXXXXXXXXXXXXXXXX$$>---------------
  43.    #################<###################<###################<---------------
  44.    #################>###################>###################>---------------
  45. EOT#################<###################<###################<---------------
  46.  
  47. As you can see, even if you could convince the drive the read past the
  48. second EOF mark (which you can't), most of your old data has already
  49. been erased.  This is a function of the hardware design of a QIC tape
  50. drive, and happens regardless of which archiving program (tar, cpio,
  51. etc.) you use.
  52.  
  53. None of this is the case if you're dealing with an archive stored on a
  54. floppy disk, of course.  With floppies, it's possible to use a version
  55. of tar that skips garbage and EOF marks to read past the beginning of
  56. the new archive.
  57.  
  58. -- 
  59. Marc Unangst, N8VRH         | "Of course, in order to understand this you
  60. mju@mudos.ann-arbor.mi.us   |  have to remember that the nucleus of the atom
  61.                             |  is squishy."
  62.                             |    -W. Scheider, from a Physics lecture
  63.