It seems that there’s not much out there on automatically mounting a network shared drive on Linux Mint.  While these instructions specific Mint, it should work on various other Linux distributions such as Ubuntu as well.

Create your mount point

First, you need to create your mount point.  Personally, I usually use something in my home directory, but feel free to use whatever you want.  I’m going to assume that you know how to create directories in Linux already.

Edit fstab

Next, you just need to edit your fstab.  To so do, enter this in the terminal:

sudo nano /etc/fstab

Now that your fstab is up, add the following line:

//192.168.1.1/Media /home/user/networkdrive cifs guest,uid=1000,iocharset=utf8  0  0

In this line, I am connecting to a drive attached to a share named Media my Linksys router.  I allow all users that are within my network to connect to it, so I have mounted it with guest access.

Mount all drives

Now that everything is all set in your fstab, you just need to mount all drives.  To so do, enter this in your terminal:

sudo mount -a

As your network drive is now set to automatically mount, this command will mount this drive, as well as anything else that is configured to automatically mount.

You’re all set!  Enjoy mounting your network drives.

Share this post: