RadarURL

Ubuntu에서 윈도우7 폴더에 접근관련 에러 (cifs)

by JaeSoo posted Jul 20, 2011
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

Windows 7 공유 폴더를 Linux에서 CIFS로 마운트 할 때 "mount error(12)"가 나는 경우

mount error 12 = Cannot allocate memory 

위와 같은 에러가 발생한다면 윈도우7의 레지스트리를 수정해야한다.


1. HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache의 값을 "0"에서 "1"로 변경.

2. HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesLanmanServerParametersSize의 값을 "1"에서 "3"으로 변경

3. 리부팅



우분투 10.04에서 윈도우7의 디렉토리를 마운트하고 gcc로 빌드하려고하면 아래와 같은 에러가 난다

cc1: error: ./include: Value too large for defined data type 

mount시에 nounix,noserverino를 옵션에 추가하자

sudo mount -t cifs //win7serverip/folder /home/userid/dir -o uid=ubuntuid,gid=ubuntuid,username=win7username,nounix,noserverino,iocharset=utf8,rw


참고

http://pcandme.tistory.com/90

http://chrisjakeway.wordpress.com/2010/05/19/ubuntu-10-04-gcc-and-cifs-errors/

http://www.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html

 

출처 : http://blog.daum.net/_blog/BlogTypeView.do?blogid=02Zi6&articleno=12435918&categoryId=0#ajax_history_home


Articles

1 2 3 4 5 6 7 8 9 10