The Simple Way to Mount a Network Drive on Lubuntu – Ubuntu – Debian

There are lots of answers out there for this problem and they are all absurdly complicated. Here’s the easy way to do it and it takes about 2 minutes.

If you don’t have cifs installed then you’ll need to install the utils package. It’s not installed by default with lubuntu. The command is “sudo apt-get install cifs-utils

Create a director to map this folder to in your media folder “sudo mkdir /media/{your folder name}

Then you need to edit your fstab file. “sudo leafpad /etc/fstab

To the end of the file add the following line; remember to replace the sections in brackets with your information
//{your drive IP address}/{any sub folders you want} /media/{your folder name} cifs username={drive_username},password={drive_password}

To test if it’s working type “sudo mount -a” if you did it wrong this will give you some useful error messages. Unfortunately cifs only supports IP addresses currently so you’re stuck with that. It’s generally a good idea to give things like a network drive a static IP address.

Earlier today I installed some updates and ended up having a problem with my mount. I had to add a version flag to the end of my fstab line to get it to work. vers=1.0 I tried vers=2.0 and vers=3.0 which did not work for me.
//192.168.1.1/volume /media/nas cifs username=****,password=****,vers=1.0

9 thoughts on “The Simple Way to Mount a Network Drive on Lubuntu – Ubuntu – Debian

  1. after several hours trying this mothod to mount a network hard drive i finally got it to work with a few modifications and clarifications on the above instructions.

    the only step that is confusing is the fstab editing the final line should be composed as folows.

    so in my example we mounted a network drive this is how my line read

    //192.168.1.146/blackbox media/drobo auto

    so its the ip address of the netwoek hard drive followed by the root directory then the folder you want it mounted to media/drobo and finaly the file system type to auto as cfis would not work.

    note pleas place spaces in command line it will not work if you dont,

    hope this helps!

  2. Firstly, how do you get your drive IP address? Why a media folder? I create a share folder on my desktop, believe I have permissions set properly. Why can’t this be done with a GUI, like Suse does?

  3. I got the IP address. cifs_utils was already set. However, editing fstab:
    # /etc/fstab: static file system information.
    #
    # Use ‘blkid’ to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    #
    # / was on /dev/sda1 during installation
    UUID=7e984a92-54c5-4a0e-8053-ce1c00b42572 / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=295ebd8b-f8f8-4d53-963d-d5fa13ec46ca none swap sw 0 0
    nothing I see I can edit to your configuration. TIA.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.