% mount -t cifs -o username='kimchki',password='kimchki',rw //192.168.1.200/usbshare1/Downloads /root/z
| mount: mount //192.168.1.200/usbshare1/Downloads on /root/z failed: 명령을 지원하지 않음 |
어? 이상하다. 이런식으로 하는거 맞는거 같은데....
구글링을 해봤다.
"Mount cifs Operation not supported"
위의 제목으로 나와 같은 문제를 겪은 글들이 보였다.
% dmesg
에러 메세지가 무엇인지 확인해 보았다.
| [841095.586979] 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. [841095.597543] CIFS VFS: Dialect not supported by server. Consider specifying vers=1.0 or vers=2.0 on mount for accessing older servers [841095.599436] CIFS VFS: cifs_mount failed w/return code = -95 |
뭔지 모르겠지만 디폴트(default)가 어쩌구 저쩌구 그래서 1.0 으로 하라고 하네?
vers=1.0 구문을 추가했다.
% mount -t cifs -o username='kimchki',password='kimchki',rw,vers=1.0 //192.168.1.200/usbshare1/Downloads /root/z
오~ 잘된다.
※ 참고로,
특정 사용자 계정으로 마운트를 하고 싶다면 uid,gid를 추가하면 된다.
% mount -t cifs -o username='kimchki',password='kimchki',rw,vers=1.0,uid=1000,gid=1000 //192.168.1.200/usbshare1/Downloads /root/z
출처
http://todactodac.blogspot.com/2018/06/ubuntu-mount-error95-operation-not.html
https://unix.stackexchange.com/questions/403131/mounting-cifs-works-on-ubuntu-14-not-on-debian-testing