Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
could not generate /etc/modprobe.conf! [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
KWhat
l33t
l33t


Joined: 04 Sep 2005
Posts: 660
Location: Los Angeles

PostPosted: Wed Oct 03, 2007 6:39 am    Post subject: could not generate /etc/modprobe.conf! [Solved] Reply with quote

Code:
 * Updating /etc/modprobe.conf by hand ...
 * Warning: could not generate /etc/modprobe.conf!                              [ !! ]
 * Updating modules.dep ...                                                     [ ok ]


I am unable to find a satisfactory solution.


Last edited by KWhat on Thu Oct 04, 2007 5:25 pm; edited 2 times in total
Back to top
View user's profile Send private message
Dottout
l33t
l33t


Joined: 07 Mar 2006
Posts: 882

PostPosted: Wed Oct 03, 2007 7:07 am    Post subject: Reply with quote

probably you have something wrong in /etc/modprobe.d/
did you run update-modules with -f flags option?
Back to top
View user's profile Send private message
KWhat
l33t
l33t


Joined: 04 Sep 2005
Posts: 660
Location: Los Angeles

PostPosted: Wed Oct 03, 2007 3:08 pm    Post subject: Reply with quote

yes that is what causes this error, it appears that update-modules works ok but with the -f it causes the above error. Most the solutions i have already tried failed.

I.E. remove the /etc/mod* files, update-modules --kernel-version=2.4.22-gentoo-r5 and i cant seem to find much about it in the forums.
Back to top
View user's profile Send private message
dwardo
n00b
n00b


Joined: 10 Nov 2004
Posts: 57
Location: France

PostPosted: Thu Oct 04, 2007 3:07 pm    Post subject: Reply with quote

I had the same probleme so I took out all the files in /etc/modules.d and them copied them back one by one (running update-modules force each time) until I found the culprit...

Guess who it was ?

nvidia (and this is installed by the nvidia package... I have not edited it... double checked by moving it + re-emerging nvidia-drivers)

So next step was to comment all the lines (only three in fact) out to find the culprit...

Guess which one of these :
Code:
alias char-major-195 nvidia
alias /dev/nvidiactl char-major-195
options nvidia NVreg_DeviceFileMode=432 NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=27 NVreg_ModifyDeviceFiles=1


I give it to you:
Quote:
alias char-major-195 nvidia

If i comment it out the "* Warning: could not generate /etc/modprobe.conf!" disappears for ever...

Seems I had 2 extra lines in /etc/modules.d/aliases (don't remember when they were added, but i removed them now):
Code:
# Old nvidia support ...
alias char-major-195 NVdriver
alias /dev/nvidiactl char-major-195


so char-major-195 was being aliased twice...

All is well for me...

dwardo
Back to top
View user's profile Send private message
KWhat
l33t
l33t


Joined: 04 Sep 2005
Posts: 660
Location: Los Angeles

PostPosted: Thu Oct 04, 2007 5:25 pm    Post subject: Reply with quote

Thanks dwardo!

I ran update-modules -f -v and found that snd-card-0 was causing an invalid dup alias. upon inspecting the file i noticed nothing out of the ordinary so backed up the modules.d/alsa file and reinstalled alsa-lib alsa-driver alsa-oss alsa-utils and its all better =)

Thanks again!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum