導航:首頁 > 操作系統 > 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共享文件夾相關的資料

熱點內容
生存邊緣建造是哪個文件夾 瀏覽:530
仙島湖王英碼頭到東源碼頭 瀏覽:975
nfc對加密鎖毫無反應嗎 瀏覽:222
android文件分區 瀏覽:368
南京開通數控螺紋編程 瀏覽:290
伺服器與ups用什麼線 瀏覽:967
unix網路命令 瀏覽:48
程序員表白代碼大全可復制 瀏覽:365
手機如何共享web伺服器 瀏覽:956
php介面有什麼用 瀏覽:382
iis如何安裝php 瀏覽:791
k5嗜血魔鍵安卓怎麼調好用 瀏覽:834
建行app中如何添加銀行卡 瀏覽:281
簡便演算法100點 瀏覽:161
如何創新我的世界伺服器 瀏覽:882
戰地怎麼看伺服器地址 瀏覽:348
vue怎麼打包放上伺服器 瀏覽:166
為什麼安卓服夏日活動沒有兔子頭 瀏覽:894
pubg為什麼顯示伺服器連接失敗 瀏覽:650
阿里雲掃碼登錄伺服器 瀏覽:971