Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Cannot mount remote drive. I get the error: mount.cifs: bad UNC (/servername//data.xxx.xxx.ac.uk/)

Writer 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 0

How 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.

3

You have to use double slash for mounting command. Like this

sudo mount -t cifs // /media/usb/ -o user=admin

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy