레이블이 samba인 게시물을 표시합니다. 모든 게시물 표시
레이블이 samba인 게시물을 표시합니다. 모든 게시물 표시

2019년 2월 7일 목요일

리눅스(Linux)에서 윈도우(Windows) 공유폴더(cifs) 마운트(mount) 할 때 에러

리눅스(Linux)에서 윈도우(Windows) 공유폴더(cifs) 마운트(mount) 할 때 에러가 발생했다.

% 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

화곡 어쩌라고, 굴사냥

석화찜(굴찜)을 먹으러 여의도로 갔다 그런데 재료가 모두 소진되었다고 마감이라고 한다 응? 다들 굴에 미쳤나? 굴을 찾아 헤매다 보니, 화곡까지 가게 되었다. 화곡은 처음 가본다. 첫인상은 "술집 겁네 많네" 피똥쌀때까지 마실 수 있...