Mounting a share in fstab fails with BAD_NETWORK_NAME
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| cifs-utils (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
The following command works:
mount -t cifs //192.168.
The following fstab entry fails:
//server/Server_E /mnt/server_e cifs uid=0,credentia
There is an entry in hosts for server. It also fails with //192.168.
Sometimes it says:
No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[ 2079.955734] CIFS VFS: BAD_NETWORK_NAME: \\192.168.
CIFS VFS: cifs_mount failed w/return code = -2
trying vers=1.0 and vers=3.0 makes no difference.
There is no documentations of CIFS VFS error codes
There is no documentation of how to specify the SMB dialect.
People appear to have been having trouble with these things for at least the past 10 years.
I never had a problem with this on debian.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: samba 2:4.11.
ProcVersionSign
Uname: Linux 5.4.0-47-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu27.8
Architecture: amd64
CIFSMounts: /root/smb4k/
CasperMD5CheckR
CurrentDesktop: XFCE
Date: Tue Sep 22 17:35:02 2020
InstallationDate: Installed on 2020-09-18 (4 days ago)
InstallationMedia: Xubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
LANGUAGE=en_US
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SambaClientRegr
SourcePackage: samba
UpgradeStatus: No upgrade log present (probably fresh install)

Thank you for taking the time to report this bug and helping to make Ubuntu better.
Bug reporting is mostly about finding & fixing problems thus preventing future users from hitting the same bug.
I suspect a Support site would be more appropriate, eg. https:/ /answers. launchpad. net/ubuntu. You can also find help with your problem in the support forum of your local Ubuntu community http:// loco.ubuntu. com/ or asking at https:/ /askubuntu. com or https:/ /ubuntuforums. org, or for more support options please look at https:/ /discourse. ubuntu. com/t/community -support/ 709