LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2015, 03:26 PM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
Creating a large tar ile form a sequence of small tar files and one files is missing


I am trying to put back together a big atr file from some smaller tar files that I created several years ago. The issue is that in order to tar this large file, I must put each file back using the command

tar -xMf cd-1.tar
Prepare volume #2 for 'cd-1.tar' and hit return:n cd-2.tar
Prepare volume #3 for 'cd-2.tar' and hit return:n cd-3.tar
and so forth.

I have fourteen files cd-1.tar through cd-15.tar. The cd-9.tar files is missing and I assume that it is gone. Now when I type the commands in I get the following:

Code:
-linux tarfile]$ tar -xMf cd-1.tar
Prepare volume #2 for `cd-1.tar' and hit return: n cd-2.tar
Prepare volume #3 for `cd-2.tar' and hit return: n cd-3.tar
Prepare volume #4 for `cd-3.tar' and hit return: n cd-4.tar
Prepare volume #5 for `cd-4.tar' and hit return: n cd-5.tar
Prepare volume #6 for `cd-5.tar' and hit return: n cd-6.tar
Prepare volume #7 for `cd-6.tar' and hit return: n cd-7.tar
Prepare volume #8 for `cd-7.tar' and hit return: n cd-8.tar
Prepare volume #9 for `cd-8.tar' and hit return: n cd-10.tar
tar: This volume is out of sequence (10755138772 - 4889670868 != 6598651392)
Prepare volume #9 for `cd-10.tar' and hit return: n cd-10.tar
tar: This volume is out of sequence (10755138772 - 4889670868 != 6598651392)
Prepare volume #9 for `cd-10.tar' and hit return: 
tar: This volume is out of sequence (10755138772 - 4889670868 != 6598651392)
As you can see I do not have cd-9.tar. That stops the untarring cold. However, I have cd-10.tar,cd-11.tar,cd-12.tar,cd-13.tar,cd-14.tar,cd-15.tar. Now I may have these files, but they cannot be put back in the main file because cd-9.tar is missing and everything must be put in sequentially.

Is there a way to complete this sequence of steps and add all fourteen files to the files bigbackup leaving out cd-9.tar? That means that the bigbackup file will be incomplete, but that is better than no file or having bigbackup missing six files on the back end.

Any help appreciated.

Thanks in advance.

Respectfully,


Newport_j
 
Old 03-06-2015, 07:30 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
You can extract the remaining tar files individually by not using the -M option.

https://ftp.gnu.org/old-gnu/Manuals/...e/tar_137.html
 
Old 03-10-2015, 01:04 PM   #3
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
I tried just a simple listing of the contents of the files and nothing else.

Here is the result.

-linux tarfile]$ tar -tvf cd-1.tar
-rw-r--r-- james/james 10755138772 2011-08-15 12:35 bigbacku.tar.bz2
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

I am quite sure the command is okay. I understand that it would reach a unexpected EOF. i am only lusting
cd-1.tar which is just the first cd of a tar file thta takes 15 cd-1.tar.

I pack the files and then wote all fifeteen parts onto 15 cd's using Ubuntu 64 bit, 11.04.

Now i am trying to unpack it and A PC using Redhat 64 bit latest version which I am ashamed to say I do not know.

Any way what causes this error (unexpected EOF and) and how do work around it.

I know that this error sometimes is generated when someone packs a files on a PC with one linux OS and then
tries to unpack when on a PC with another version of linux.

i just want to get these files back.

Any help appreciated.

Thanks in advance.

Respectfully,

Newport_j



.
 
Old 03-10-2015, 01:05 PM   #4
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
tar -xvf filename generated an error

I tried just a simple listing of the contents of the files and nothing else.

Here is the result.

-linux tarfile]$ tar -tvf cd-1.tar
-rw-r--r-- james/james 10755138772 2011-08-15 12:35 bigbacku.tar.bz2
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

I am quite sure the command is okay. I understand that it would reach a unexpected EOF. i am only lusting
cd-1.tar which is just the first cd of a tar file thta takes 15 cd-1.tar.

I pack the files and then wote all fifeteen parts onto 15 cd's using Ubuntu 64 bit, 11.04.

Now i am trying to unpack it and A PC using Redhat 64 bit latest version which I am ashamed to say I do not know.

Any way what causes this error (unexpected EOF and) and how do work around it.

I know that this error sometimes is generated when someone packs a files on a PC with one linux OS and then
tries to unpack when on a PC with another version of linux.

i just want to get these files back.

Any help appreciated.

Thanks in advance.

Respectfully,

Newport_j

Last edited by jyunker; 03-10-2015 at 01:10 PM. Reason: double post
 
Old 03-10-2015, 02:56 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Since bigbacku.tar.bz2 is split across volumes it will quit with an error. You might have to provide some additional information as to how the the multi-volume archive was created. If it is only one file i.e. bigbacku.tar.bz2 then you might be in trouble.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why joining parted *.tar is missing files, when *.tar itelf have them? UltraMC Linux - Newbie 1 06-27-2012 01:53 PM
tar not working with large number of files csegau Linux - Newbie 4 12-06-2010 07:03 AM
[SOLVED] Archive :: TAR :: How do I recompile to allow large files? cin_ Slackware 4 12-05-2010 03:33 PM
listing the contents of large tar files szim90 Linux - Software 6 04-06-2007 09:23 AM
Using (s)tar for back-up to hard disk creating very large files jlinkels Linux - Software 3 10-25-2005 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration