Help for add and remove a remote share

With the release 15.2, the menu is improved and it is now no longer kept in experimental phase.

 

 

With this menu, you can :

·         Add a windows shared folder or any samba share on remote hosts

(with login and password)

·         Add a NFS share on a remote host

NFS is most of the time used by computers running Linux

·         Remove previous mountings of remote shares

·         Set boot status for each remote share

·         Try to remount a remote share that failed to mount previously

·         Refresh the remote known host

 

A.  Add a remote share

Select the option "Samba Access" or "NFS access" dependent on what kind of remote server you ant to connect to. Windows is using Samba for shared folders.

·         Remote host

Select the wanted remote host in the combobox
Or Enter the IP address with the pattern as given in the example (xxx.yyy.zzz.nnn) if you don't find the wanted Host

·         Remote share

In the second combobox select the wanted share
or Enter the name of the remote share used by the server.

For samba server this will be the shared folder name.
For NFS servers it is the folder name and the path, just as it is set in the exports file of the nfs server.


Note that Linux uses case sensitive folder names. So a folder with name "test" is not the same as "Test".
The Windows operating system does not use this difference and this can cause confusion.

·         Login and password

This is only required for samba servers, If the remote share is a public share without login, use any account known by the remote machine or just fill in what you like.

Note: with some Windows shares (using advanced sharing settings) or on MAC OS (shares like capsule Time Machine may use additional security mechanism), these shares are listed only if you use valid credentials. So after entering a valid login and password, click again on the samba radio control to update the remote shares list.

 

Click on the button "Create a Remote Share" to mount the remote share in the NAS.

If the mounting (making connection with) the remote share succeeded it will become visible in the backup menu without any errors.

The name will be the ip-address followed by nfs or smb dependent on which server you selected en then followed by the folder name (for nfs also the path). In the ip-adress dots "." are used as separators and for the rest "-" character. If you are a non admin user, your login is also added.
Examples:

Admin user :

A samba share with name "test" on a server with ip address 192.168.1.100 will be visible as "192.168.1.100-smb-test"

An nfs share with name "/share/1000/user/piet/test" on a server with ip address 192.168.1.100 will be visible as "192.168.1.100-nfs-user 2-test (2 is the folder level of test relative to share 'user')"

Non admin user (username as login used) :

A samba share with name "test" on a server with ip address 192.168.1.100 will be visible as "192.168.1.100-smb#username-test"

An nfs share with name "/share/1000/user/piet/test" on a server with ip address 192.168.1.100 will be visible as "192.168.1.100-nfs#username-user-2-test"


B. Remote shares management

At the bottom of the menu, a table lists the remote shares active on the NAS. if you aren't the admin user, you can unmount only your remote shares.

For each remote share, you find 2 (or 3) links :

'Link Yes/No' in the 'At next booting' column : to restore or not the remote share at the next booting

'Remove' to unmount definitively the remote share

'Mount' to try to mount a remote share that is not currently mounted : this can happen if the remote server (NFS or samba) is not running when the NAS is booting

 If you want to check periodically if the remote shares are still mounted, you can use cron with this job :

 


Warning:

After mounting the remote share in the NAS, it will be present  in /share/1000 folder of root file system of the NAS and also in  /mnt
Never delete such a share without unmounting it first. If you delete it without unmounting then all data in the share on the remote host will be deleted in case the remote host had set write rights enabled for sharing !

 

Normally the remote shares should not be visible in the shared folder list of the NAS web interface, so there is no risk of deleting them via File share management of the web interface of the NAS. However they will be visible if you connect via SSH using programs like Putty or WinSCP.


Remark: It is not possible to create a share on the NAS with the same name as used for mounting a remote share using the webinterface File share management menu: as you cannot use dots (".") in share names in the webinterface File share management menu to define a share.  
This should prevent to create by mistake a local share with the same name that would lead to above mentioned risk of deleting data in remote shares when removing a share via the File share management menu.

It has no (or little) use to show them in the smb server of the NAS as you can access them directly on the remote host using you PC. If you modify the firmware to make them visible in the samba server of the NAS then be aware of the risk of deleting all data on the remote host when deleting it using the File share management menu of the web interface.