Skip to content
Search

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):

sudo mount -t cifs -o username=yourid,password=passkey //192.168.0.87/20tb_data ./nas

Mount with SMB1:

sudo mount -t cifs -o username=yourid,password=passkey,vers=1.0 //192.168.0.87/20tb_data ./nas

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:

sudo mount -t cifs -o username=yourid,password=pass,vers=1.0 ...

See also

Favorite site

author Zer0 sitemap