Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-29-2005, 09:21 PM
|
#1
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Rep:
|
untarring archives that span multiple tapes?
So I've dusted off an old DLT drive to recover some old data. I have three archives spanned across nine tapes. If I try to tar tvf the tape to see what's on it, I can only see the first tape of each archive. The second and third don't give me anything back (well, actually, they give back a directory checksum error).
Is there a special command I have to give to tar to tell it there's another tape coming, or that if I'm not tape 2 that it's part of a larger archive?
This is on a SGI, btw, (running IRIX6.5 I believe). Is it possible that this version of tar doesn't support multiple tapes?
the command I'm using is pretty simple:
tar tvf /dev/tape
Thanks
|
|
|
11-29-2005, 09:33 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
Check the man page for tar. There are three addidional options you can specify on the command line: -M (or --multi-volume), -L (or --tape-length=<N*1024 bytes>), and --new-volume-script=<filename>, where filename is a script which tells tar what to do when it reaches the end of a tape; namely, execute a ctrl-Z (to suspend the operation) and unmount so that you can change tape, then remount manually, and finally command fg to bring it back to foreground and resume.
Can't help you with the script though. Never figured it out.
|
|
|
11-29-2005, 09:41 PM
|
#3
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Original Poster
Rep:
|
Quote:
Originally posted by bigrigdriver
Check the man page for tar. There are three addidional options you can specify on the command line: -M (or --multi-volume), -L (or --tape-length=<N*1024 bytes>), and --new-volume-script=<filename>, where filename is a script which tells tar what to do when it reaches the end of a tape; namely, execute a ctrl-Z (to suspend the operation) and unmount so that you can change tape, then remount manually, and finally command fg to bring it back to foreground and resume.
Can't help you with the script though. Never figured it out.
|
hmm.. the SGI's tar doesn't have those options. It also doesn't have a compiler, so I can't make a new tar... hmmm...
|
|
|
All times are GMT -5. The time now is 10:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|