LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-29-2009, 09:34 AM   #1
johnmtb
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Rep: Reputation: 0
Untarring linux-2.6.29.4.tar.bz2


All,

i downloaded linux-2.6.29.4.tar.bz2, and tried to unzip and untar the bundle, but about halfway through it began spewing out messagers about no such file or folder. and then, finally ended with an error.

has anyone else had this problem? does anyone have a solution? i am a Slackware user, and have been now since the early 90s.

regards,

john
 
Old 05-29-2009, 09:37 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
How exactly did you try to "unzip"? You know that bz2 is not the same as gz? Also you shouldn't have to unzip then untar. You can extract tar from bzip and gzip with options to tar:

tar tzvf file.tar - Will unzip gzipped file (.gz suffix) and display.
tar tjvf file.tar - Will unzip bzipped file (.bz2 suffix) and display.

To extract just replace the t with x.
 
Old 05-29-2009, 11:00 AM   #3
johnmtb
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
jlightner,

i do it in the normal way, i think, as i have been doing it this way for some time now:

bzip2 -dc linux-2.6.29.4.tar.bz2|tar xvf -

and it starts, and continues to unzip and untar correctly until it gets about halfway or more through the bundle.

regards,

john
 
Old 05-29-2009, 11:11 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
And the error is?

Just for the record, actual gnu tar can do the same with just

Code:
tar xf filename
It can guess the right compression algorithm.
 
Old 05-29-2009, 12:03 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by johnmtb View Post
jlightner,

i do it in the normal way, i think, as i have been doing it this way for some time now:

bzip2 -dc linux-2.6.29.4.tar.bz2|tar xvf -

and it starts, and continues to unzip and untar correctly until it gets about halfway or more through the bundle.

regards,

john
Can't say that shouldn't work but why do all that typing?

Try the tar xf the prior poster suggested and if that doesn't work try the method I suggested.

Also prior poster says GNU tar which is a good point. Since you put this in a Linux forum I'm assuming you're doing this on Linux. Commercial UNIX such as HP-UX and Solaris don't necessarily include the ability of the GNU tar. If the uncompressed file is larger than 2GB you could run up against a limitation of the non GNU tar.
 
Old 05-31-2009, 02:41 AM   #6
johnmtb
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Dear All,

i tried both methods with exactly the same results. it unpacks about half and then starts reporting "Cannot open: No such file or directory"

and, yes, i am using a Slackware distibution of Linux, on my personal laptop, which is currently up to linux-2.6.28.

regards,

john
 
Old 05-31-2009, 06:42 AM   #7
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by johnmtb View Post
All,

i downloaded linux-2.6.29.4.tar.bz2, and tried to unzip and untar the bundle, but about halfway through it began spewing out messagers about no such file or folder. and then, finally ended with an error.

has anyone else had this problem? does anyone have a solution? i am a Slackware user, and have been now since the early 90s.

regards,

john
I assume you have a fairly recent slackware

1. first, are you sure your archive is not corrupted?
2. to unpack a tar.bz2 I always do as shown below
let's suppose, the archive is in your home directory
I prefer to unpack the kernel archive in /usr/src:
# cd /usr/src
# tar jxf $HOME/linux-2.6.29.4.tar.bz2

(if you want it to be verbose, replace 'jxf' by 'jxvf')
if everything went ok you should see the contents of the
archive in /usr/src/linux-2.6.29.4
 
Old 06-01-2009, 12:25 AM   #8
johnmtb
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
vonbiber,

i am using Slackware 12.0,and i have unpacked the tarballs without this problem for many years.

as i said above, the unpacking starts, and continues, for some time; i always use the verbose method and can watch the progress until it gets about halfway through, and then all remaining lines state the same error.

regards,

john
 
Old 06-01-2009, 07:09 AM   #9
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Are you out of disk space?
 
Old 06-01-2009, 07:43 AM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Or maybe i-nodes? (check df and df -i).
 
Old 06-02-2009, 01:55 AM   #11
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by johnmtb View Post
vonbiber,

i am using Slackware 12.0,and i have unpacked the tarballs without this problem for many years.

as i said above, the unpacking starts, and continues, for some time; i always use the verbose method and can watch the progress until it gets about halfway through, and then all remaining lines state the same error.

regards,

john
then

tar jxvf $HOME/linux-2.6.29.4.tar.bz2

should work

unless, as the other posts suggested, you're out of space (or inodes).
what does
df -h /

display?
 
Old 06-02-2009, 04:59 AM   #12
johnmtb
LQ Newbie
 
Registered: Sep 2008
Posts: 14

Original Poster
Rep: Reputation: 0
All,

that is the answer! i am out of space. i allocated 5.5 gigabytes, and all that is remaining is 21 megabytes. i will have to add another 5 gigabytes.

thank you all.

regards,

john
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tar-command not found while compiling glibc-libidn-2.7.tar.bz2 of lfs6.3 aditya_gpch Linux From Scratch 1 05-13-2008 11:27 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
first linux, first post, how do you install tar.bz2 ?? blackdragon Linux - Newbie 12 07-28-2004 01:16 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:26 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