Solved

tar multi-volume tape

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

746 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

14 Experts available now in Live!

Get 1:1 Help Now