From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bada1da9e6e0d536 X-Google-Attributes: gidfee84,public From: peter@emily.oit.umass.edu (Peter deFriesse) Subject: Re: any way to read past EOD? Date: 1997/01/30 Message-ID: <5cr7eb$mof@emily.oit.umass.edu>#1/1 X-Deja-AN: 213318098 references: organization: The Gang of "Peters" newsgroups: comp.unix.osf.osf1 Somewhere off the top of my screen in article , 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.