如上所述,当我试图通过SAMBA挂载打开文件时,有时它可以正常工作,并且vi打开文件,但是其他时间vi会打开并出现如下错误:
"Windows/Custom2d.txt" [Permission Denied]
请注意,这不只是vi这样做:
cat: Windows/Custom2d.txt: Input/output error
Windows是mount的linux文件夹名称。 我可以安装到其他Windows计算机共享文件夹相同的命令和相同的共享设置没有问题。
以下是我的安装命令:
sudo mount -o user=<username>,uid=<username>,gid=<username>,nolinux //<Windows-IP>/temp Windows
我挂载时没有错误。
我在本示例中打开的文件具有以下文件结构:
c:\temp\Custom2d.txt
我已经确保C:\ temp被共享,并且有20个允许的同时用户。
这是一个testing,表明它与recursion子文件夹共享没有任何关系。 我尝试了IP刷新,重新安装,重新启动和几个不同的安装命令。 有没有人有任何想法可能发生什么?
编辑:这是一串命令来说明问题:
$ cat Windows/Custom2d.txt ... File Text ... $ cat Windows/Custom2d.txt cat: Windows/Custom2d.txt: Input/output error $ cat Windows/Custom2d.txt cat: Windows/Custom2d.txt: Input/output error $ cat Windows/Custom2d.txt cat: Windows/Custom2d.txt: Input/output error
以下解决了我的问题:
一个已知的Windows 7错误,导致“挂载错误(12):无法分配内存”上完美的CIFS共享在Linux端可以通过在Windows框上设置几个registry项,如下所示:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache (set to 1) HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size (set to 3)
来自: https : //wiki.archlinux.org/index.php/Samba