Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* any way to read past EOD?
@ 1997-01-29  5:00 Mark Bartelt
  1997-01-30  5:00 ` Peter deFriesse
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Bartelt @ 1997-01-29  5:00 UTC (permalink / raw)



I believe this has come up before, but I can't find discussion
in the FAQs, so ...

Someone here has a DAT tape which originally contained a large
number of tar archives.  Someone overwrote the beginning of the
tape with three small tar archives.  Of course, everything that
got overwritten is gone, as (probably) is whichever tar archive
was partially overwritten.  But what about the ones following?

I was hoping that one could do some variant of

  mt seod       # to get to end of the "new" stuff
  mt fsf 1      # to skip the partially-overwritten tar archive

after which one could use "mt fsf N" + "tar x" to extract stuff
from an archive which followed the mistakenly-written ones.

However, I can't find any way to persuade the system to continue
past EOD.  The manpage implies that one can use "mt seod" to get
to the current end of media for purposes of appending data.  But
attempts to read beyond it fail.

From one angle, this makes sense.  (After all, why would anyone
*want* to read beyond the end of the data on the tape?)  But of
course, there are situations where one would want to do exactly
that (such as this one).

Is the refusal to read past EOD done by clever firmware in the
drive itself, or by the SCSI tape driver?  If the latter case,
is there any way to reconfigure things to permit a nonstandard
operation of this sort?  (I'm even willing to patch the running
kernel after the "mt seod" to fool the driver into believing it
isn't really at EOD.)

Any and all suggestions appreciated.  As usual, many TIA.

Mark Bartelt                                       416/978-5619
Canadian Institute for                    mark@cita.utoronto.ca
Theoretical Astrophysics      http://www.cita.utoronto.ca/~mark

"Nur eine Waffel taugt!"   --   Parsifal, in an Eggo commercial



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: any way to read past EOD?
  1997-01-29  5:00 any way to read past EOD? Mark Bartelt
@ 1997-01-30  5:00 ` Peter deFriesse
  0 siblings, 0 replies; 2+ messages in thread
From: Peter deFriesse @ 1997-01-30  5:00 UTC (permalink / raw)



Somewhere off the top of my screen in article
  <E4sAt2.Fn3@utcc.utoronto.ca>,
  the esteemed mark@cita.utoronto.ca said:

}I believe this has come up before, but I can't find discussion
}in the FAQs, so ...
}
}Someone here has a DAT tape which originally contained a large
}number of tar archives.  Someone overwrote the beginning of the
}tape with three small tar archives.  Of course, everything that
}got overwritten is gone, as (probably) is whichever tar archive
}was partially overwritten.  But what about the ones following?
}
}I was hoping that one could do some variant of
}
}  mt seod       # to get to end of the "new" stuff
}  mt fsf 1      # to skip the partially-overwritten tar archive
}
}after which one could use "mt fsf N" + "tar x" to extract stuff
}from an archive which followed the mistakenly-written ones.
}
}However, I can't find any way to persuade the system to continue
}past EOD.  The manpage implies that one can use "mt seod" to get
}to the current end of media for purposes of appending data.  But
}attempts to read beyond it fail.
}
}From one angle, this makes sense.  (After all, why would anyone
}*want* to read beyond the end of the data on the tape?)  But of
}course, there are situations where one would want to do exactly
}that (such as this one).
}
}Is the refusal to read past EOD done by clever firmware in the
}drive itself, or by the SCSI tape driver?  If the latter case,
}is there any way to reconfigure things to permit a nonstandard
}operation of this sort?  (I'm even willing to patch the running
}kernel after the "mt seod" to fool the driver into believing it
}isn't really at EOD.)
}
}Any and all suggestions appreciated.  As usual, many TIA.
}
  "man 4 tar"

  From the information contained there, you should be able 
rebuild.  If the drive refuses to go past the last file mark
written by the new tar, you could be SOL.

  Also try "tcopy" which I found on the 'net (sorry, I don't
remember where); it searches until it hits blank tape on our
drives.

-- 
  peter defriesse \\ computing facilities management \\ OIT \\ UMass
       [OIT doesn't opine for me.  I return that courtesy..]

  Sysadmins don't go to hell; we're already doing our time in purgatory.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-01-30  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-29  5:00 any way to read past EOD? Mark Bartelt
1997-01-30  5:00 ` Peter deFriesse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox