Solved

tar multi-volume tape

Posted on 1997-06-17
4
1,017 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…

751 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