cynthia@cod.NOSC.MIL (Cynthia G. Anderson) (06/14/89)
hello. my problem is two-fold. question 1: for the apollo folks-- I'm trying to get the tar command to read a cartridge tape of mine. the tape was made using wbak and has a single file on it. to get a listing I type: (in c-shell) tar tbf 1 /dev/rct8 what I get is an error " tar: directory checksum error (0 != 10459) ". I don't understand exactly what I'm doing wrong? any ideas? question 2: for both apollo and sun people-- I want to be able to write a cartridge tape so that either the a sun-3 or 4 OR an apollo DN 3010 can read it. I've been told it's possible using tar and some sort of particular format forced on the tape; but I haven't found anyone here who really knows how to do it. help? thanks so much for any and all suggestions... cynthia anderson cynthia@cod.nosc.mil Naval Oceans Systems Center San Diego, CA 92152 (619) 553 - 2338 No Disclaimer Necessary...
GBOPOLY1@NUSVM.BITNET (fclim) (06/15/89)
>Date: 14 Jun 89 15:57:32 GMT >From: cynthia@cod.nosc.mil (Cynthia G. Anderson) >Organization: Naval Ocean Systems Center, San Diego >Subject: Apollo-Sun cartridge tape reading thru tar? >Message-Id: <1559@cod.NOSC.MIL> > > the tape was made using > wbak and has a single file on it. to get a listing > I type: (in c-shell) tar tbf 1 /dev/rct8 > what I get is an error " tar: directory checksum error > (0 != 10459) ". > > I want to be able to write a cartridge tape > so that either the a sun-3 or 4 OR an apollo > DN 3010 can read it. I've been told it's possible > using tar and some sort of particular format forced > on the tape; > > cynthia anderson > cynthia@cod.nosc.mil > Naval Oceans Systems Center > San Diego, CA 92152 > (619) 553 - 2338 Tapes (whether cartridge or reel) made using /com/wbak can only be restored with /com/rbak. If you want a listing, use "rbak -dev c -f 1 -index -all". Wbak/Rbak are proprietary to Apollo. To transfer files via tapes to other Unix boxes, use tar. "-c" to made and "-x" to restore. See the man pages for the options. The rest below refers to cartridge tape. Ignore for magtapes. When you reading or writing a cartridge tape on an Apollo, do a % /com/rbak -dev c -rewind or % mt -f /dev/rct8 rewind first before any other operations. You also need to specify a blocking factor of 1 when using tar. You may write 2 or more tar files on a cartridge tape on an Apollo. (You need to tell tar to use /dev/rct12 for writing more than 1 tar file). There's no problem when you are reading back on a Sun. However, on Apollo, you can't read the 2nd, 3rd, etc tar files on an Apollo directly with tar. To read subsequent files, use % /com/rwmt -dev c -r -asc -unlab -f <file-no> -rl 512 -bf 1 -rf f <file-name> % tar -xf <file-name> or % dd if=/dev/rct12 | tar -xf - # repeat this for all files on tape There's is a question of QIC24 that I can't answer. This is available on Sun cartridge tape drive. If your Sun has this, then probably you can't do file transfers between Apollo and Sun. Hope this helps you to read your tapes. fclim --- gbopoly1 % nusvm.bitnet @ cunyvm.cuny.edu computer centre singapore polytechnic dover road singapore 0513.
khaw@pplace.COM (Mike Khaw) (06/16/89)
<8906150532.AA02968@umix.cc.umich.edu>, by GBOPOLY1@NUSVM.BITNET (fclim): > There's is a question of QIC24 that I can't answer. This is available > on Sun cartridge tape drive. If your Sun has this, then probably you > can't do file transfers between Apollo and Sun. This confused me. My experience is that your Sun MUST have a drive that does QIC-24 format to interoperate with an Apollo. Conventionally, a Sun with a single cartridge drive uses /dev/rst0 (and /dev/nrst0) for QIC-11, and /dev/rst8 (and /dev/nrst8) for QIC-24. Some old Suns have drives that only do QIC-11 (which is why SunOS used to be distributed on tapes that you had to read with /dev/rst0) but most of the Suns I've used do both formats (and as of SunOS 4.0, the distribution tapes are made to be read with /dev/rst8). Mike Khaw -- ParcPlace Systems, 1550 Plymouth St., Mountain View, CA 94043 415/691-6749 Domain=khaw@parcplace.com, UUCP={uunet,sun,decwrl}!parcplace!khaw
fisher%fisher@HAC2ARPA.HAC.COM (leroy fisher) (06/16/89)
It is also possible to use mt to forward a tar tape to tar file 2, 3, etc. and then use tar to read off that file, as opposed to using dd | tar or rwmt; tar .... LeRoy Fisher fisher%fisher@hac2arpa.hac.com
krowitz@RICHTER.MIT.EDU (David Krowitz) (06/16/89)
You are correct. The apollo drive use the QIC-24 format. The Sun drive does either QIC-11 (/dev/rst0) or QIC-24 (/dev/rst8). If you use /dev/rst8 on the Sun (and remember to rewind the tape after you insert it in your Apollo), you can transfer tar tapes between the two system. -- David Krowitz krowitz@richter.mit.edu (18.83.0.109) krowitz%richter@eddie.mit.edu krowitz%richter@athena.mit.edu krowitz%richter.mit.edu@mitvma.bitnet (in order of decreasing preference)
beierl_c@apollo.COM (Christopher Beierl) (06/17/89)
In article <8906150532.AA02968@umix.cc.umich.edu> GBOPOLY1@NUSVM.BITNET (fclim) writes: >When you reading or writing a cartridge tape on an Apollo, do a > % /com/rbak -dev c -rewind >or > % mt -f /dev/rct8 rewind >first before any other operations. You also need to specify a blocking >factor of 1 when using tar. Prior to SR10 one was required to specify of blocking factor of 1 when WRITING tar tapes on Apollo. AS OF SR10 THIS RESTRICTION HAS BEEN REMOVED. In article <541@parcplace.pplace.COM> khaw@pplace.COM (Mike Khaw) writes: ><8906150532.AA02968@umix.cc.umich.edu>, by GBOPOLY1@NUSVM.BITNET (fclim): >> There's is a question of QIC24 that I can't answer. This is available >> on Sun cartridge tape drive. If your Sun has this, then probably you >> can't do file transfers between Apollo and Sun. > >This confused me. My experience is that your Sun MUST have a drive that >does QIC-24 format to interoperate with an Apollo. Conventionally, a >Sun with a single cartridge drive uses /dev/rst0 (and /dev/nrst0) for >QIC-11, and /dev/rst8 (and /dev/nrst8) for QIC-24. Some old Suns have >drives that only do QIC-11 (which is why SunOS used to be distributed on >tapes that you had to read with /dev/rst0) but most of the Suns I've used >do both formats (and as of SunOS 4.0, the distribution tapes are made to >be read with /dev/rst8). This is correct. Apollo supports only QIC-24 cartridge tapes. One must use the QIC-24 device(s) on the Sun (/dev/rst8, /dev/nrst8) to read and/or write a tape compatible with Apollo. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Christopher T. Beierl Internet: beierl_c@apollo.com Apollo Computer, Inc. UUCP: {mit-eddie,yale,uw-beaver}!apollo!beierl_c A Subsidiary of Hewlett-Packard Phone: (508) 256-6600
steve@simon.UUCP (Steven E. Piette) (06/19/89)
In article <1559@cod.nosc.mil>, cynthia@cod.NOSC.MIL (Cynthia G. Anderson) writes: > question 1: for the apollo folks-- > I'm trying to get the tar command to read a > cartridge tape of mine. the tape was made using > wbak and has a single file on it. As mentioned by another poster; tar and rbak/wbak are incompatible. > question 2: for both apollo and sun people-- > I want to be able to write a cartridge tape > so that either the a sun-3 or 4 OR an apollo > DN 3010 can read it. First, the procedure varies withg the version of system software your using on the Apollo's. SR9 versions are more limiting than SR10 versions. Second, please note that prior to the SR10 version of tar objects written to and later restored to tape using tar will lose their file typing information, in many cases making tar a poor choise for archiving. (Also WBAK and RBAK are much faster than TAR on an Apollo machine). So, How To information: Under SR9 and earler, you must use a blocking factor of 1 on the non-Apollo machines. From a Sun system use (Asumming your Sun has a 1.8 or later EPROM allowing QIC24 tape support. Call 1-800-USA-4SUN for free EPROM upgrade): mt -f /dev/rst8 -rewind # just to make sure your at BOT tar cfb /dev/rst8 1 files_to_backup # st8 is QIC24 format To read them into the Apollo: rbak -dev ct -rewind # just to make sure your at BOT tar cf /dev/rctX files_to_backup # replace X with approp number SR10 or later supports blocking factors. You can also use the option to include type information (recomended - you never know when this may be the only tape left with your stuff on it). On non-Apollo systems this creates 0 length files you can delete afterword that the Apollo saves the type info into. I have used this procedure to move data from XENIX and Sun's to/from Apollo's. Beware there are problems with SGI's (byteswapping) and HP's (incompatable tape formats) when using cartridge tapes. > > cynthia anderson > cynthia@cod.nosc.mil > Naval Oceans Systems Center I hope this helps. -- Steven E. Piette Applied Computer Technology Inc. UUCP: {smarthost}!simon!steve 1750 Riverwood Drive INET: steve@simon.CHI.IL.US or spiette@SUN.COM Algonquin, IL 60102 -------------------------------------------------------------------------------
cynthia@cod.NOSC.MIL (Cynthia G. Anderson) (06/19/89)
I would like to thank everyone that replied with suggestions and help. My machines over here are conversing quite nicely now; if a bit slowly. Thank you all again, cynthia anderson Naval Ocean Systems Center San Diego, CA 92107 cynthia@cod.nosc.mil