谷动谷力

 找回密码
 立即注册
查看: 1298|回复: 0
打印 上一主题 下一主题
收起左侧

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

[复制链接]
跳转到指定楼层
楼主
发表于 2021-1-18 18:06:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 鸣涧_GC96O 于 2021-2-2 14:25 编辑

共享命令:
  1. sudo mount -t vboxsf share /mnt/share/
复制代码


  1. sudo mount -t vboxsf share /mnt/share/
  2. mount.vboxsf: mounting failed with the error: No such file or directory
复制代码


报错是因为 share 文件是一个文件夹,需要用  使用的是
  1. mount -t vboxsf share/ /mnt/share
复制代码

在需要挂载的share文件后面加“/”号,挂载的是文件夹。

  1. sudo mount -t vboxsf share/ /mnt/share/
  2. /sbin/mount.vboxsf: mounting failed with the error: Protocol error
复制代码


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

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

在这个位置需要改名字。

+10
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|深圳市光明谷科技有限公司|光明谷商城|Sunshine Silicon Corpporation ( 粤ICP备14060730号|Sitemap

GMT+8, 2024-5-20 02:31 , Processed in 0.079295 second(s), 34 queries .

Powered by Discuz! X3.2 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表