Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!limbo!taylor From: taylor@limbo.Intuitive.Com (Dave Taylor) Newsgroups: comp.sys.hp Subject: Reading past end-of-tape mark on cartridge tape? Message-ID: <483@limbo.Intuitive.Com> Date: 1 Mar 90 01:03:14 GMT Reply-To: taylor@limbo.Intuitive.Com (Dave Taylor) Distribution: na Organization: Intuitive Systems, Mountain View, CA: +011 (415) 966-1151 Lines: 31 I have a 7912 disk image backup on a cartridge tape that I'd like to be able to put into my 9144 tape drive and copy, byte-for-byte, onto my HP-UX disk, then munge about in. The disk image is in no known format (it's a long story) so I figured that I could use the handy "tcio" command to suck in the entire tape worth of data, and then write my own utilties to go further. Problem is, "tcio" refuses to read past the first end-of-tape mark, which occurs 96 1024byte blocks into the tape. I *know* that the tape has at least 25000 valid 1K records on it, but I just can't figure out how to get tcio to move past the end-of-tape mark (or to write my own program to do the copy, which is a perfectly fine alternative). What I'm seeing is: % tcio -ivZ /dev/rct tape size: 65408 blocks tcio(1009): 1024 byte blocks read: 96 What's wrong? What do I need to do to get past this point on the tape? Alternatively, what fcntl() calls must I make once a program I might write were to stop at this point? Thanks greatly for any assistance you can offer. -- Dave Taylor Intuitive Systems Mountain View, California taylor@limbo.intuitive.com or {uunet!}{decwrl,apple}!limbo!taylor