From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,64b75475f76d6233 X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,64b75475f76d6233 X-Google-Attributes: gid1164f8,public From: rkoehler@explorer.csc.com (Robert Koehler) Subject: Re: VMS ANSI mag tape on UNIX Date: 1999/09/20 Message-ID: <7s62pi$svu$2@lore.csc.com>#1/1 X-Deja-AN: 527553947 References: <7s56ir$7gs$1@isn.dac.neu.edu> <37E5E9C2.1EDC5D73@trailing-edge.com> <7s5oft$2ab$1@sun27.hrz.tu-darmstadt.de> Followup-To: comp.sys.dec,comp.unix.osf.osf1 X-Complaints-To: support@csc.com X-Trace: lore.csc.com 937856626 29694 20.1.10.27 (20 Sep 1999 19:43:46 GMT) Organization: Computer Sciences Corporation Reply-To: rkoehler@csc.comsog NNTP-Posting-Date: 20 Sep 1999 19:43:46 GMT Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Michael Kraemer (kraemer@clri6f.gsi.de) wrote: : The other direction (UNIX -> ANSI tape) will give you more trouble, : because an ordinary UNIX has no concept of "records" as opposed to : proprietary OSes like VMS or IBMs MVS. dd on Tu64 and some other UNIX systems will convert to/from fixed length text records (a common format on tape) and CR separated byte stream records (a la UNIX). Sometimes this is helpfull. See the block and unblock options on dd's manpage. I often end up repeating these steps since not all UNIX support ANSI standard tape labeling: 1 dd if=/dev/nrt0 of=/dev/tty 2 dd conv=unblock if=/dev/nrt0 of=filename bs=blocksize cbs=recordsize 3 dd if=/dev/nrt0 of=/dev/tty Step 1 copies the ANSI header to the terminal, you can read the filename from the header, record type, block size, and record size. Step 2 copies the data to a disk file, substitute the correct file name, record size, and conversion options. Step 3 copies the file trailer to the terminal so you can use step 1 on the next file's label. You must use the no-rewind device (/dev/n-something) until you've copied the last file. If step 1 produces no output, that's the logical end of tape. But of course, there are many conversions dd can't do for you. ------------------------------------------------------------------------------ Bob Koehler | Computer Sciences Corporation Hubble Space Telescope Payload | Federal Sector Flight Software Team | Civil Group