From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,5289e984584236e0 X-Google-NewGroupId: yes X-Google-Attributes: gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bob Eager Newsgroups: comp.sys.dec Subject: Re: RSX11 Tape file Structure? Date: 21 Feb 2011 13:08:12 GMT Message-ID: <8sf6dsFdq7U5@mid.individual.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net O9JTYOSiNUKfavrq1rXT0wMq2nIWmQqoKHJRl7cn+NJuZztsbJ Cancel-Lock: sha1:qkjhSL20Zrh8eqOn+/CnHRcNGqc= User-Agent: Pan/0.133 (House of Butterflies) Xref: g2news1.google.com comp.sys.dec:2896 On Mon, 21 Feb 2011 11:53:57 +0000, Holm Tiffe wrote: > In article , > Johnny Billquist writes: >> On 2011-02-20 20:24, Holm Tiffe wrote: >>> Hi, >>> > [..] >> As Roger Ivie suggests - if it works with simh, there must already be >> blocking information in the file, or else simh would not be able to use >> the file either. >> >> However, the most common format for tapes on a file for simh is >> actually 4 bytes of blocksize, then data, then the same four bytes of >> block size again. The exception being if the block is a tape mark, >> which is just a single four bytes of zero. Not repeated. >> >> An alternative format is just two bytes of block size, followed by the >> data. And then next block. >> >> By the way, I hope you also understand how to actually write a tape >> from a Unix system, with correct block sizes. Don't try to use dd, >> since that will most definitely not be useful. >> >> As for the actual block sizes of the tape, for a bootable tape on a >> PDP-11 in general, the first two blocks are usually identical, and is >> boot blocks. 512 bytes each. After that, it's up to the boot block (and >> thus the system). >> >> For RSX, a popular block size for tapes is 4144 bytes. But since RSX >> uses ANSI format tapes, you'll have some 80 byte blocks in there with >> volume headers and file headers, and so on, before you actually get to >> any data blocks. And also, for backups and the like, the last block of >> any save set can be just about any size. And tape marks are also used, >> which look like 0-byte blocks when you read them. But writing tape >> marks is a special operation. >> >> Johnny > > Yes, ioctls.. > > Ok, thanks guys for the hint in the right direction. I've already read > simh's documentation about tape structures and hacked together a simple > program that wrote me a tape. It worked at the first try! > Still wondering if there is a "raw" device in simh just to exchange data > without filtering. I'e wondered about hte ugly characters in a uuencoded > tar file that I wrote out in simh just to get the 2.11BSD Kernel > Configuration to the real machine. Filtered with tail and col -b to get > it clean... Now I kow better what happened here. Tried using the paper tape punch? -- Use the BIG mirror service in the UK: http://www.mirrorservice.org *lightning protection* - a w_tom conductor