Reading PDP-11 Backup Tape

Reading PDP-11 Backup Tape

Post by Suaid Isha » Thu, 28 Oct 1999 04:00:00



I'm trying to read a PDP-11 media tape that consists of backup data. I
tried using dd command in UNIX. What I have is only data COBOL data
structures. How do I know the block size of the tape.

Any ideas
TQ

--
Posted via CNET Help.com
http://www.help.com/

 
 
 

Reading PDP-11 Backup Tape

Post by Ken Pizzi » Fri, 29 Oct 1999 04:00:00



>I'm trying to read a PDP-11 media tape that consists of backup data. I
>tried using dd command in UNIX. What I have is only data COBOL data
>structures. How do I know the block size of the tape.

With some tape drivers you don't have to know, they'll
transparently translate the blocksize-as-it-is-on-tape
to the blocksize-as-requested-by-the-application for you.

Failing that, if you're very lucky, a "mt status" on the tape
drive will tell you.

Otherwise you're likely to have to guess.  Some common sizes to try:
  powers of 2 from 512 to 32768
    (since 65536 doesn't fit in a 16-bit integer, larger values
    are unlikely on a PDP-11 tape)
  5120
  10240
  a power of 10 or twice a power of 10 (20, 200, ...) times the
    size of the underlying COBOL data structure
  256
  1000
  5000
  10000
  800
  80
Step through the list (I suggest something roughly in the same
order as above, unless you have a reason to guess otherwise)
until:  you both fail to get error reports from the tape driver;
you see that the data does not have gaps at the end of a block;
and you see that data is not truncated at the end of a block.

                --Ken Pizzini

 
 
 

Reading PDP-11 Backup Tape

Post by Suaid Isha » Fri, 29 Oct 1999 04:00:00





> >I'm trying to read a PDP-11 media tape that consists of backup data. I
> >tried using dd command in UNIX. What I have is only data COBOL data
> >structures. How do I know the block size of the tape.

> With some tape drivers you don't have to know, they'll
> transparently translate the blocksize-as-it-is-on-tape
> to the blocksize-as-requested-by-the-application for you.

> Failing that, if you're very lucky, a "mt status" on the tape
> drive will tell you.

> Otherwise you're likely to have to guess.  Some common sizes to try:
>   powers of 2 from 512 to 32768
>     (since 65536 doesn't fit in a 16-bit integer, larger values
>     are unlikely on a PDP-11 tape)
>   5120
>   10240
>   a power of 10 or twice a power of 10 (20, 200, ...) times the
>     size of the underlying COBOL data structure
>   256
>   1000
>   5000
>   10000
>   800
>   80
> Step through the list (I suggest something roughly in the same
> order as above, unless you have a reason to guess otherwise)
> until:  you both fail to get error reports from the tape driver;
> you see that the data does not have gaps at the end of a block;
> and you see that data is not truncated at the end of a block.

> --Ken Pizzini

Thanks a lot for the tip, I'll try it asap. By the way, I found out that
the tapes was backed up via PDP-11 backup command. Does that mean that I
need to be in PDP-11 environment to read it back?

--- Suaid Ishak

--
Posted via CNET Help.com
http://www.help.com/

 
 
 

Reading PDP-11 Backup Tape

Post by Ken Pizzi » Fri, 29 Oct 1999 04:00:00



>Thanks a lot for the tip, I'll try it asap. By the way, I found out that
>the tapes was backed up via PDP-11 backup command. Does that mean that I
>need to be in PDP-11 environment to read it back?

I'm not clear about what you mean by "PDP-11 backup command", as
the hardware itself doesn't have a backup command.  I suppose,
given the newsgroups you're posting to, that you mean some
backup command that shipped with whatever version of Unix was
being run on that machine?  If the "backup command" in question
was "dump", then you should be able to use "restore" or
"ufs-restore" to read it back, though it is possible you might
need to feed the restore command the output of "dd conv=swab".

In any event, you can get the data (contaminated with extraneous
backup-structure data) with a simple "dd" command, unless the
backup command does compression or encryption.  You will need
some piece of software which knows about the format used by the
backup command which wrote the tape in order to recover any
structure (e.g., file boundaries) that may have been written, to
clean out the "garbage" of the backup structures from the datat,
and/or to undo the effects of any compression or encryption that
may have been done.

                --Ken Pizzini

 
 
 

Reading PDP-11 Backup Tape

Post by Ken Pizzi » Sat, 30 Oct 1999 04:00:00


On Sat, 30 Oct 1999 00:54:27 +0800,


> What I really meant by PDP-11 backup command is that by
>using PDP-11's RSX-11 OS backup command.

OH...

Quote:> I did check with Digital's ( now
>Compaq) Engineers regarding the the issue. The feedback that i got is that I
>need a VAX machine to read it.UNIX won't be able to read it directly. Anybody
>else out there can confirm this, so that I can find some other alternatives.

Well, I don't know enough about the RSX-11 backup command to
make a definitive statement, but I am extremely dubious that
their statement is strictly correct.  As long as the box has a
tape drive which is physically able to read the tape (and which
the OS has a driver for), it should only be a matter of having
a piece software which understands the RSX-11 backup format to
recover it.  However, it is true that it is extremely unlikely
that you will find a unix system which ships with software
that understands RSX-11 backup format, and I am unaware (not
that I am likely to be aware) of any such software out on the
'net, so you would probably have to write your own.

So, from the point of view of "with off the shelf tools"
they are probably right, but from the point of view of "it is
fundamentally impossible" they are probably wrong.  In this
vein, I will re-iterate one, possibly useless, piece of advice:

Quote:>> In any event, you can get the data (contaminated with extraneous
>> backup-structure data) with a simple "dd" command, unless the
>> backup command does compression or encryption.

                --Ken Pizzini
 
 
 

Reading PDP-11 Backup Tape

Post by Ratenawati Suzar » Sun, 31 Oct 1999 04:00:00


Hi Ken, thanks again for the reply (at least by now I'm looking some light at
the end of the tunnel). What I really meant by PDP-11 backup command is that by
using PDP-11's RSX-11 OS backup command. I did check with Digital's ( now
Compaq) Engineers regarding the the issue. The feedback that i got is that I
need a VAX machine to read it.UNIX won't be able to read it directly. Anybody
else out there can confirm this, so that I can find some other alternatives.

TQ



> >Thanks a lot for the tip, I'll try it asap. By the way, I found out that
> >the tapes was backed up via PDP-11 backup command. Does that mean that I
> >need to be in PDP-11 environment to read it back?

> I'm not clear about what you mean by "PDP-11 backup command", as
> the hardware itself doesn't have a backup command.  I suppose,
> given the newsgroups you're posting to, that you mean some
> backup command that shipped with whatever version of Unix was
> being run on that machine?  If the "backup command" in question
> was "dump", then you should be able to use "restore" or
> "ufs-restore" to read it back, though it is possible you might
> need to feed the restore command the output of "dd conv=swab".

> In any event, you can get the data (contaminated with extraneous
> backup-structure data) with a simple "dd" command, unless the
> backup command does compression or encryption.  You will need
> some piece of software which knows about the format used by the
> backup command which wrote the tape in order to recover any
> structure (e.g., file boundaries) that may have been written, to
> clean out the "garbage" of the backup structures from the datat,
> and/or to undo the effects of any compression or encryption that
> may have been done.

>                 --Ken Pizzini

 
 
 

Reading PDP-11 Backup Tape

Post by Kevin John Dea » Sun, 31 Oct 1999 04:00:00




>On Sat, 30 Oct 1999 00:54:27 +0800,

>> What I really meant by PDP-11 backup command is that by
>>using PDP-11's RSX-11 OS backup command.

>OH...

>> I did check with Digital's ( now
>>Compaq) Engineers regarding the the issue. The feedback that i got is that I
>>need a VAX machine to read it.UNIX won't be able to read it directly. Anybody
>>else out there can confirm this, so that I can find some other alternatives.

>Well, I don't know enough about the RSX-11 backup command to
>make a definitive statement, but I am extremely dubious that
>their statement is strictly correct.  As long as the box has a
>tape drive which is physically able to read the tape (and which
>the OS has a driver for), it should only be a matter of having
>a piece software which understands the RSX-11 backup format to
>recover it.  However, it is true that it is extremely unlikely
>that you will find a unix system which ships with software
>that understands RSX-11 backup format, and I am unaware (not
>that I am likely to be aware) of any such software out on the
>'net, so you would probably have to write your own.

>So, from the point of view of "with off the shelf tools"
>they are probably right, but from the point of view of "it is
>fundamentally impossible" they are probably wrong.  In this
>vein, I will re-iterate one, possibly useless, piece of advice:
>>> In any event, you can get the data (contaminated with extraneous
>>> backup-structure data) with a simple "dd" command, unless the
>>> backup command does compression or encryption.

>               --Ken Pizzini

Look for VMSBACKUP on a Unix archive site, it should do what you
want.  Or try asking in comp.os.vms, they will know for sure.

--
Kevin John Dean

 
 
 

Reading PDP-11 Backup Tape

Post by pe.. » Sun, 31 Oct 1999 04:00:00



: On Sat, 30 Oct 1999 00:54:27 +0800,

: > What I really meant by PDP-11 backup command is that by
: >using PDP-11's RSX-11 OS backup command.

The simpest way might be to use a PDP-11 that run's RSX software ...
Still some running in sweden. What backup software was used ? BRU ? DSC ?
ir just plain old PIP ?

What tape density are we talking about ? 800/1600/6250 ?

Regards
: OH...

: > I did check with Digital's ( now
: >Compaq) Engineers regarding the the issue. The feedback that i got is that I
: >need a VAX machine to read it.UNIX won't be able to read it directly. Anybody
: >else out there can confirm this, so that I can find some other alternatives.

: Well, I don't know enough about the RSX-11 backup command to
: make a definitive statement, but I am extremely dubious that
: their statement is strictly correct.  As long as the box has a
: tape drive which is physically able to read the tape (and which
: the OS has a driver for), it should only be a matter of having
: a piece software which understands the RSX-11 backup format to
: recover it.  However, it is true that it is extremely unlikely
: that you will find a unix system which ships with software
: that understands RSX-11 backup format, and I am unaware (not
: that I am likely to be aware) of any such software out on the
: 'net, so you would probably have to write your own.

: So, from the point of view of "with off the shelf tools"
: they are probably right, but from the point of view of "it is
: fundamentally impossible" they are probably wrong.  In this
: vein, I will re-iterate one, possibly useless, piece of advice:
: >> In any event, you can get the data (contaminated with extraneous
: >> backup-structure data) with a simple "dd" command, unless the
: >> backup command does compression or encryption.

:               --Ken Pizzini

--
--
Peter H?kanson   peter (at) gbg (dot) netman (dot) se

 
 
 

Reading PDP-11 Backup Tape

Post by Steve Ketcha » Tue, 02 Nov 1999 04:00:00


Let me throw in my 2 cents worth...

Ken's certainly right that there's nothing fundamental in Unix
preventing you from reading the tape.  Years ago, I was told that it was
"impossible" to read a PDP-10 tape on a RSTS PDP-11.  (PDP-10s had 36
bit words, and packed 6 characters into a word; RSTS/11 was programmed
entirely in BASIC).  It wasn't easy, and the program wasn't fast, but I
did it, to the amazement of the "experts".

He's also probably right that you won't find off the shelf tools.

If you try to decode it yourself, you will have a much better chance of
succeeding if you know what's on the tape.  Is it source code or text
files?  If so, look at dumps, and you can probably figure out record
separators.  I wouldn't expect RSX-11 to have used a very complex
layout.  REMEMBER THAT PDP-11'S SWAPPED BYTES IN WORDS!  You may see
"Ratenawati" recorded as "aRetanawit".

If you're trying to interpret binary values, especially floating-point
values, you may find it much more difficult.  But even that may be
possible, if you can find some information about RSX-11 numeric formats.

Good luck!

Steve (showing my age.)


> On Sat, 30 Oct 1999 00:54:27 +0800,

> > What I really meant by PDP-11 backup command is that by
> >using PDP-11's RSX-11 OS backup command.

> OH...

> > I did check with Digital's ( now
> >Compaq) Engineers regarding the the issue. The feedback that i got is that I
> >need a VAX machine to read it.UNIX won't be able to read it directly. Anybody
> >else out there can confirm this, so that I can find some other alternatives.

> Well, I don't know enough about the RSX-11 backup command to
> make a definitive statement, but I am extremely dubious that
> their statement is strictly correct.  As long as the box has a
> tape drive which is physically able to read the tape (and which
> the OS has a driver for), it should only be a matter of having
> a piece software which understands the RSX-11 backup format to
> recover it.  However, it is true that it is extremely unlikely
> that you will find a unix system which ships with software
> that understands RSX-11 backup format, and I am unaware (not
> that I am likely to be aware) of any such software out on the
> 'net, so you would probably have to write your own.

> So, from the point of view of "with off the shelf tools"
> they are probably right, but from the point of view of "it is
> fundamentally impossible" they are probably wrong.  In this
> vein, I will re-iterate one, possibly useless, piece of advice:
> >> In any event, you can get the data (contaminated with extraneous
> >> backup-structure data) with a simple "dd" command, unless the
> >> backup command does compression or encryption.

>                 --Ken Pizzini

--
Steve Ketcham              Project Manager, Professional Services

111 Powdermill Rd                       Telephone: (978) 461-7406
Maynard, MA 01754              Not speaking for Stratus Computer.
 
 
 

1. parallel printers on PDP-11/70, Ultrix-11

Stats:
    DEC PDP-11/70 running Ultrix-11 Version 3.0.  
    Parallel printer attached.

Problem:
    lpr just spools jobs, they are never printed.

    The daemon never kicks up, no lock files are set, etc.
    I'm familiar with 4.2BSD running on a Vax, but have never
    worked with Ultrix from an administrative perspective.

    The error left by lpd is a open file error.  Apparently
    it can't open /dev/lp.  All of the permissions are fine.
    I think the problem may be one of using the wrong major/minor
    device number on /dev/lp.  How am I supposed to know which
    major/minor number to use?  When the machine was sysgen'ed
    the following numbers were used in /usr/sys/conf/unix.cf:

        lp 177514 200

    These are "default" numbers.  I have no idea where they came
    from, or why I should think they are right.

    Also, maybe worth noting, lpd never shows up in the process
    table.  I'm sure this is because it fails to open lp, just
    thought I'd point out that I do know about lpd, but it's not
    happy.  And, printcap looks right...knows who it's supposed
    to be talking to.  (lprm and lpq work properly as well.)

Any help in figuring out what's wrong here would be much appreciated!

Thanks in advance,
Deb
--
Georgia Tech, School of Electrical Engineering, Atlanta, GA 30332
(404)894-3058
uucp:  ...!{akgua,allegra,hplabs,ihnp4,seismo,ulysses}!gatech!gt-eedsp!deb

2. Will it be the next Release name ....?

3. UNIX for PDP-11/73

4. UNIX PD on CD-ROM

5. PDP-11 emulation on SPARC?

6. RealServer for OpenBSD

7. WANTED OLD (real old)unix for pdp-11/45

8. Emacs Syntax coloring?

9. DEC PDP-11/73

10. Help finding UNIX for pdp-11

11. PDP-11 Emulator

12. PDP 11/23 : a summary of responses

13. PDP MAC-11 cross-assembler written in C