Mapping a Network Drive

From SynologyWiki
Jump to: navigation, search

Please refer to the How to share data locally using the Synology server as a File Server for further background information about this article.

How to map a drive using a Mac OS X "Leopard"-based Computer

Basic overview: This will guide the user in creating a connection on a Leopard Computer to the Synology system

Step 1:

Begin by adjusting the Finder Preferences to include Connected Servers to be shown on the Desktop when connected


Step 2:

  • Open the Connect to Server Utility under the Go Menu
  • Enter the server address of the Synology Server
    • smb:// is the default protocol, and is enabled by default. This is the common protocol for most Windows and Apple connections
    • afp:// is another valid protocol called Apple Filing Protocol (AFP). It must be enabled on the Synology System, where it is (currently) erroneously called AppleTalk.
    • MacOSX will write .DS_Store files on network servers as part of Finder behavior. These files are used to remember the last look and feel of the folder, and are not recommended for server volumes. Please see the following link to learn how to prevent the creation of these files on network shares.
    • The IP address or the Synology Server name may be used
  • After entering a valid address, click Connect.

Step 3:

Enter the credentials needed to access the Synology System


Step 4:

Select a Share to map on the Leopard Computer


Step 5:

The Share has successfully mapped on the Leopard Desktop. Note that a share icon now appears on the right hand side.


How to make Leopard automatically map a drive on start-up

Basic overview: This will guide the user in making a map drive connection automatically, when the user logins to Leopard. Familiarity with mapping a drive on Leopard is required, please look here for further information.

Step 1:

Open the Connect to Server utility, select a server to login to. When credentials is requested, enter the credentials need, and make sure that Remember this password in my keychain is enabled.


Step 2:

Open the System Preferences and click on Accounts under the System Category


Step 3:

  • Select the user account which requires the map drive to be connected automatically.
  • Select Login Items
  • Click-n-Drag the map drive connection from the desktop to the item list

Step 4:

Enable the item by clicking on the check box.


Alternative Solutions

How to map a drive using a "Windows"-based computer

Basic overview: this will guide the user in creating Map Drive connections to the Synology system for Windows XP or Windows Vista environments.

Method 1: Via Synology Assistant

Step 1:

  • Launch the Synology Assistant
  • Select the server to be used
  • Click Map Drive

Step 2:

Enter the credentials to access the Synology Server


Step 3:

Select a share to map from the Synology Server


Step 4:

  • Select an available drive letter to map the drive
  • Enter the credentials, these will be used so that Windows will remember the connection
  • Enable Reconnect at login

Step 5:

Windows will open the map drive connection upon successful connection


Method 2: Via Windows Explorer/Network Explorer

Step 1a:

From Windows Explorer, go to Tools -> Map Network Drive


Step 1b:

  • Using Windows Network Explorer, browse to the share requested
  • Right Click on the share in question, and click on Map network drive

Step 2:

  • Select an available drive letter which will be used for the map drive
  • Verify that the path is correct to the share
  • Enable Reconnect at Login

Step 3:

  • Enter the credentials to access the share
  • Enable Remember my password

Step 4:

Here, the map drive is shown successfully connected


Method 3: Via Windows Command Prompt

Note: this method is recommended for experienced Windows Administrators

Step 1:

  • Launch the command prompt
  • Type the following code
net use z: \\synologybox\synodemo /user:synodemo password /persistent:yes


Further tips and suggestions

Please click here to see further tips, common error messages and suggestions when mapping a drive under Windows.

How to map a drive using a Linux/Unix Environment

Basic overview: This will cover basic commands needed to be entered in a Linux Terminal Environment. Please consult with each Linux Distribution support or community forum for advanced techniques.

Basic Method

1. Begin by creating a mount point for the map drive

mkdir /mnt/win

2. Edit the /etc/fstab file, add the following line

//synologybox/synodemo /mnt/win cifs user,uid=yourusername,gid=users,rw,suid,credentials=/etc/cifspwd 0 0

3. Create the file /etc/cifspwd with your login credentials and secure it:

echo username=yourusername > /etc/cifspwd
echo password=yourpassword >> /etc/cifspwd
chmod 0600 /etc/cifspwd

4. Mount the drive with the following command

mount -a

Ubuntu 10.10

1. Begin by creating a mount point for the map drive (aka an empty folder where you will be able to mount your nfs folder)

sudo mkdir /media/mynas

you can replace mynas by anyname you want your nas to be called on your Ubuntu and you can also choose a differant path if you want to.

2. then intall the nfs-kernel

sudo apt-get intall nfs-kernel

3. reboot your computer or restart the nfs service

4. Edit the /etc/fstab file

sudo gedit /etc/fstab

then add at the end of the file add:

192.168.0.x:/volume1/TheFolderYouWantToShare /media/mynas nfs nouser,rsize=8192,wsize=8192,atime,auto,rw,dev,exec,suid 0 0

5. then mount the drive using this commande

mount -a

OpenSuse 11.X + embedded password in fstab

1. Begin by creating a mount point for the map drive

mkdir /mnt/win

2. Edit the /etc/fstab file, add the following line

//diskstation/win /mnt/win cifs iocharset=utf8,user=youSynologyUserLogin,password=youSynologyUserPassword,rw,uid=yourOpenSuseLogon,gid=users

3. Mount the drive with the following command

mount -a

Common CIFS error messages

Error: file ... already exists

You are using an outdated firmware with case-insensitive ext3 filesystem. Upgrade to the latest firmware.

Error: noperm Argument

Use this argument if errors are encountered in reading files which were created on the Map drive after it has been mounted.

//synologybox/synodemo /mnt/win cifs user,uid=yourusername,gid=users,rw,suid,noperm,credentials=/etc/cifspwd  0 0

Error: CIFS Mount Failure

If Linux displays the error

  • mount error: cifs filesystem not supported by the system

Please use the following mount command

smbmount //synologybox/synodemo /mnt/win -o user,uid=yourusername,gid=users,rw,suid,credentials=/etc/cifspwd 0 0

Further Reading