LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-04-2007, 12:26 PM   #1
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Rep: Reputation: 30
computer hangs when unpacking kernel source


Hi,

I'm tryind to extract kernel-2.6.22.9.tar.bz2 with the following commmand:

tar xfvj kernel-2.6.22.9.tar.bz2

but at some point during decompression it just stops and does nothing.

Does anyone know what may be causing it?
Is this something to do with APIC?

Thanks
 
Old 10-04-2007, 01:00 PM   #2
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
You mean the whole system hang while uncompressing the source file? My gut feeling tells me is something related with the disk (most likely it write to a disk area where it encountered a bad sector).
 
Old 10-04-2007, 01:02 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,339

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by hubabuba View Post
Hi,

I'm tryind to extract kernel-2.6.22.9.tar.bz2 with the following commmand:

tar xfvj kernel-2.6.22.9.tar.bz2

but at some point during decompression it just stops and does nothing.

Does anyone know what may be causing it?
Is this something to do with APIC?

Thanks
I think that the f parameter has to be at the end of the parameter list:

tar -xvjf kernel-2.6.22.9.tar.bz2

Another possible problem is where you are unpacking the tarball. What directory are you in when you issue the command?

You use the v parameter so surely you are getting some messages from tar before it quits. What does it say?

-----------------
Steve Stites
 
Old 10-04-2007, 01:34 PM   #4
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
Yes, the whole system hangs. I can't do anything other than turn off and on again.

I'm unpacking the tarball in /usr/src/.

tar does not quit, it just freezes in the middle of unpacking the tarball.

The are no messages other than usuall output during the extraction - what files are being unpacked, into what directories.
 
Old 10-04-2007, 01:38 PM   #5
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Have you check the log files in /var/log: messages, syslog, debug ...
 
Old 10-05-2007, 01:26 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
It could be that you are running out of disk space.
If not, have you tried using 'tar xvf kernel-2.6.22.9.tar.bz2'?
 
Old 10-06-2007, 06:58 AM   #7
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
I have tried using 'tar xvf kernel-2.6.22.9.tar.bz2', but computer still hangs and I used options 'xfvj' before on other computers. It worked fine.
I'm definitely not running out of space.
 
Old 10-06-2007, 07:20 AM   #8
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
I downloaded kernel source as 'gz' instead of 'bz2', used 'tar xzvf linux-2.6.22.9.tar.gz', but computer still hangs.
 
Old 10-06-2007, 09:07 AM   #9
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
could you try redirecting the output to a file, so that maybe we could see where exactly it hangs?
Also, what is the filesystem you are using?

And how much free space do you have ?

Try downloading an older tar.bz2 , unpacking that maybe? If that works you could patch up to the latest version.
 
Old 10-08-2007, 02:29 PM   #10
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
I have downloaded the file from www.eu.kernel.org instead of www.kernel.org and it unpacked fine. Strange.
 
Old 10-09-2007, 07:42 AM   #11
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
Just out of curiosity, why are you unpacking in /usr/src? AFAIK, the only one that should be in there is the one that glibc was built against. Do you have your / on a seperate partition? If so, how big is it?
 
Old 10-09-2007, 01:52 PM   #12
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
The sources which glibc was compiled against should be in /usr/src/linux. Usually, this is a symbolic link to the actual sources -like linux-2.4.33. This insures that the proper headers are found when compiling additional software for your system. It's perfectly alright to unpack other versions of the kernel under /usr/src, as long as you don't create the symbolic link /usr/src/linux to the 'other' version.
 
Old 10-09-2007, 11:24 PM   #13
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Yeah, but if you unpack in /usr/src , you usually have to be root to compile etc. which is generally not needed at all. I feel you are better off unpacking in ~
 
  


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
Unpacking initramfs ... <0> Kernel panic - not syncing: bad gzip magic nymbers Jamate Debian 2 04-05-2007 01:41 AM
kernel unpacking piter2004 Linux - Software 2 02-06-2006 01:12 AM
Computer hangs while trying to boot kernel. wonka_vision Linux - Hardware 2 06-30-2004 04:52 AM
unpacking / new kernel cloeser Linux - General 2 08-30-2003 09:38 AM
unpacking kernel source. gusgorman Linux - General 4 06-15-2002 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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