鸣涧_GC96O 发表于 2021-1-18 18:06:29

VirtualBox Ubuntu与Windows主机共享文件教程

本帖最后由 鸣涧_GC96O 于 2021-2-2 14:25 编辑

共享命令:
sudo mount -t vboxsf share /mnt/share/


sudo mount -t vboxsf share /mnt/share/
mount.vboxsf: mounting failed with the error: No such file or directory

报错是因为 share 文件是一个文件夹,需要用使用的是
mount -t vboxsf share/ /mnt/share
在需要挂载的share文件后面加“/”号,挂载的是文件夹。

sudo mount -t vboxsf share/ /mnt/share/
/sbin/mount.vboxsf: mounting failed with the error: Protocol error

报错是因为这个在共享设置的文件夹权限,设置-》共享文件夹-》 edit share, 不要选中Auto-mount(自动挂载)。

由上图可知,没有挂载成功也可能是命名的共享文件夹不是share ,而是其他的。

在这个位置需要改名字。

页: [1]
查看完整版本: VirtualBox Ubuntu与Windows主机共享文件教程