From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bf07170b44a7d4ba,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-08-22 20:28:47 PST Path: gmdzi!unido!fauern!ira.uka.de!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!rice!hsdndev!cfa203!raj From: raj@cfa.harvard.edu (Raj Manandhar) Newsgroups: comp.sys.dec Subject: reading past EOT on a TK-50 Summary: How do I read past the EOT on a TK-50 (Ultrix 3.1 MicroVAX)? Keywords: TK-50, EOT, tape, mt, tmscp, Ultrix, Unix Message-ID: <1991Aug23.004512.24293@cfa.harvard.edu> Date: 23 Aug 91 00:45:12 GMT Organization: Harvard-Smithsonian Center for Astrophysics, Cambridge, MA, USA Maybe this falls under the heading of Frequently Asked Questions but... Does anyone know how to go past the end-of-tape on a TK-50 cartridge? On dumb tape drives you can just read past two file marks, but that appears not to be the case here, and perhaps for other tmscp tapes as well. I am running Ultrix 3.1 (but perhaps the solution is the same for newer versions too) on a MicroVAX II. I have this tape which I put lots of good tape files on. Then I got confused and thought it was a blank tape, and overwrote a few files at the beginning. There are many good files following the EOT, if only I could read them. I tried using mt fsf, blindly reading ahead with dd, mt eotdis, mt clrhrdsf, mt clserex, and mt clsub, in various combinations, all without any luck. I can go one file past the number of files that should be there before the EOT, then I get an I/O error. I also tried (at someone else's suggestion) writing a C program that makes the equivalent ioctl(2) calls; this is different from mt because it does not close the tape file descriptor between different ioctls and read(2) calls. The result is the same. I have to admit, at this point I'm motivated more by curiosity than anything else. If you know what incantations might convince the TK-50 to do my bidding, please send me email, as I do not normally read this group. Raj -- Raj Manandhar +1 617 495-8348 or -2038 raj@cfa272.harvard.edu Harvard-Smithsonian Center for Astrophysics ...!harvard!cfa272!raj 60 Garden Street, Cambridge, MA 02138 raj%cfa272@cfa.bitnet