depmod command in linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rahatekarabhijeet
    New Member
    • Jan 2007
    • 55

    depmod command in linux

    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.
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by rahatekarabhije et
    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.
    On most systems, you will need to be root in order to run depmod, insmod, and modprobe.

    Comment

    • rahatekarabhijeet
      New Member
      • Jan 2007
      • 55

      #3
      Originally posted by Motoma
      On most systems, you will need to be root in order to run depmod, insmod, and modprobe.
      i 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 working

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by rahatekarabhije et
        i 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 working
        It would help if you posted what error messages you are receiving when these commands fail to run.

        Comment

        • Colloid Snake
          New Member
          • Nov 2006
          • 144

          #5
          Originally posted by rahatekarabhije et
          i am executing those commands in root as a user.
          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 ( / ).

          Are you a member of the sudoers group, or did you switch to root using the 'su -' command before you tried?

          Comment

          • rahatekarabhijeet
            New Member
            • Jan 2007
            • 55

            #6
            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

            • Motoma
              Recognized Expert Specialist
              • Jan 2007
              • 3236

              #7
              Originally posted by rahatekarabhije et
              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.
              Okay, time for you to explain a little more about your system.
              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

              • rahatekarabhijeet
                New Member
                • Jan 2007
                • 55

                #8
                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

                Working...