View previous topic :: View next topic |
Author |
Message |
Sephiroth n00b
Joined: 30 Jun 2003 Posts: 27 Location: California, USA
|
Posted: Mon Feb 16, 2004 7:16 pm Post subject: Modprobe Error using Hotplug |
|
|
Sorry for what is probably an easy answer but I couldn't find anything in the posts on my problem.
Here it is: I've compiled my own 2.4 kernel and am using hotplug to insert modules automatically. Everything works great... when I log in as root. When I log in as my everyday user I get modprobe errors up the you know what. Obviosly my problem is with permissions. The problem I have is that I have no idea what files, folders, etc I need to change. What I want to do is set the permissions so that anyone in the wheel group can get modules inserted correctly.
Just some additionaly FYI that's probably not needed: I only have 1 user besides root, I used the GRP install because I don't have internet access (yet), and, again, I get NO errors when I log in as root.
Any information you could give me would be greatly appreciated. Thank you. _________________ You can't beat free! |
|
Back to top |
|
|
Catach Apprentice
Joined: 06 Nov 2003 Posts: 268 Location: Australia
|
Posted: Wed Feb 18, 2004 6:49 am Post subject: |
|
|
That's very interesting: i didn't think permissions came into module loading, as they should all be compiled with read access when you compile your kernel. To answer your question all modules are in /lib/modules/${VERSION}, seperated amoungst the sub directories there according to what type of modules they are. Try turning on module autoloading in your kernel if you haven't already and post the exact output of all "modprobe <module>" to see what error is being returned. _________________ Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles." |
|
Back to top |
|
|
Sephiroth n00b
Joined: 30 Jun 2003 Posts: 27 Location: California, USA
|
Posted: Wed Feb 18, 2004 10:18 pm Post subject: |
|
|
Thanks for the suggestiong. I'll try that later today. Also, here's another wierd part I just realized. Not all modules are causing errors. For example, I compiled my soundcard support as a module, and it works fine. I also have an NVIDIA card and the nvdidia.o module loads fine.
It's really wierd because, when I log in as root, I get no errors whatsoever. When I log in as my everday user, I get a whole bunch of "modprobe could not find ..." errors. Does anyone know how to check a log for hotplug (where it logs or if it has it's own log). The reason is that I don't get the errors until I log in and the errors appear before I have a command line to redirect the output. _________________ You can't beat free! |
|
Back to top |
|
|
Catach Apprentice
Joined: 06 Nov 2003 Posts: 268 Location: Australia
|
Posted: Thu Feb 19, 2004 2:02 am Post subject: |
|
|
Sephiroth wrote: | Thanks for the suggestiong. I'll try that later today. Also, here's another wierd part I just realized. Not all modules are causing errors. For example, I compiled my soundcard support as a module, and it works fine. I also have an NVIDIA card and the nvdidia.o module loads fine. |
You'll need to tell exactly what modules are not loading and the error message from 'insmod <module_name>' from the command prompt.
Sephiroth wrote: | It's really wierd because, when I log in as root, I get no errors whatsoever. When I log in as my everday user, I get a whole bunch of "modprobe could not find ..." errors. Does anyone know how to check a log for hotplug (where it logs or if it has it's own log). The reason is that I don't get the errors until I log in and the errors appear before I have a command line to redirect the output. |
I don't use hotplug, (i dont like waiting the 10 seconds for it to load up on boot ). I just append the names of the modules i want to load into the '/etc/modules.autoload.d/kernel-${KERNELVERSION}' file. Is 'module auto loading' turned on in your kernel? _________________ Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles." |
|
Back to top |
|
|
Sephiroth n00b
Joined: 30 Jun 2003 Posts: 27 Location: California, USA
|
Posted: Thu Feb 19, 2004 5:49 pm Post subject: |
|
|
Yep, it was the first thing I checked when I compiled my kernel. Also, I paid extra special attention to the error messages this time. Every single one of them mentioned the /dev directory or a subdirectory of /dev.
Anyway, I have to wipe my whole hard drive and reinstall everything this weekend anyway (I'm getting internet access after a year of not having it so I have to do a system restore to put the legal version of XP back on for the wife and I'm going to do a stage 1 install instead of GRP) so I think I'll start loading all my modules in /etc/modules.autoload.d/kernel-${KERNELVERSION} since it sounds like it might be a better solution for me. Thanks for all of your help. I really appreciate it. _________________ You can't beat free! |
|
Back to top |
|
|
Sephiroth n00b
Joined: 30 Jun 2003 Posts: 27 Location: California, USA
|
Posted: Fri Feb 20, 2004 4:08 pm Post subject: |
|
|
Oh joy. Well, I decided not to use hotplug anymore. I removed the daemon from the default runlevel, put every module that I had compiled in the /etc/modules.autoload.d/kernel-2.4 and rebooted. THE SAME THING HAPPENED. I log in as root, no problems. I log in as my user, and get a bunch of "modprobe cannot find /dev..." errors. All of the errors relate to /dev or a subdirectory. Again, my soundcard modules, video modules, network card modules, etc. still work. I'm using supermount right now so I think I'm going to remove that from my kernel and and see if that's causing the problem. _________________ You can't beat free! |
|
Back to top |
|
|
|
|
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
|
|