Avatar of nagaharikola
nagaharikola
Flag 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
CLinuxLinux OS Dev

Avatar of undefined
Last Comment
Hugh McCurdy

8/22/2022 - Mon
rindi

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
Crunched

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Hugh McCurdy

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.
Your help has saved me hundreds of hours of internet surfing.
fblack61