← Back to team overview

enterprise-support team mailing list archive

[Bug 1896699] Re: Mounting a share in fstab fails with BAD_NETWORK_NAME

 

> mount -t cifs //192.168.1.200/Drive_E /mnt/server_e -o credentials=/root/.smbcredentials_server
> 
> The following fstab entry fails:
> //server/Server_E /mnt/server_e cifs uid=0,credentials=/root/.smbcredentials_server,file_mode=0755,dir_mode=0755,vers=2.1,sec=ntlmssp 0 0

> [ 2079.955734] CIFS VFS: BAD_NETWORK_NAME: \\192.168.1.200\Server_E
CIFS VFS: cifs_mount failed w/return code = -2

This error usually means the share name is incorrect. Have you checked
your fstab file for extraneous characters, bad line-ending, that kind of
stuff? Try "cat -vet /etc/fstab" as that will show control characters.

You also have quite different options in the fstab line versus your
shown command line, but I suspect you tested many combinations already
and just pasted one of the iterations.

Also, try to start with a simpler fstab line. For example:
//192.168.1.200/Drive_E /mnt/server_e cifs 0 0

And go from there if it works.

Regarding the documentation, the cifs mount options are listed in the
mount.cifs manpage

Some people have also been getting hard to debug cifs errors and fixed
them by installing keyutils. I can't say that's the case here, as the
command line works and I don't see evidence of kerberos authentication,
but you might try that.


** Package changed: samba (Ubuntu) => cifs-utils (Ubuntu)

** Changed in: cifs-utils (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to samba in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1896699

Title:
  Mounting a share in fstab fails with BAD_NETWORK_NAME

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/1896699/+subscriptions


References