Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: peter@emily.oit.umass.edu (Peter deFriesse)
Subject: Re: any way to read past EOD?
Date: 1997/01/30	[thread overview]
Message-ID: <5cr7eb$mof@emily.oit.umass.edu> (raw)
In-Reply-To: E4sAt2.Fn3@utcc.utoronto.ca


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.



      reply	other threads:[~1997-01-30  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-29  5:00 any way to read past EOD? Mark Bartelt
1997-01-30  5:00 ` Peter deFriesse [this message]
read-only archive

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