Reply
Thread Tools
Posts: 262 | Thanked: 206 times | Joined on May 2010
#1
hi all
i cannot extract any bz2 files cuz whenever i use tar vxjf filename or tar vxf filename it says invalid j option or invalid tar magic if i omit the j option .

any clues how to unpack that thing ?

thanks
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#2
isn't it
Code:
tar -zxvf filename.bz2
?
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Posts: 18 | Thanked: 18 times | Joined on Oct 2009 @ Barcelona, Spain
#3
Originally Posted by ossipena View Post
isn't it
Code:
tar -zxvf filename.bz2
?
No thats unpacking gzipped archives (.tar.gz)

N900' tar indeed doesnt have bzip2 compiled in.. However there is the bunzip2 available which you can use to unpack it to a .tar:

Code:
bunzip2 filename.tar.bz2
tar -xvf filename.tar
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#4
Originally Posted by ossipena View Post
isn't it
Code:
tar -zxvf filename.bz2
?
That's for tar.gz

Install tar-gnu and use gtar instead of tar.
The BusyBox tar is crippled (as are all other busybox tools)
 
Posts: 999 | Thanked: 1,117 times | Joined on Dec 2009 @ earth?
#5
I usually just do it in 2 steps.

unzip it first then untar the file.
__________________
I like cake.
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#6
Or do it in one step without an intermediate file:

Code:
bunzip2 -dc foobar.bz2 | tar x
 
Posts: 1 | Thanked: 0 times | Joined on Oct 2012
#7
do this:
Code:
tar xvf file.bz2
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:49.