LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2005, 12:18 AM   #1
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Rep: Reputation: 30
Linux boots without modprobe.conf


Can Linux kernel 2.6 still boot even without /etc/modprobe.conf?
 
Old 04-01-2005, 03:08 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
why don't you try it and see?
 
Old 04-01-2005, 03:22 AM   #3
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
that's what's happening to my system now.
 
Old 04-01-2005, 03:24 AM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
so, what's the question then?
lol
 
Old 04-01-2005, 04:42 AM   #5
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
modprobe.conf contains directives for peripheral devices (like sound cards, nic) and there is no reason why linux can't boot without it.
 
Old 04-01-2005, 05:19 AM   #6
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
I've been using linux for years, and my mod{ules,probe}.conf has always been empty or non-existent. And I can't think of any reason to start using it.

Am I missing something?
 
Old 04-02-2005, 04:57 AM   #7
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
i better get straight to the point.

Upon upgrading to kernel 2.6 you should translate your modules.conf to modprobe.conf using ./generate-modprobe.conf. I used module-init-tools 3.2 pre 1. One of my problems was it warned me about the modules being not translated. I though it was ok since my system booted fine with the sounds working after the upgrade.

i discovered that modules do not load after X complained being unable to load the NVIDIA module after installing the NVIDIA driver. I just do not know how to fix this.
 
Old 04-02-2005, 05:46 AM   #8
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by piggysmile
i better get straight to the point.

Upon upgrading to kernel 2.6 you should translate your modules.conf to modprobe.conf using ./generate-modprobe.conf. I used module-init-tools 3.2 pre 1. One of my problems was it warned me about the modules being not translated. I though it was ok since my system booted fine with the sounds working after the upgrade.

i discovered that modules do not load after X complained being unable to load the NVIDIA module after installing the NVIDIA driver. I just do not know how to fix this.
You need to recompile the nvidia driver whilst running the 2.6 kernel. Then you might have to modprobe nvidia before running startx.
 
Old 04-02-2005, 06:44 AM   #9
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
in kernel 2.4 the NVIDIA driver module loads automatically. even though i can make an autoscript for that i know something went wrong with my kernel upgrade process and its somewhat related to modprobe.conf.
 
Old 04-02-2005, 07:18 AM   #10
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by piggysmile
in kernel 2.4 the NVIDIA driver module loads automatically. even though i can make an autoscript for that i know something went wrong with my kernel upgrade process and its somewhat related to modprobe.conf.
The first time after recompiling I needed to load the nvidia module manually. Every time after than it was automatic.
 
Old 04-02-2005, 08:43 AM   #11
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
"Q: My X server fails to start, and my X log file contains the error:

"(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!"

A: The X driver will abort with this error message if the NVIDIA kernel
module fails to load or the device files aren't present.

If you receive this error, you should check the output of `dmesg`
for kernel error messages and/or attempt to load the kernel module
explicitly with `modprobe nvidia`. If unresolved symbols are
reported, then the kernel module was most likely built against a
Linux kernel source tree (or kernel headers) for a kernel revision
or configuration that doesn't match the running kernel.

You can specify the location of the kernel source tree (or headers)
when you install the NVIDIA driver using the --kernel-source-path
command line option (see `sh NVIDIA-Linux-x86-1.0-7167-pkg1.run
--advanced-options` for details).

If 'lsmod' reports that the "nvidia" kernel module is loaded, the
device files (/dev/nvidiactl, /dev/nvidia0..7) may be missing."
-NVIDIA Accelerated Linux Driver Set README & Installation Guide

So i think it really has something to do with modprobe.conf. Komakino, could you please check your modprobe.conf and see if you have the NVIDIA module entry?

I think that is the problem.

Last edited by piggysmile; 04-02-2005 at 08:44 AM.
 
Old 04-02-2005, 09:07 AM   #12
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
There is nothing nvidia related in my modprobe.conf file. The only lines are two I added myself for my network card and wireless card.

Did you actually compile the nvidia kernel module against the 2.6 kernel? Because the one from your 2.4 kernel won't work.

By the way, what output do you get from:
modprobe nvidia
?

Last edited by Komakino; 04-02-2005 at 09:20 AM.
 
Old 04-02-2005, 05:20 PM   #13
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
in order for me to enable the NVIDIA driver, i have to login first and do modprobe nvidia then logoff-login to X. i dont get any unresolved symbols so it really has something to do with modprobe.conf. Which version of module-init-tools did you use? Almost all the 2.4-2.6 migration documents i read contradict each other regarding its version.
 
Old 04-04-2005, 06:04 PM   #14
piggysmile
Member
 
Registered: Apr 2004
Location: Philippines
Posts: 175

Original Poster
Rep: Reputation: 30
Answer: I realized it wasnt really with the modprobe.conf. It had something to do with the version of module-init-tools. All i did was to upgrade it. It's working fine now. Thanks.
 
  


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
How do I select which kernel the server boots with? grub.conf? abefroman SUSE / openSUSE 3 06-20-2005 02:56 PM
Is there a way to change which kernel/os boots without modifying grub.conf? niverson Linux - Software 2 01-05-2005 04:14 PM
modprobe.conf from modules.conf Vaxon Linux - Hardware 1 09-22-2004 05:22 AM
[FC2] How to write a modprobe.conf from a module.conf??? Coume Fedora 0 05-31-2004 03:40 AM
modprobe.conf howto demmylls Linux - General 1 01-21-2004 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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