LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-10-2003, 10:23 AM   #1
sanjiv
Member
 
Registered: Sep 2003
Distribution: Fedora 7
Posts: 34

Rep: Reputation: 15
/usr/src/linux missing


Hi,
A really stupid question. I have mandrake 9.0 installed on my desktop. While trying to configure my ethernet card, the installation failed because the source code was not found. Is it because the directory /usr/src/linux is missing ?
Besides, I am not clear about one thing. If the source code is supposed to be there in /usr/src/linux (which is missing in my case), how does my computer manage to boot linux at all ?

Regards,

sanjiv
 
Old 10-10-2003, 10:28 AM   #2
voldermort
Member
 
Registered: Sep 2003
Location: Wales
Distribution: Mandrake 9.1
Posts: 37

Rep: Reputation: 15
A newbie I guess :-)

The linux sources are on your install cd.
Open the Rpmdrake, and type 'source' into the search box, then install.

If you are thinking of recompiling your kernel, whatever you do, don't use the 'make install' command. Read the 'Kernel how to' and make sure you have a complete list of all your hardware, chipsets etc

Good luck
 
Old 10-10-2003, 10:35 AM   #3
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
"If you are thinking of recompiling your kernel, whatever you do, don't use the 'make install' command. Read the 'Kernel how to' and make sure you have a complete list of all your hardware, chipsets etc"

Does this not work on Mandrake or something? Just curious...
 
Old 10-10-2003, 10:55 AM   #4
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 573

Rep: Reputation: 30
The reason your system boots with-out the sources is that the sources are only needed to create the executables. Onces you have the executables to boot you don't need not the sources unless you want to recompile something or make changes.
 
Old 10-10-2003, 10:58 AM   #5
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
i.e you will have your kernel (and the initrd thing) executables in /boot partition.
 
Old 10-10-2003, 11:04 AM   #6
voldermort
Member
 
Registered: Sep 2003
Location: Wales
Distribution: Mandrake 9.1
Posts: 37

Rep: Reputation: 15
Quote:
Originally posted by lupin_the_3rd
"If you are thinking of recompiling your kernel, whatever you do, don't use the 'make install' command. Read the 'Kernel how to' and make sure you have a complete list of all your hardware, chipsets etc"

Does this not work on Mandrake or something? Just curious...
As most users on here will tell you, using the 'make install' has a habit of doing the opposit to what you expect. More than anything it will mess up your lilo configuration, which will cause a kernel panic at boot up. This usually results in reinstalling your operating system. If you know what you are doing then go ahead, if your a newbie then follow the 'how to' and install manually.

This way if your new kernel doesnt boot, you will still be able to boot your original configuration. This isnt Mandrake specific, it goes for all operating systems.

Always backup, then backup again.
You are lucky, unlike windoze, that a fresh install only takes a couple of minutes.
 
Old 10-10-2003, 11:15 AM   #7
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
I use it and it works fine but I use Red Hat and Grub... the only problem I've ever encountered is having to point grub to /dev/hda5 (example) instead of the default that RH specific kernels use (LABEL rather than /dev/hda5) after a kernel panic. It's good to keep an extra working kernel hanging around. .

I forgot that mandrake uses LILO which I know very little about

Last edited by lupin_the_3rd; 10-10-2003 at 11:17 AM.
 
Old 10-10-2003, 11:25 AM   #8
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
In Slackware make install works very well... but it copies the files to the / directory, I just edited the Makefile and ucommented the line BOOT_INSTALL_PATH and now it goes directly to my /boot directory, and it places copies of the old kernel file like *.old
 
Old 10-10-2003, 11:33 AM   #9
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
Ah! If you really plan to recompile the kernel for any reason:

http://www.linuxquestions.org/questi...threadid=49035

really good how-to about recompiling the kernel - made for newbies
 
Old 10-10-2003, 11:37 AM   #10
voldermort
Member
 
Registered: Sep 2003
Location: Wales
Distribution: Mandrake 9.1
Posts: 37

Rep: Reputation: 15
It seems you have both had to change something for it work

Would a newbie know how? or where to start?

My first experience with linux resulted in about 20 fresh installs within a two week period, lol
 
Old 10-10-2003, 11:44 AM   #11
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
no, no, not al all.... it always worked ,but I just didn't like to copy the files from / to /boot. You could think it's not safe, but as it makes copies of the old ones is not an issue in any way.
 
Old 10-10-2003, 12:03 PM   #12
sanjiv
Member
 
Registered: Sep 2003
Distribution: Fedora 7
Posts: 34

Original Poster
Rep: Reputation: 15
thanks!

I really appreciate your help in this regard.

Sanjiv
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/src/linux not there? blames Linux - Software 6 10-15-2004 06:06 AM
where is /usr/src/linux matt_w_lambert Mandriva 5 12-26-2003 12:29 AM
I don't have /usr/src/linux ?!?!? Nikon01 Slackware 9 08-08-2003 12:23 AM
/usr/src/linux player_dos Linux - Newbie 2 07-20-2003 10:49 PM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

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

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