Linux - NewbieThis 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
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.
I am trying to extract them all, this is the command I tried
Code:
cat *.bz2* | ( cd u; tar jxv)
This command seems to extract the
u.tar.bz2.00 100% with no issues. However, once it goes to the next one ( or one of the others, I can't be sure which is the culprit) I get an error like this.
Quote:
bzip2: (stdin*trailing garbage after EOF ignored
u/rqqv0z.png
That error comes up then it quits. Basically the only one that seems to fully extract is the .tar.bz2.00
Any help on this would be great, I have many images that I need to get outa of the tars.
Thanks!
Last edited by BiggySmalls; 10-11-2009 at 01:09 PM.
I am trying to extract them all, this is the command I tried
Code:
cat *.bz2* | ( cd u; tar jxv)
This command seems to extract the
u.tar.bz2.00 100% with no issues. However, once it goes to the next one ( or one of the others, I can't be sure which is the culprit) I get an error like this.
That error comes up then it quits. Basically the only one that seems to fully extract is the .tar.bz2.00
Any help on this would be great, I have many images that I need to get outa of the tars.
Thanks!
You need to make sure the files are concatenated in the proper order (this is not guaranteed). Do the files have alphabetic names, corresponding to their original order? If not, you cannot do what you are trying to do.
If they do, simply put them together, then untar them as a separate action:
$ cat *.bz2 > assembled.bz2
$ tar -xjf assembled.bz2 -C u
The '-C" argument tells tar to use a different directory than the source. Again, it's imperative that the files be assembled in the correct order, and this requires them to have alphabetically ordered names.
You need to make sure the files are concatenated in the proper order (this is not guaranteed). Do the files have alphabetic names, corresponding to their original order? If not, you cannot do what you are trying to do.
If they do, simply put them together, then untar them as a separate action:
$ cat *.bz2 > assembled.bz2
$ tar -xjf assembled.bz2 -C u
The '-C" argument tells tar to use a different directory than the source. Again, it's imperative that the files be assembled in the correct order, and this requires them to have alphabetically ordered names.
This is the command I used.
Code:
tar -cvpj 'u'/ | split -d -b 1000m - u.tar.bz2
As far as the files that I tar-balled, no they are just randomly generated file names that were uploaded via a program. So there is no order to the original files (the pictures)
As far as the files that I tar-balled, no they are just randomly generated file names that were uploaded via a program. So there is no order to the original files (the pictures)
I suggested a solution. Did it work? My comment was not about the order of the original files, but the order of the split segments. They must be reassembled in the same order as the original split.
I suggested a solution. Did it work? My comment was not about the order of the original files, but the order of the split segments. They must be reassembled in the same order as the original split.
I assumed that since they were split and named .00, .01, .02 those are the order. If this is not true then I have no clue how to tell which order they are in.
I assumed that since they were split and named .00, .01, .02 those are the order. If this is not true then I have no clue how to tell which order they are in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.