Virtualbox 掛載共用資料夾,解決掛不起來的問題。

Host os :winodws

Guest os :Linux       有些版本是掛載不起來的。

以下設定適用於各版本的Linux Distribution,兩個共用資料夾名稱要一致。

sh ./VBoxLinuxAdditions.run

mkdir /mnt/Share  (in Guest os)

  

sudo mount.vboxsf Share /mnt/Share
 

紅色「 Share 」為 VirtualBox 共用資料夾名稱 (in Host os)

藍色「 /mnt/Share 」為自己建立要掛載的目錄

To mount this every time linux boots, edit the file /etc/rc.local and put the following line at the start:

mount.vboxsf Share /mnt/Share

直接執行 mount.vboxsf ,而不透過 mount 調用。
錯誤:  mount -t vboxsf workspace /mnt/vbox/workspace
正確:  mount.vboxsf workspace /mnt/vbox/workspace

 /etc/rc.local 內 添加此指令,重開機後就會自動掛載了
posted @ 2012-11-05 22:17  jeremyatchina  阅读(431)  评论(1编辑  收藏  举报