bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Can't extract file from multivolume archive


From: stinga
Subject: [Bug-tar] Can't extract file from multivolume archive
Date: Fri, 4 Feb 2011 15:21:47 +0000

G'day all,

I am back on this problem again...

So I have...
address@hidden:~/delme$ ll -R
.:
total 1988
drwxr-xr-x 2 mike users    4096 2011-02-04 14:27 dir_to_tar

./dir_to_tar:
total 2016
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-01
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-02
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-03
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-04
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-05
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-06
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-07
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-08
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-09
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-10
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-11
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-12
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-13
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-14
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-15
-rw-r--r-- 1 mike users 111250 2011-02-04 14:27 test-16
-rw-r--r-- 1 mike users 111250 2011-02-04 14:26 test-17


address@hidden:~/delme$ tar -tf tar.tar
dir_to_tar/
dir_to_tar/test-17
dir_to_tar/test-07
dir_to_tar/test-04
dir_to_tar/test-15
dir_to_tar/test-05
dir_to_tar/test-11
dir_to_tar/test-08
dir_to_tar/test-01
dir_to_tar/test
dir_to_tar/test-13
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
address@hidden:~/delme$ tar -tf tar.tar-01
dir_to_tar/test-13
dir_to_tar/test-06
dir_to_tar/test-09
dir_to_tar/test-14
dir_to_tar/test-16
dir_to_tar/test-02
dir_to_tar/test-12
dir_to_tar/test-10
dir_to_tar/test-03


address@hidden:~/delme$ tar -xf tar.tar-01 test-14
tar: dir_to_tar/test-13: Cannot extract -- file is continued from another volume
tar: Skipping to next header
tar: test-14: Not found in archive
tar: Exiting with failure status due to previous errors


address@hidden:~/delme$ tar -xf tar.tar-01 dir_to_tar/test-14
tar: dir_to_tar/test-13: Cannot extract -- file is continued from another volume
tar: Skipping to next header
tar: Exiting with failure status due to previous errors


address@hidden:~/delme$ tar --version
tar (GNU tar) 1.22
Copyright © 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

As you can see I can't extract anything from the 2nd volume.
If I start from the beginning I can...

address@hidden:~/delme$ tar -vxf tar.tar -M dir_to_tar/test-14
Prepare volume #2 for `tar.tar' and hit return: n tar.tar-01
dir_to_tar/test-14

This is OK for small tars but we have 6-9 LTO3s to spool through which takes ages. I know which volume the file is on so I should be able to just use that tape (and the one beofre if it start on a prev. vol.)

tar (GNU tar) 1.25
is the same

1.16.1 I can't compile

tar (GNU tar) 1.15 Does work.

It looks like it is an tar -x problem with 1.25

tar -c with 1.15 and then tar -x with 1.25 does not work
address@hidden:~/delme$ tar -cf tar.tar --multi-volume --tape-length=1024 dir_to_tar
Prepare volume #2 for `tar.tar' and hit return: n tar.tar-01
address@hidden:~/delme$ /usr/local/bin/tar -xvf tar.tar-01 dir_to_tar/ test-14
dir_to_tar/test-13
/usr/local/bin/tar: dir_to_tar/test-13: Cannot extract -- file is continued from another volume
dir_to_tar/test-14
/usr/local/bin/tar: Error exit delayed from previous errors



tar -c with 1.25 and then tar -x with 1.15 does work

Any ideas?

PS: This sort of repeats another post from Dec-14-2010, but I lost all the email. So I created a simpler environment in which to test.
--
'ooroo

stinga...(:)-)
---------------------------------------------------
Email: address@hidden      o
You need only two tools.        o /////
A hammer and duct tape. If it    /@   `\  /) ~
doesn't move and it should,     >  (O)  X<  ~  Fish!!
use the hammer. If it moves and  `\___/'  \) ~
shouldn't, use the tape.           \\\
---------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]