Cannot mount remote drive. I get the error: mount.cifs: bad UNC (/servername//data.xxx.xxx.ac.uk/)
Matthew Martinez
I am trying to access a remote drive from my PC using fstab but I get an error:
$ sudo mount -a
mount.cifs: bad UNC (/servername//)This is how my fstab looks:
/servername// /media/windowsshare cifs iud=myuserid,password=mypassword,iocharset=utf8,sec=ntlm 0 0How can I fix it?
2 Answers
UNC syntax is //server/share, not /server//share/. Note double slash before the server name, one slash between the server name and the share name.
You have to use double slash for mounting command. Like this
sudo mount -t cifs // /media/usb/ -o user=admin