Skip to content

Mounting a network drive on Linux

Author: Gibran Hemani

Sometimes it's useful to be able to mount the ALSPAC R: drive on Linux e.g. to run the alspac R package etc.

If you are a direct user then you can do this -

First install the cifs-utils package e.g.

sudo apt-get install cifs-utils

Then you can mount the remote R:/ drive to somewhere locally:

mkdir -p /path/to/local/location
sudo mount -t cifs -o user=$USER,vers=3.0 //server.name/path/to/remote/location /path/to/local/location

You should be able to browse the files in there e.g. cd /path/to/local/location/ etc

Really important to unmount after use:

sudo umount /path/to/local/location

NB: for the path to the ALSPAC R:/ drive contact me or the ALSPAC team (or have a look here https://github.com/explodecomputer/alspac/tree/master/inst)