evan Posted February 6, 2004 Share Posted February 6, 2004 archivename.tar.tar how should I do it with that? I tried tar, but it said it does not look like a tar archieve. Can anyone provide some hints? thank you. Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted February 6, 2004 Veteran Share Posted February 6, 2004 I'm not sure if this will help enough, but at the command prompt, type file filename This will have linux try to determine the filetype by looking at it. I'm not sure that this will be good enough to see what that file is. Perhaps it is just corrupted? Maybe try making a test .tar on your own, and try extracting the test archive you just made - to make sure that everything is working... Link to comment Share on other sites More sharing options...
evan Posted February 6, 2004 Author Share Posted February 6, 2004 it said it's bzip2 compressed data, so what should I do next? Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted February 6, 2004 Veteran Share Posted February 6, 2004 Ok. That's promising. To uncompress the tar.gz file (tape archived, gZipped file), use the command: tar -xzvf filename This should then uncompress and list each file it is extracting. If this fails, I want you to check yourself by creating an archive like this: cat >> test1 and hit ENTER to create and add to a new test1 text file. At the blank line, enter some random text (type a message, or hit random keys, it doesn't matter) then hit ENTER. Do that a few more times. At a blank line, hit CTRL+D to finish adding text to the test1 file you just created. Now use cp test1 test2 to create another copy of your file. Do this to create files up to test9. Now, run the command tar -cvzf ./tests.tar.gz test* to copy all of your testx files into a newly created and compressed zip file. Try the unzip tar command at the beginning of this message on this new .gz file and see if that works. If it works, then your process (and tar program) are correct - the problem is in your file that is failing to unzip. If this fails to work on the file you just created, then you missed a step (or had a typo), or you have BIG problems.... Good Luck! Mark Link to comment Share on other sites More sharing options...
dotRoot Posted February 6, 2004 Share Posted February 6, 2004 first I'd just do these steps: rename archive.tar.tar archive.tar.bz2 bunzip2 -d archive.tar.bz2 tar -xvf archive.tar Link to comment Share on other sites More sharing options...
kemical Posted February 6, 2004 Share Posted February 6, 2004 first I'd just do these steps:rename archive.tar.tar archive.tar.bz2 bunzip2 -d archive.tar.bz2 tar -xvf archive.tar yea that would be what i would do.. not really sure where the other guy was going with the 'case study' :) Link to comment Share on other sites More sharing options...
Recommended Posts