Fist, put the tape read only (with whatever switch is on the cartridge.)
I assume you can access the drive on the Sun, usually /dev/rst0 or /dev/rmt0. (this would be the same special file that the tape was written to, so you could
look at the command that created the tape or perhaps it is written on the tape. If the special file name is different, it might be due to tape density or compression.
Suppose it is /dev/rst0.
I would first read in a few blocks to check it out:
% dd if=/dev/rst0 of=/tmp/output bs=10k count=1000
So this should read in the first 1000 blocks x 10520 bytes
and it will return something like:
1000+0 records in
1000+0 records out
which means 1000 full records read in with no partial reads.
So since the tar header is at the front of the file, you should be able to:
tar tvf /tmp/output
and it should spit out at least one tar index link like:
drwxr-xr-x 0/1 0 Feb 24 07:58 2006 ./
-r-------- 343/1 15 Feb 23 10:06 2006 ./thisdat
tar: tape blocksize error
The error is just because the tar image is truncated.
To dd the whole tamale:
dd if=/dev/rst0 of=/tmp/wholething bs=10k
Then you can run "tar tvf /tmp/wholething" to look at the table of contents of the file.
You then can move the file to linux, and
use "tar xf filename" to extract the whole thing,
or "tar xf filename PATTERN" to extract part.
read the tar man page.
BTW, if the tar output has a leading '/', then some
care must be taken to avoid overwriting existing files.
gene