From: rkoehler@explorer.csc.com (Robert Koehler)
Subject: Re: VMS ANSI mag tape on UNIX
Date: 1999/09/20 [thread overview]
Message-ID: <7s62pi$svu$2@lore.csc.com> (raw)
In-Reply-To: 7s5oft$2ab$1@sun27.hrz.tu-darmstadt.de
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
next prev parent reply other threads:[~1999-09-20 4:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-20 4:00 VMS ANSI mag tape on UNIX Chris Johnson
1999-09-20 4:00 ` Tim Shoppa
1999-09-20 4:00 ` Michael Kraemer
1999-09-20 4:00 ` Robert Koehler [this message]
1999-09-30 4:00 ` Christian Krackowizer
1999-09-30 4:00 ` Frank da Cruz
1999-10-03 4:00 ` peter
1999-10-04 4:00 ` Robert Koehler
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox