Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!bohra.cpg.oz.au!als From: als@bohra.cpg.oz.au (Anthony Shipman) Newsgroups: comp.unix.questions Subject: Re: reading past EOT marks Keywords: mt, dd, tar, tape, EOT Message-ID: <1991Jun6.094811.2593@bohra.cpg.oz.au> Date: 6 Jun 91 09:48:11 GMT References: <3282@ria.ccs.uwo.ca> Organization: Software Division, Computer Power Group Lines: 35 In article <3282@ria.ccs.uwo.ca>, hyman@ria.ccs.uwo.ca (Hyman Wong) writes: > Hello out there in UNIX-land! I need some assistance in the usage of > tapes. Specifically, I'm trying to do dumps of disks to a tape, except > I want to use the tape for more than one dump. I'm trying to keep an > index of all the files dumped so far as the first file on tape, which > will be used for restoring any files. The index is pre-allocated on the > tape to about 1mb. When I go to use the tape again for another backup, > I read in the index, position the tape to the last record, and dump > files, adding the filenames and other useful info to the index. Then > when the dump is done, I rewind the tape and rewrite the index to the > allocated space at the beginning of the tape. > > Now here's the problem, after rewinding the tape and writing out the > index, I get two End-Of-Tape markers after it, to signal the end of the > tape. Here's what it looks like: > > file 1, EOT, EOT, file 2, EOT, file 3, EOT, EOT > ~~~~~~~~Yikes! > > The problem is that I can't seem to read past the first pair of EOT > markers, no matter what I try. Is there a way of doing it with mt, dd, > or tar? Anyone know of a another way to read past the End-Of-Tape > marker pairs? > > Any suggestions, comments or advice is greatly appreciated. > With traditional 9 track tape systems a skip to the logical end of tape would leave you between the two EOTs. Then a skip file or skip record could skip to file 2. It depends on what the driver will let you do. -- Anthony Shipman "You've got to be taught before it's too late, Computer Power Group Before you are six or seven or eight, 19 Cato St., East Hawthorn, To hate all the people your relatives hate, Melbourne, Australia You've got to be carefully taught." R&H