如何在Virtual Box中的主机(Mac)和来宾操作系统(Ubuntu)之间共享文件夹?
答案 0 :(得分:74)
你需要在Ubuntu中使用最新版本的VirtualBox(4.3.10)和Guest Additions installed。
sudo mount -t vboxsf folder_name path_to_mount_point
folder_name是您之前输入的用于描述共享的名称如果安装困难,例如以下错误:
mount: wrong fs type, bad option, bad superblock on mydata,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
执行以下步骤:
sudo rm /sbin/mount.vboxsf
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf