SDU m-drive Personal Network Folder on Linux Machines

I’ve written this guide before somewhere, but always fails to find it when I need it, so here is again. A guide for students and employees at University of Southern Denmark SDU for mounting their personal folder, the m-drive, on a Linux machine.

First step is to figure out what the path to your m-drive is… on a Windows machine find the folder, right click and select properties. On the tab “DFS” there is a full path to the folder. The path displayed in the title bar, which includes something like “\dfs\data” in it, is not the right one. For employees of the Technical Faculty the path currently is: “\\tek-data0a.tek.c.sdu.dk\tekansatte”

You need “smbfs” and “cifs-utils” installed on your machine. On an Ubuntu machine write: “sudo apt-get install smbfs” in a terminal and you’ll get all the necessary components.

You can now mount the m-drive from a terminal with the following command:

sudo mount -t cifs -o username=<username>,domain=<domain>,password=<password>,iocharset=utf8,codepage=unicode,uid=1000,gid=1000 //tek-data0a.tek.c.sdu.dk/tekansatte/<username> /mnt

where you need to change <username>, <password> and <domain> to reflect your information. Also the path, in this case “//tek-data0a.tek.c.sdu.dk/tekansatte/<username>” should be changed to what you were seeing in the properties of the m-drive. Notice the backslashes have been changed into forward slashes.

For a permanent mount add the following to fstab:

//tek-data0a.tek.c.sdu.dk/tekansatte/<username>       /var/m-drive    cifs    credentials=/root/.smbpasswd_mdrive,_netdev,iocharset=utf8,codepage=unicode,uid=1000,gid=1000

where the credentials are stored in a file in the /root folder.

See here, here and here for more information, including credentials, _netdev and isocharset.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>