LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-04-2004, 08:15 AM   #1
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Rep: Reputation: 30
noob problem with getting kernel source


Hi,
I've just installed Mandrake 9.2 and want to compile a new kernel.
First ,I've looked for the kernel source on my new linux machine and can't find it in /usr/src. Am I looking in the wrong place?

Then I thought it might be on the cd's, but I simply can't find it there either.

So, I decided to download a 2.6.0 version from Kernel.org and downloaded on my Windows PC and copied on to a cd then copied it onto my Linux PC.Each time I did this and tried to BUNZIP2 the new kernel source, I got the message that it was corrupted.Tried it several times, with BZ2 and GZ versions and also differnet cd's and the same thing happened.

Am I missing something obvious here?

Last edited by ludwig W; 01-04-2004 at 08:23 AM.
 
Old 01-04-2004, 09:00 AM   #2
samhob
Member
 
Registered: Jan 2004
Location: Bern, Switzerland
Distribution: Debian
Posts: 72

Rep: Reputation: 15
Hello ,
Mandrake 9.2 , i dont know why doesnt have its kernel source
here it is:

ftp://ftp.surfnet.nl/vol/1/mandrake-...0.mdk.i586.rpm

but it dont recommend it to you.. I never accomplish a mandrake kernel source , it is very buggy i the make modules operation.

so it is better to get one from kernel.org

and for your bunzip-gz problem I could not help you.
since

tar -zxvf linux-* (.tar.gz)
or
tar -xvjf linux-* (.tar.bz2)

works fine for me
 
Old 01-04-2004, 09:05 AM   #3
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Original Poster
Rep: Reputation: 30
is there some kind of problem with burning files on a cd in windows and then getting Linux to read them?

All the files I've burned ,all the BZ2 files at least, have come back with the message:
'data integrity error when decompressing'
in Linux?

Also, where is the kernel source normally put in a Mandrake installation?
 
Old 01-04-2004, 01:03 PM   #4
thebell
LQ Newbie
 
Registered: Dec 2003
Distribution: Gentoo
Posts: 25

Rep: Reputation: 15
IIRC, Mandrake 9.0 had the kernel source RPMs on CD 3, which doesn't contain very much useful stuff. If you run rpmdrake, you should be able to find the kernel source packages. They ought to install into /usr/src/linux-[version].
 
Old 01-04-2004, 01:57 PM   #5
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
normally, after you first install any distro, the src tree is not present. it only places the kernel image, and not the source. so you download the kernel sources from http://www.kernel.org. you could place the src tree either under /usr/src or anywhere else on your machine as long as you specify to your bootloader where it sits.

how are you reading your compressed files from the cdrom drive?
 
Old 01-04-2004, 02:17 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
is there some kind of problem with burning files on a cd in windows and
then getting Linux to read them?
no. but apparently in your case, there is. maybe windows is saving it as
text instead of binary.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kernel source tree problem thales Mandriva 2 03-18-2005 08:54 AM
yet another kernel source problem creznedmick Fedora 0 01-20-2005 05:48 PM
kernel source problem ? Peter Aleksic Slackware 7 12-01-2004 07:49 PM
SuSe - Noob question - How can I edit source? Kalkran Linux - Distributions 1 08-22-2004 04:47 PM
kernel source problem morrisset Red Hat 2 06-30-2004 10:46 AM

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

All times are GMT -5. The time now is 07:58 AM.

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