Accessing the network disk (Z:) from Ubuntu

Download and install cifs-utils:

sudo apt-get install cifs-utils

Add the following to your ~/.ssh/config and replace yourusername with your UiO username:

Host imbv-hafting
    User yourusername
    LocalForward 27022 lh-frontend01:139

Now set up a connection to the server:

ssh imbv-hafting

Create the directory where the file system should be mounted:

sudo mkdir /media/imbv-hafting

Open a new terminal window and mount the file system (replace yourusername with your UiO username):

sudo mount -t cifs -o user=yourusername,port=27022,uid=1000,gid=1000 //localhost/imbv-hafting /media/imbv-hafting

That’s it! You should now be able to access the network disk at /media/imbv-hafting.