Skip to content

Cifs-utils

Linux 에서 smb 마운트 유틸.

Examples

SMB2.1 이상의 버전 (SMB3 포함) 마운트:

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

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
워킹 그룹

Troubleshooting

버전 문제

sudo mount -t cifs ... 해서 다음 에러가 발생:

mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

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

요약하면 낮은 버전의 smb를 쓰려면 vers=1.0 옵션 추가해라:

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

See also

Favorite site