Solved

tar multi-volume tape

Posted on 1997-06-17
4
988 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 20 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

863 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

Need Help in Real-Time?

Connect with top rated Experts

30 Experts available now in Live!

Get 1:1 Help Now