Ubuntu – How to mount Windows Share on Ubuntu


Currently having issues with mounting a drive to a Windows share via my Ubuntu 16.04 machine. Thoughts?

Sudo nano /etc/fstab:

// /media/Plex cifs 
online.target,vers=3.0 0 0'

Sudo mount -a

I don't receive any errors. Browsing to /media/Plex, I see that the folder is highlighted but can't see any media. When I do the following I get an error:

sudo mount -t cifs // /media/Plex
Password for root@//  *****************
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Best Answer

  • Here's what I have used:

    Where MY_WIN_NAME is my windows username
          WIN_PASSWD  is my windows login password
 is the ip address of my windows box
          SHARE_NAME   is the windows share name
          /home/myacct/m edia is the mount point:                 
    mount -t cifs   -o \ user=MY_WIN_NAME,password=WIN_PASSWD,rw,hard,nosetuids,noperm,sec=ntlm \
          //  \