Tech Ferret (c) 2002-2018

Mount Samba Share In Xubuntu/Ubuntu 18.04
(And Xubuntu/Ubuntu 17.10)
This page shows how to use the mount command with Samba in Xubuntu/Ubuntu 18.04 using the mount command with the -t cifs parameter with shares not supporting SMB3 or SMB2.1.

After moving to Xubuntu 18.04 from Xubuntu 16.04, I found that mount commands that I had been previously using in Xubuntu 16.04 were failing. Searching the web I found various solutions that others had stated that they had used for Ubuntu 17.10 and 18.04. None of them worked until I found the solution stated by "LHammonds" on ubuntu forums. He suggested looking at the release notes for Ubuntu 18.04 LTS and trying "vers=1.0" to see if it fixed the problem the user was having. This was indeed the fix needed.

As stated in the excerpt below from the release notes for Ubuntu 18.04 LTS, The default CIFS/SMB protocol in CIFS mounts changed to use 2.1 or higher since Ubuntu 17.10. Less secure servers that do not support SMB3 or SMB2.1 will require to to add "vers=1.0" in the parameters for the mount command.

Excerpt From Ubuntu 18.04 LTS Release Notes:
Default CIFS/SMB protocol version change in CIFS mounts
Since 17.10, the default SMB protocol used when mounting remote CIFS filesystems via mount.cifs (from the cifs-utils package) changed to 2.1 or higher, depending on what is negotiated with the server. If no version is specified when mounting such a remote share, the following will be logged:

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.

Mount Share With Samba In Xubuntu/Ubuntu 18.04 (or 17.10)

  • Insert "vers=1.0" into your mount command.

  • Example: sudo mount -t cifs //servername/home/sam/adir/ ~/adir -o "username=sam,vers=1.0,file_mode=0777,dir_mode=0777"




Copyright (c) 2002-2018 Tech Ferret
techferret.com / techferret.net