/sbin/mount.davfs: No free coda device to mou

Help
2006-05-22
2013-04-16
  • When I try to use the software it appears to authenticate properly and then I get this error:

    /sbin/mount.davfs: No free coda device to mount

    Can someone tell me what this means and how to fix it?

     
    • Can anyone help with this????

       
    • Werner Baumann
      Werner Baumann
      2006-05-25

      Hello Michael,

      davfs2 uses one of the coda devices /dev/cfs0 to /dev/cfs4 to connect to the coda kernel module. At startup it tries to find or create one that is not yet in use.

      This error may occur, if your kernel does not support the coda files system or the coda module is not loaded. You may have a look at /proc/filesystems.
      $ lsod will show if the coda module is loaded
      and
      # modprobe coda
      will load the module, if available.

      As there are only 5 coda devices available in rare cases it may also happen that all of them are used by somebody else.
      It may also happen, that davfs2 fails to create the device.

      You may try:
      - search the /dev directory for coda devices before and after trying to start davfs2.
      - If there are no coda devices you may create one (in case davfs2 fails to do so):
      # mknod /dev/cfs0 c 67 0
      or
      # mknod /dev/cfs4 c 67 4

      - you may search for other processes using coda devices
      # lsof /dev | grep 67

      Greetings
      Werner

      P.S.:
      The error message should distinguish the different cases.

       
      • I am running Redhat Linux WS 4 (kernel version 2.6.9-34.ELsmp)

        I was told that coda was built into all 2.6 kernels.

        here is more information:

        # modprobe coda
        FATAL: Module coda not found.

        # ls -l /dev/cfs*
        c---------  1 root root 67, 0 May 22 14:43 /dev/cfs0
        c---------  1 root root 67, 1 May 22 14:43 /dev/cfs1
        c---------  1 root root 67, 2 May 22 14:43 /dev/cfs2
        c---------  1 root root 67, 3 May 22 14:43 /dev/cfs3
        c---------  1 root root 67, 4 May 22 14:43 /dev/cfs4

        # lsof /dev | grep 67
        sshd       2679    root    0u   CHR        1,3        1580 /dev/null
        sshd       2679    root    1u   CHR        1,3        1580 /dev/null
        sshd       2679    root    2u   CHR        1,3        1580 /dev/null
        smbd       2867    root    0u   CHR        1,3        1580 /dev/null
        smbd       2867    root    1u   CHR        1,3        1580 /dev/null
        smbd       2867    root    3r   CHR        1,9         468 /dev/urandom
        gnome-set  4167 mmcleod    0u   CHR        1,3        1580 /dev/null
        gnome-set  4167 mmcleod    1u   CHR        1,3        1580 /dev/null
        gnome-set  4167 mmcleod    2u   CHR        1,3        1580 /dev/null

        the only time I see an entry in the /var/log/messages is when I have authentication failure.

        Do I need to add something to modules.conf or modprobe.conf ?

        thanks,
        Mike

         
    • Werner Baumann
      Werner Baumann
      2006-05-26

      Hello Mike,

      the cfs0 etc. devices are created by davfs2. But your kernel has no coda file system.

      I had reports earlier that Red Hat does not support coda (don't know the reason). So you will have to compile your own kernel (with sources from kernel.org). Maybe it is possible to compile just the coda module, but I am not familiar with this.

      Greetings
      Werner