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

MapDriveLeopard1.1.jpg

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.
MapDriveLeopard1.2.jpg

Step 3:

Enter the credentials needed to access the Synology System

MapDriveLeopard1.3.jpg

Step 4:

Select a Share to map on the Leopard Computer

MapDriveLeopard1.4.jpg

Step 5:

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

MapDriveLeopard1.5.jpg

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.

MapDriveLeopard2.1.jpg

Step 2:

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

MapDriveLeopard2.2.jpg

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
MapDriveLeopard2.3.jpg

Step 4:

Enable the item by clicking on the check box.

MapDriveLeopard2.4.jpg

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
MapDriveWindows01.jpg

Step 2:

Enter the credentials to access the Synology Server

MapDriveWindows02.jpg

Step 3:

Select a share to map from the Synology Server

MapDriveWindows03.jpg

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
MapDriveWindows04.jpg

Step 5:

Windows will open the map drive connection upon successful connection

MapDriveWindows05.jpg


Method 2: Via Windows Explorer/Network Explorer

Step 1a:

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

MapDriveWindows06a.jpg

Step 1b:

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

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
MapDriveWindows07.jpg

Step 3:

  • Enter the credentials to access the share
  • Enable Remember my password
MapDriveWindows08.jpg

Step 4:

Here, the map drive is shown successfully connected

MapDriveWindows09.jpg


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
MapDriveWindows10.jpg

Notes


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

Personal tools
Community Resources