Link to home
Start Free TrialLog in
Avatar of nagaharikola
nagaharikolaFlag for Afghanistan

asked on

how to use modprobe command

Hi,
I want to use modprobe command instead of insmod command to insert module.
but

"modprobe mydevice" is not working and giving error as mydevice not found.

what is the correct way to use modprobe command
Avatar of rindi
rindi
Flag of Switzerland image

As long as you are root or using "sudo" to act as root, your above command is OK. But of course the module you are trying to load must exist on the PC (available modules are usually located under /dev/modules/"Kernel-Version"/.... and have a .ko extenstion.

Another thing to remember is that there should also be a device attached to the PC that needs that module to run.

if you run "man modprobe" you get a short info on how to use modprobe.
ASKER CERTIFIED SOLUTION
Avatar of Crunched
Crunched

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If it's still not working, after following the above advice, please provide the specific example of the module you are trying to load and also provide the exact error message.

such as

# modprobe usblp
FATAL: Module usblp not found.