How to connect to an openmediavault shared folder from a linux machine

  • Hi


    I have an RPi4 on which I have installed raspbian lite and openmediavault.


    I hooked up my external USB device, mounted it and set up a shared folder/file share to it using the following link for instructions:


    https://www.raspberrypi.com/tu…ox-raspberry-pi-tutorial/


    I would like to access this from my linux devices, so installed smbclient and cifs-utils and attempted to connect using the file manager on my ubuntu device - following the instructions given in this link:


    https://computingforgeeks.com/…shares-on-openmediavault/


    However when I try to do this I get an error saying :

    Zitat

    Unable To Access Location

    Failed to mount Windows share: Connection refused


    Does anyone know how I can go about debugging this issue ? Any logs I might be able to look at ?


    Is there some access control I need to configure on the file share ?


    I do not have a firewall running on my ubuntu client machine and as far as I know not on the openmediavault machine (I have not explicitly configured one).

    They are on the same subnet so presumably I do not need to open the samba port on the router ?

  • crashtest

    Hat das Thema freigeschaltet.
    • Offizieller Beitrag

    Did you

    • enable smb
    • create a user in OMV
    • create a shared folder in OMV
    • add shared folder to smb service
    • give user privileges to the shared folder?

    BTW on Linux you can also use nfs, which native Linux.


    some further reading

    https://wiki.omv-extras.org/doku.php?id=omv6:new_user_guide

    https://wiki.omv-extras.org/do…misc_docs:nas_permissions

  • Thank you for you reply.


    >give user privileges to the shared folder?

    No I did not explicitly do that because I could not work out/find out how to do it. The links I found referred to 'Access Rights Management' whic I could not find on the Web GUI. Do you know where it is ?


    Some further information - when I execute this command:

    Code
    sudo mount -t cifs -o user=admin //<ipaddress>/homemedia1 /mnt/homemedia1/


    I get

    Code
    $ sudo mount -t cifs -o user=admin //<ipaddress>/homemedia1 /mnt/homemedia1/
    
    Password for admin@//<ipaddress>/homemedia1:  **********               
    mount error(111): could not connect to <ipaddress>Unable to find suitable address.


    And the syslog output is:

    Code
    ...
    Sep 10 19:07:25 larrycotton-Latitude-E7440 sudo[162734]: pam_unix(sudo:session): session opened for user root by (uid=0)
    
    Sep 10 19:07:31 larrycotton-Latitude-E7440 kernel: CIFS: Attempting to mount \\<ipaddress>\homemedia1
    Sep 10 19:07:31 larrycotton-Latitude-E7440 sudo[162734]: pam_unix(sudo:session): session closed for user root
    Sep 10 19:07:31 larrycotton-Latitude-E7440 kernel: CIFS: VFS: Error connecting to socket. Aborting operation.
    
    Sep 10 19:07:31 larrycotton-Latitude-E7440 kernel: CIFS: VFS: cifs_mount failed w/return code = -111
    ...
  • Humble apologies - the documentation says:

    Code
    Under, Access Rights Management, User, in the Users tab, click on the +Add button.'


    and I was rather blindly looking for 'Access Rights Management', but I think I have a different version - 6.0.30-1 (Shaitan) and I think the UI has changed slightly. (possibly I have been looking at the wrong version of the documentation,? It is directly under 'Users' now.


    I can mount my my shared folders (existing and new) from my ubuntu laptop from both cli and filemanager - a good start. Now to try from windows and osmc.


    Thank you very much for for your help

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!