I am not able to run the depmod command because of /lib/modules/*/modules.dep is read only, due to failure of depmod command i am not able to run modprobe command. Because depmod creates the entry in modules.dep file, and which is used by modprobe command for it's execution.
depmod command in linux
Collapse
X
-
-
On most systems, you will need to be root in order to run depmod, insmod, and modprobe.Originally posted by rahatekarabhije etI am not able to run the depmod command because of /lib/modules/*/modules.dep is read only, due to failure of depmod command i am not able to run modprobe command. Because depmod creates the entry in modules.dep file, and which is used by modprobe command for it's execution. -
i am executing those commands in root as a user.Originally posted by MotomaOn most systems, you will need to be root in order to run depmod, insmod, and modprobe.
i redirected the result in other location i ask for modprobe command to read from
that location by,
depmod -n module_name > file
modprobe -v < file
but this is also not workingComment
-
It would help if you posted what error messages you are receiving when these commands fail to run.Originally posted by rahatekarabhije eti am executing those commands in root as a user.
i redirected the result in other location i ask for modprobe command to read from
that location by,
depmod -n module_name > file
modprobe -v < file
but this is also not workingComment
-
Although you might be doing this, I just want to note that there is a difference between running AS root (switching using 'su -' or running a command via 'sudo'), and running IN the root directory ( / ).Originally posted by rahatekarabhije eti am executing those commands in root as a user.
Are you a member of the sudoers group, or did you switch to root using the 'su -' command before you tried?Comment
-
This is the error during execution of depmod command:
FATAL: Could not open /lib/modules/*/modules.dep.tem p for writing: Read-only file system.
due to failure in depmod command the modprobe command not able get the entry for module from modules.dep.
This is the error during execution of modprobe command:
FATAL: Module tun not found.Comment
-
Okay, time for you to explain a little more about your system.Originally posted by rahatekarabhije etThis is the error during execution of depmod command:
FATAL: Could not open /lib/modules/*/modules.dep.tem p for writing: Read-only file system.
due to failure in depmod command the modprobe command not able get the entry for module from modules.dep.
This is the error during execution of modprobe command:
FATAL: Module tun not found.
What distro are you using?
Live CD or Local install?
What kernel version?
What Filesystem are you using?
What user are you executing the command as?Comment
-
currently i am doing work on board support packages,
in which i am using squash fs in which dependancy file is read only with root
also,
that's why i am trying another way by which i can able to execute modprobe command,
so could it be possible to provide the things to modprobe command which it looks into depndency file by another way.Comment
Comment