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