Access with SAMBA/CIFS Print

  • samba, cfis, windows, share
  • 0

SAMBA/CIFS

You can link your Offsite Storage Space via Samba/CIFS. You can use the following UNC path.

If you are using your main account, the share name is backup.

If you are using a sub-account, you must use the username of the sub-account as the username and share name.

Linux/Unix:

//<sr-your_storage_number>.mycoreserver.com

Windows

\\<sr-your_storage_number>.mycoreserver.com\<share_name>

If you use a FritzBox Router from AVM, it is necessary to deactivate the NetBIOS filter for Samba/CIFS to work. Please see point 4 of https://en.avm.de/service/fritzbox/fritzbox-7330/knowledge-base/publication/show/1083_Cannot-access-FRITZ-Box-home-network-using-port-sharing/ for more information.

Linux

In Linux-based systems you can use the following command on the CLI to mount the file system:

mount.cifs -o user=<username>,pass=<password> //<sr-your_storage_number>.mycoreserver.com/backup /PATH/FOLDER

By adding the following line to /etc/fstab, your system will automatically mount the file system at boot. (It is a single line!):

//<sr-your_storage_number>.mycoreserver.com/backup /mnt/backup-server cifs iocharset=utf8,rw,credentials=/etc/backup-credentials.txt,uid=<system account>,gid=<system group>,file_mode=0660,dir_mode=0770 0 0

The file /etc/backup-credentials.txt (mode 0600) should contain two lines as follows:

username=<username>
password=<password>

In Debian-based distributions, the command is provided via the package cifs-utils.

apt-get install cifs-utils

On Debian Wheezy based systems, edit the parameters as follows if you are having problems:

rsize=65536,wsize=130048

You should also add the following lines to /etc/rc.local:

modprobe cifs
echo 0 > /proc/fs/cifs/OplockEnabled

FreeBSD

On FreeBSD, you can mount the Offsite Storage Space as follows:

Add the following line to /etc/fstab

//<username>/backup /mnt/storagebox smbfs rw,-N,-I=<sr-your_storage_number>.mycoreserver.com,-U=<username> 0       0

Replace <username> with your assigned username. Also you need to use mkdir /mnt/storagebox to create the local directory if it does not already exist.

Add the following lines to /etc/nsmb.conf

[<username>]
charsets=UTF8:UTF8
[<username>:<username>]
password=$crypt-string

Create the crypt-string with smbutil crypt.

Windows

In Windows, use the following instructions to connect your Offsite Storage Space as a network drive with its own drive letter:

  1. Open Windows Explorer.
  2. Windows 7: On the left, click on Computer and then at the top on Map network drive.
    Windows 8/10: On the left, click on This PC. And then at the top click on Computer and then on Map network drive.
  3. In the new dialog, select a network drive letter of your choice and enter \\<sr-your_storage_number>.mycoreserver.com\backup for the folder. Enter a check next to Reconnect at login if you want to automatically establish a connection upon starting the system.
  4. When you are asked for login information, you should enter the username and password you used for your Offsite Storage Space. Optional, you can save the login information in Windows.
  5. The setup of your Offsite Storage Space as a network drive is now finished and can be found as separate drive under This PC (Windows 8.1/10) or Computer (Windows 7/8).

Error with files larger than 4 GB

If there are errors when copying files that are 4 GB or larger, then it can help to deactivate caching. To do so, the Offsite Storage Space must be mounted with the extra parameter -o cache=none.

Encrypt SAMBA connection

To encrypt a SAMBA connection, add the following option to your mount command: seal

Example:

mount.cifs -o seal,user=<username>,pass=<password> //<sr-your_storage_number>.mycoreserver.com/backup /PATH/FOLDER

Please note that this feature is only available in newer Linux versions (e.g. starting with Ubuntu 18.04).

 

Got a question? Connect with us and Create a Ticket.


Was this answer helpful?

« Back