http://jingyan.baidu.com/article/2fb0ba40541a5900f2ec5f07.html
共享命令:sudo mount -t vboxsf share /mnt/share/
[email protected]:~$ sudo mount -t vboxsf share /mnt/share/
/sbin/mount.vboxsf: mounting failed with the error: No such file or directory
报错是因为 share 文件是一个文件夹,需要用 使用的是mount -t vboxsf share/ /mnt/share
在需要挂载的share文件后面加“/”号,挂载的是文件夹。
[email protected]:~$ sudo mount -t vboxsf share/ /mnt/share/
/sbin/mount.vboxsf: mounting failed with the error: Protocol error
报错是因为这个在共享设置的文件夹权限,settings-》shared Folders-》 edit share, 不要选中Auto-mount。
![VBOX在挂载文件时候的 /sbin/mount.vboxsf: mounting failed with the error: Protocol error错误集 VBOX在挂载文件时候的 /sbin/mount.vboxsf: mounting failed with the error: Protocol error错误集](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzg5LzI5NjY3MWU2Yjg3Y2E0MzkwNTM1NDFjZjJiNzdhM2Y5LnBuZw%3D%3D.png?w=700&webp=1)
由上图可知,没有挂载成功也可能是命名的共享文件夹不是share ,而是其他的。
![VBOX在挂载文件时候的 /sbin/mount.vboxsf: mounting failed with the error: Protocol error错误集 VBOX在挂载文件时候的 /sbin/mount.vboxsf: mounting failed with the error: Protocol error错误集](https://image.shishitao.com:8440/aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzkwNC9hYTQ1MGRjY2ZjMTY1MWVlNjg4OWM0MTczMmMyMGU5OC5wbmc%3D.png?w=700&webp=1)
在这个位置需要改名字。