2012/02/13 (月)

寒い。。。
指がかじかんでキーをうまく打てない。。。

2012-02-13:CIFS VFS: Send error in SessSetup = -12

Linux から samba マウントしている Windows7 上のフォルダがいきなり使えなくなった。

% ls -alF /mnt/win7folder
ls: /mnt/win7folder にアクセスできません: メモリを確保できません

「メモリを確保できません」って、なんじゃそりゃ。メモリはあるぞ?
と思って、ログ出てないかなと調べたら /var/log/messages に、

Feb 13 15:14:59 pollux kernel:  CIFS VFS: Send error in SessSetup = -12

のログ。
このメッセージでググると social.technet.microsoft.com の投稿がひっかかった。

Error while mounting Windows 7 shared on Linux/Samba

ここのフォローの中に

Open regedit goto HKEY_LOCAL_MACHINE ->SYSTEM ->CurrentControlSet ->Services ->LanmanServer -> Parameters. Then click createkey and create a DWORD with the name SMB2. The value should automatically be set as 0, which is correct to turn it off. Restart computer and fixed. To remove the fix and reenabled SMB2 simply remove the DWORD from the place above in the registry.

とあったので、指示に従って Windows7 側で regedit.exe 起動して、HKEY_LOCAL_MACHINE ->SYSTEM ->CurrentControlSet ->Services ->LanmanServer -> Parameters に SMB2 というキーを作成して、Windows7 再起動。
無事にまた Linux からマウントして使えるようになった。

comment