Solved

tar multi-volume tape

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
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…

773 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