Difference between revisions of "Local Mounting of File Systems"

From HPC users
Jump to navigationJump to search
Line 16: Line 16:
# Open the File Explorer and Right-Click on "This PC". Select "Map Network Drive". Choose a letter for the network drive (e.g. V:) and enter the address as explained above. If you are not using your university account to login on your Computer, also tick "Using different credentials". Click "Finish" to proceed. You should be prompted for a user name (see below) and password. After entering both, the network drive should be ready to use. If you have problems, try to google "windows map network drive" for more detailed instructions.  
# Open the File Explorer and Right-Click on "This PC". Select "Map Network Drive". Choose a letter for the network drive (e.g. V:) and enter the address as explained above. If you are not using your university account to login on your Computer, also tick "Using different credentials". Click "Finish" to proceed. You should be prompted for a user name (see below) and password. After entering both, the network drive should be ready to use. If you have problems, try to google "windows map network drive" for more detailed instructions.  
# Alternatively, open a command windows (cmd.exe). The command "net use" will show you any connected network drives. Use the command "net use <drive letter> /d /y" to remove any unwanted connection. Replace "<drive letter>" by e.g. "V:". The command "net use <drive letter> <network address> * /user:w2kroot\abcd1234" will prompt you for your password and connect the network drive. Replace "<drive letter>" (e.g. "V:"), "<network address>" as shown above, and "abcd1234" with your user name.
# Alternatively, open a command windows (cmd.exe). The command "net use" will show you any connected network drives. Use the command "net use <drive letter> /d /y" to remove any unwanted connection. Replace "<drive letter>" by e.g. "V:". The command "net use <drive letter> <network address> * /user:w2kroot\abcd1234" will prompt you for your password and connect the network drive. Replace "<drive letter>" (e.g. "V:"), "<network address>" as shown above, and "abcd1234" with your user name.
In either case contact '''servicedesk@uni-oldenburg.de''' if you are getting an error message.
In either case contact '''hpcsupport@uni-oldenburg.de''' if you are getting an error message.


'''Note''': The username has to be specified with the domain name, e.g.: "w2kroot\abcd1234"
'''Note''': The username has to be specified with the domain name, e.g.: "w2kroot\abcd1234"

Revision as of 11:49, 29 January 2018

Shares under Windows

If you are using a Windows computer, the HOME, DATA and WORK directories of CARL and EDDY can be mounted as network drive by using

\\daten.uni-oldenburg.de\hpchome\

for HOME and

\\ces.hpc.uni-oldenburg.de\data
\\ces.hpc.uni-oldenburg.de\work

as addresses for DATA and WORK, respectively. After that, the username and password of your university account (also used for CARL and EDDY) will be requested to connect this share.

There are two ways, to connect to a network share on Windows (also see web pages of IT Services regarding the L:-drive):

  1. Open the File Explorer and Right-Click on "This PC". Select "Map Network Drive". Choose a letter for the network drive (e.g. V:) and enter the address as explained above. If you are not using your university account to login on your Computer, also tick "Using different credentials". Click "Finish" to proceed. You should be prompted for a user name (see below) and password. After entering both, the network drive should be ready to use. If you have problems, try to google "windows map network drive" for more detailed instructions.
  2. Alternatively, open a command windows (cmd.exe). The command "net use" will show you any connected network drives. Use the command "net use <drive letter> /d /y" to remove any unwanted connection. Replace "<drive letter>" by e.g. "V:". The command "net use <drive letter> <network address> * /user:w2kroot\abcd1234" will prompt you for your password and connect the network drive. Replace "<drive letter>" (e.g. "V:"), "<network address>" as shown above, and "abcd1234" with your user name.

In either case contact hpcsupport@uni-oldenburg.de if you are getting an error message.

Note: The username has to be specified with the domain name, e.g.: "w2kroot\abcd1234"

Shares under Linux

If you are using a Linux computer, the HOME and WORK directory of CARL and EDDY can be mount with the command

 sudo mount -t cifs -o workgroup=W2KROOT,username=<user>,file_mode=0600,dir_mode=0700,uid=<linux_username>,gid=<linux_group>  //daten.uni-oldenburg.de/hpchome <mount_point4home>

and

 sudo mount -t cifs -o workgroup=W2KROOT,username=<user>,file_mode=0600,dir_mode=0700,uid=<linux_username>,gid=<linux_group>  //daten.uni-oldenburg.de/hpcwork <mount_point4work>

<user> has to be replaced by the username you are using on CARL and EDDY. The place holder <mount_point4home> (or <mount_point4work>) has to be replaced by an valid, empty directory on your system. The variables <linux_username> and <linux_group> have to be replaced by the user- and group name under linux if the user and the group ID/name is different to the Windows user and group ID. When executing the command, sudo will first ask for your password of your local machine. After that, mount will ask for your password of CARL or EDDY.

Alternatively one can extend the file /etc/fstab by the lines

 //daten.uni-oldenburg.de/hpchome  <mount_point4home> cifs workgroup=W2KROOT,username=<user>,file_mode=0600,dir_mode=0700,uid=<linux_username>,gid=<linux_group>,noauto,users
 //daten.uni-oldenburg.de/hpcwork  <mount_point4work> cifs workgroup=W2KROOT,username=<user>,file_mode=0600,dir_mode=0700,uid=<linux_username>,gid=<linux_group>,noauto,users

and then mount the devices by

 mount <mount_point4home>
 mount <mount_point4work>

Here the sudo command is not needed due to the users option.

Note:

  • The mount command without the entry in the /etc/fstab needs root permissions. Thats why you have to add sudo to the mount command.
  • To mount CIFS file systems under Linux usually additional packages have to be installed. E.g. on Ubuntu 12.04LTS the package 'smbfs' and 'smbclient' have to be installed by sudo apt-get install smbfs. For Ubuntu 14.04LTS you'll need 'cifs-utils'. For other Linux distributions please search for 'cifs' or 'smb' in your package manager.
  • The file system has to be mounted after each reboot or shutdown. They are not mounted automatically
  • sudo caches the password for a certain time. So if you call sudo again, sudo doesn't ask for your password again.


Temporary Mount of Any Cluster Directory for Linux

Alternatively to mount any directory of the cluster on your local computer to may use sshfs for mounting. For most Ubuntu based systems you will require to install the package sshfs

 sudo apt-get install sshfs

Once this is done you can create a folder that will work as mount-point by

 mkdir myMountDir

Finally by typing

 sshfs abcd1234@carl.hpc.uni-oldenburg.de:/some/directiory/on/the/cluster ~/myMountDir

the directory /some/directiory/on/the/cluster will be mounted temporarily to myMountDir on your local machine.