Search This Blog

Thursday, October 30, 2008

VirtualBox-Linux mount share folder

Host OS: windows XP
Guest OS: Linux (Redhat, Ubuntu...)

以下為在Linux中掛載VirtualBox所設定之Share Folder
1. 切換為Root身份
Redhat -> su
Ubuntu -> 以sudo 執行指令即可

2. 安裝VirtualBox Additions
cd /media/cdrom
Redhat -> ./VBoxLinuxAdditions-x86.run
Ubuntu -> sudo ./VBoxLinuxAdditions-x86.run

3.重開機(Reboot)

4. 將vboxvfs module載入核心
Redhat -> modprobe vboxvfs
Ubuntu -> sudo modprobe vboxvfs

5. 建立掛載點,名稱為"work"
Redhat -> mkdir /media/work
Ubuntu -> sudo mkdir /media/work

6. 掛載Share Folder ,分享目錄名稱為"working"
Redhat -> mount -t vboxsf working /media/work
Ubuntu -> sudo mount -t vboxsf working /media/work

No comments: