导航:首页 > 操作系统 > win7linux共享文件夹

win7linux共享文件夹

发布时间:2025-05-01 15:46:40

‘壹’ linux怎样访问Windows共享文件和文件夹

在开发Linux程序中,经常会使用Windows的编辑器进行编辑,这样还要拷贝到Linux服务器,如果有这种开发习惯的同学,可以使用这种方式进行开发。
当然除了这种方法之外,可以再Windows安装nfs服务器,但是我的是64位的win7系统,好多nfs服务器不支持,所以就只能使用这种共享文件夹的方式了。

Windows侧:
1:在Windows下建立共享文件夹。
2:确保Windows用户设置了密码。
Linux侧:
1:安装cifs-utils包,安装后,系统出现mount.cifs命令。或者有的发行包里的mount支持 -t cifs参数。
2:mount.cifs -o username="共享用户",password="密码" //ip/sharing_folder /mountpoint

问题1:在共享虚拟机的文件,编译时会出现如下错误:
arm-none-linux-gnueabi-gcc -lpthread -o beep beep.c beeplib.c
cc1: error: beep.c: Value too large for defined data type
cc1: error: beeplib.c: Value too large for defined data type
make: *** [beep] Error 1
修正方法:sudo mount -t cifs -o username=wx,passwd=wx,nounix,noserverino //192.168.1.108/vm_share /mnt/share
添加了,nounix,noserverino

问题2:Unable to umount, device is busy
If you get this error message and the 'umount' as well as 'umount -f' commands don't work, try a "lazy" umount:
umount -l /mnt/badmount
Then mount the share again, as shown below:
mount -t cifs //hostname/goodmount /mnt/goodmount -o username=,password=
Note - using the "cifs" keyword instead of the smbfs keyword after -t will result in fewer problems like this.

问题3: mount error 12 = Cannot allocate memory
当通过mount.cifs命令对windows下的文件进行映射时,若文件太大,便会产生这种错误,解决方法是:
修改注册表 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\IRPStackSize项的值大于等于15,若IRPStackSize项不存在,就新建一个DWORD值,点击弹出窗口的的进制为十进制,值写个18就ok了,还要重启一

阅读全文

与win7linux共享文件夹相关的资料

热点内容
stata方差检验命令 浏览:335
解压后文件夹里的内容丢失 浏览:713
解压无敌视频 浏览:688
什么是服务器辨认不了 浏览:126
java如何调用类方法 浏览:481
管理孩子的app叫什么 浏览:544
压缩活动轨迹 浏览:674
6米梁加密筋 浏览:79
怎么学好ps如何学好编程 浏览:300
c编译器厂商 浏览:114
简述编译程序以及解释程序 浏览:3
linux升级kernel 浏览:176
入侵服务器挖矿是什么罪 浏览:47
房屋解压资料丢了怎么办 浏览:810
java文件行读写 浏览:544
影城网上售票系统源码 浏览:634
防疫就是命令歌曲 浏览:204
滴滴号码加密怎么解除 浏览:844
模具编程的职责 浏览:944
华为ssh改加密算法 浏览:149