From: Bob Eager <rde42@spamcop.net>
Subject: Re: RSX11 Tape file Structure?
Date: 21 Feb 2011 13:08:12 GMT [thread overview]
Message-ID: <8sf6dsFdq7U5@mid.individual.net> (raw)
In-Reply-To: ijtjok$2uk$1@news.freibergnet.de
On Mon, 21 Feb 2011 11:53:57 +0000, Holm Tiffe wrote:
> In article <ijsdn9$nh7$1@iltempo.update.uu.se>,
> Johnny Billquist <bqt@softjar.se> 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
next prev parent reply other threads:[~2011-02-21 13:08 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-20 19:24 RSX11 Tape file Structure? Holm Tiffe
2011-02-20 19:44 ` Roger Ivie
2011-02-21 1:04 ` Johnny Billquist
2011-02-21 11:53 ` Holm Tiffe
2011-02-21 13:08 ` Bob Eager [this message]
2011-02-21 16:27 ` Holm Tiffe
2011-02-21 17:36 ` Bob Eager
2011-02-22 17:43 ` Holm Tiffe
2011-02-22 18:26 ` Bob Eager
2011-02-22 19:16 ` Bob Eager
2011-02-21 19:20 ` Johnny Billquist
2011-02-22 18:41 ` Holm Tiffe
2011-02-22 19:56 ` Rich Alderson
2011-02-22 22:26 ` Johnny Billquist
2011-02-23 23:32 ` Rich Alderson
2011-02-24 9:18 ` Johnny Billquist
2011-02-22 22:20 ` Johnny Billquist
2011-02-23 10:57 ` Holm Tiffe
2011-02-23 18:28 ` Holm Tiffe
2011-02-23 19:12 ` Holm Tiffe
2011-02-23 23:54 ` Rich Alderson
2011-02-24 9:24 ` Johnny Billquist
2011-02-24 16:52 ` Holm Tiffe
2011-02-24 23:38 ` Johnny Billquist
2011-02-25 7:02 ` Holm Tiffe
2011-02-25 7:35 ` Holm Tiffe
2011-02-25 9:13 ` Johnny Billquist
2011-02-25 11:21 ` Holm Tiffe
2011-02-25 16:40 ` Holm Tiffe
2011-02-25 20:20 ` Holm Tiffe
2011-02-26 1:24 ` Johnny Billquist
2011-02-26 7:01 ` Holm Tiffe
2011-02-26 9:08 ` Johnny Billquist
2011-02-26 9:29 ` Holm Tiffe
2011-02-26 9:39 ` Holm Tiffe
2011-02-26 9:55 ` Johnny Billquist
2011-02-26 10:15 ` Holm Tiffe
2011-02-26 10:21 ` Holm Tiffe
2011-02-26 10:35 ` Johnny Billquist
2011-02-26 10:32 ` Johnny Billquist
2011-02-26 11:00 ` Holm Tiffe
2011-02-26 11:13 ` Johnny Billquist
2011-02-26 12:37 ` Holm Tiffe
2011-02-26 18:32 ` Holm Tiffe
2011-02-26 23:47 ` Johnny Billquist
2011-02-27 11:35 ` Holm Tiffe
2011-02-27 11:59 ` Johnny Billquist
2011-02-27 12:35 ` Holm Tiffe
2011-02-27 12:43 ` Holm Tiffe
2011-02-27 13:37 ` Johnny Billquist
2011-02-27 14:49 ` Holm Tiffe
2011-02-27 15:10 ` Holm Tiffe
2011-02-28 1:33 ` Johnny Billquist
2011-02-27 19:38 ` Holm Tiffe
2011-02-28 1:50 ` Johnny Billquist
2011-02-28 13:49 ` Bob Koehler
2011-02-26 9:53 ` Johnny Billquist
2011-02-26 1:20 ` Johnny Billquist
2011-02-26 7:16 ` Holm Tiffe
2011-02-26 9:15 ` Johnny Billquist
2011-02-26 1:18 ` Johnny Billquist
2011-02-26 7:07 ` Holm Tiffe
2011-02-26 9:19 ` Johnny Billquist
2011-02-26 12:56 ` Holm Tiffe
2011-02-26 23:53 ` Johnny Billquist
2011-02-24 9:44 ` Johnny Billquist
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