Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

tar multi-volume tape

Posted on 1997-06-17
4
Medium Priority
?
1,035 Views
Last Modified: 2008-03-10
How can I list or unpack any of the archives on a multi-volume tape? Whatever I try, I can just get access of the first volume.
0
Comment
Question by:HarryF1
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
henrys earned 40 total points
ID: 2006429
It depends on the OS - but, in general, you need to use the non-rewind tape device. F'rinstance, on a BSD-type system, that would be /dev/nrst[0,4,8,whatever] - on a SYSVR4 type system, it would be /dev/rmt/[0,1..]n.

Example (I use Solaris, so that's what this shows):
3 archives on the tape, drive /dev/rmt/0

% tar xf /dev/rmt/0n    <- gets the first file, leaves the tape at EOF
% tar xf /dev/rmt/0n    <- gets  the second file
% tar xf /dev/rmt/0     <- gets the last file, rewinds tape
0
 

Author Comment

by:HarryF1
ID: 2006430
Hello,

I'm on Linux and I use SCSI tape 0. I have the following devices which include "st0" in their name:
nrmt0, nst0, nst0a, nst0l, nst0m, rmt0, st0, st0a, st0l, st0m

I tried it with nrmt0, nst0, rmt0 and st0 but without succes. When I start tar the 2nd time I get
tar: Blocksize = 16 records
On all next starts I get
tar: Read error on /dev/xxx: I/O error
tar: At beginning of tape, quitting now

Any idea?

Harry

0
 
LVL 1

Expert Comment

by:henrys
ID: 2006431
Try nst0l - this is the low-density interface to the drive. Also, try the nst0m if the other doesn't work. Was the tape written on the same system/drive as you are trying to read it on? If not, that could be the problem - especially if this is a DAT or 8mm, as there are several different drive densities "out there".
0
 

Author Comment

by:HarryF1
ID: 2006432
It might sound stupid but it still doesn't work. On nst0l and nst0m I get the message
No such device or address
On nst0 I get the same errors as described above.
It is a DAT drive but the tapes were created on the same machine with the same drive. I even can extract files from the first volume.
When I do a "mt -f /dev/nst0 status" after the first "tar tvf /dev/nst0" I get the line
block number = xxxxx
where xxxx is a number at about 70,000. As far as I can see this is ok.

Thanks for your help.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month10 days, 3 hours left to enroll

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question