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: g2news2.google.com!news4.google.com!feeder.news-service.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.envia-tel.net!news.freibergnet.de!not-for-mail From: holm@freibergnet.de (Holm Tiffe) Newsgroups: comp.sys.dec Subject: Re: RSX11 Tape file Structure? Date: Mon, 21 Feb 2011 11:53:57 +0000 (UTC) Organization: FreibergNet IT Systems Sender: holm@unicorn.tsht.lan Message-ID: References: NNTP-Posting-Host: dslb-188-103-155-224.pools.arcor-ip.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.freibergnet.de 1298289237 3028 188.103.155.224 (21 Feb 2011 11:53:57 GMT) X-Complaints-To: news@freibergnet.de NNTP-Posting-Date: Mon, 21 Feb 2011 11:53:57 +0000 (UTC) X-Newsreader: knews 1.0b.1 Xref: g2news2.google.com comp.sys.dec:3056 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. I've never seen block sizes of 4144 before, tought this was a bug in my program first.. [snip] foffs 0006a664, blen bl 581 = 4096:1000 foffs 0006b66c, blen bl 582 = 4096:1000 foffs 0006c674, blen bl 583 = 2048:0800 foffs 0006ce7c, blen bl 584 = 80:0050 foffs 0006ced4, blen bl 585 = 4096:1000 foffs 0006dedc, blen bl 586 = 4096:1000 foffs 0006eee4, blen bl 587 = 4096:1000 foffs 0006feec, blen bl 588 = 4096:1000 foffs 00070ef4, blen bl 589 = 4096:1000 foffs 00071efc, blen bl 590 = 4096:1000 foffs 00072f04, blen bl 591 = 4096:1000 foffs 00073f0c, blen bl 592 = 4096:1000 foffs 00074f14, blen bl 593 = 3584:0e00 foffs 00075d1c, blen bl 594 = 80:0050 foffs 00075d74, blen bl 595 = 4096:1000 foffs 00076d7c, blen bl 596 = 4096:1000 foffs 00077d84, blen bl 597 = 4096:1000 foffs 00078d8c, blen bl 598 = 4096:1000 foffs 00079d94, blen bl 599 = 4096:1000 foffs 0007ad9c, blen bl 600 = 4096:1000 foffs 0007bda4, blen bl 601 = 4096:1000 foffs 0007cdac, blen bl 602 = 4096:1000 foffs 0007ddb4, blen bl 603 = 2048:0800 foffs 0007e5bc, blen bl 604 = 80:0050 foffs 0007e614, blen bl 605 = 4144:1030 foffs 0007f64c, blen bl 606 = 4144:1030 foffs 00080684, blen bl 607 = 4144:1030 foffs 000816bc, blen bl 608 = 4144:1030 [snap] The tape has a rather complex structure... hmmm that are ~200k of those logs above. Now I have to decrypt what SYSGEN want's to know from me :-~ BTW: In Sysgens device listing has no DEQNA, can I set this to DEUNA? What means non mapped System? It thinks I have 1n 11/34, typing in 11/53 doesn't work.... Regards, Holm