Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!mikros!mwtech!martin From: martin@mwtech.UUCP (Martin Weitzel) Newsgroups: comp.unix.sysv386 Subject: Re: How to get past end of cpio archive on tape Keywords: eof Message-ID: <1023@mwtech.UUCP> Date: 3 Jan 91 01:24:26 GMT References: <1990Dec12.050414.15575@bjm.wimsey.bc.ca> <1162@bcs800.UUCP> <301@bria.AIX> Reply-To: martin@mwtech.UUCP (Martin Weitzel) Organization: MIKROS Systemware, Darmstadt/W-Germany Lines: 29 In article <301@bria.AIX> mike@bria.AIX (Mike Stefanik/78125) writes: :>In <1990Dec12.050414.15575@bjm.wimsey.bc.ca> news@bjm.wimsey.bc.ca (News Login) writes: :> :>I have this backup which I accidentally wrote a cpio archive over. However :>the cpio archive is only 20 megabytes and therefore 1/3 of the tape [...] :>My question is (drum roll please) :>how do get past the EOF marker at the end of the cpio? [...] :First you have to skip over the first "part" of the tape that you cpio'd to; :use the no-rewind tape device (ours is rmt4) and do: : : $ dd if=/dev/rmt4 of=/dev/null bs=512k : :Then use dd to pull in the last "part" of the tape which is your tar'd files: : : $ dd if=/dev/rmt4 of=/tmp/damaged bs=512k : I know this was allready mentioned earlier in this thread, but I think I should repeat for all those who tuned in late: ALL THIS IS TECHNICALLY CORRECT BUT BOUND TO FAIL FOR TYPICAL CARTRIDGE TAPE STREAMERS, SINCE THESE DEVICES PHYSICALLY ERASE ALL OF THE TAPE WHEN WRITING THE FIRST TRACK! (IMHO the topic should go into the FAQ.) -- Martin Weitzel, email: martin@mwtech.UUCP, voice: 49-(0)6151-6 56 83