linux共享檔案夾問題
@(配置問題)[VMware|ubuntu|linux]
- linux共享檔案夾問題
- 1. 初配置
- 2. 挂載
018.7.8
為了實作win7與VMware中linux檔案夾共享很花費了一些時間,但終成正果
1. 初配置
虛拟機設定->選項->共享檔案夾
開啟總是啟用以及設定共享的檔案夾

2. 挂載
我用mount挂載行不通,一直報錯:Error: cannot mount filesystem: No such device
這裡安裝一下:
sudo apt-get install open-vm-tools-dkms
然後指令:
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
記住,一定要加allow_other選項,不然之後的hgfs檔案普通使用者不能通路
如果之前沒有加-o allow_other,已經使得檔案hgfs在普通使用者環境下不可通路,也就是提示了
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
可将nonempty選項加到裡面去
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other