Cifs-utils
lastmod 2025-02-14created 2023-08-082 edits
Utilities for mounting SMB shares on Linux.
Examples
Mount with SMB2.1 or later (including SMB3):
Mount with SMB1:
Options
- domain=arg|dom=arg|workgroup=arg
- Workgroup
Troubleshooting
Version issue
Running sudo mount -t cifs ... produces the following error:
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Checking the log with dmesg:
[414831.589813] CIFS: Attempting to mount //192.168.0.87/20tb_data
[414831.589854] 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.
[414831.593381] CIFS VFS: \\192.168.0.87 Dialect not supported by server. Consider specifying vers=1.0 or vers=2.0 on mount for accessing older servers
[414831.593398] CIFS VFS: cifs_mount failed w/return code = -95
In short, to use an older version of smb, add the vers=1.0 option:
See also
Favorite site
- Ubuntu Manpage: mount.cifs mount.smb3 - mount using the Common Internet File System (CIFS)
- Mounting an SMB shared folder on Linux
Pages that link here