共享文件夹 Ubuntu Host / Ubuntu Guest - 在 /etc/fstab 中持久共享时出错

问题描述

设置

  • 托管 Ubuntu 20.10
  • 来宾 Ubuntu 18.04
  • VirtualBox 6.1
  • Guest Additions 安装成功

工作 - 配置共享文件

我可以配置共享文件夹,然后在我启动来宾时挂载它们

不工作 - 保持挂载

我已经阅读了各种文章,这些文章都说要将挂载添加/etc/fstab 中,但是当我这样做并重新启动时,共享失败。

我正在添加看起来像这样的线条 share_name path_to_share vbBoxsf default 0 0

当我重新启动时,我得到这个

Mar 02 16:37:39 ubu18 systemd[1]: Reached target Local File Systems (Pre).
Mar 02 16:37:39 ubu18 systemd[1]: Mounting /home/mchassy/demo_scripts...
Mar 02 16:37:39 ubu18 systemd[1]: Started dispatch Password Requests to Console Directory Watch.
Mar 02 16:37:39 ubu18 systemd[1]: Reached target Local Encrypted Volumes.
Mar 02 16:37:39 ubu18 systemd[1]: home-mchassy-demo_scripts.mount: Mount process exited,code=exited status=1
Mar 02 16:37:39 ubu18 systemd[1]: home-mchassy-demo_scripts.mount: Failed with result 'exit-code'.
Mar 02 16:37:39 ubu18 systemd[1]: Failed to mount /home/mchassy/demo_scripts.
Mar 02 16:37:39 ubu18 systemd[1]: Dependency Failed for Local File Systems.
Mar 02 16:37:39 ubu18 systemd[1]: local-fs.target: Job local-fs.target/start Failed with result 'dependency'.
Mar 02 16:37:39 ubu18 systemd[1]: local-fs.target: Triggering OnFailure= dependencies.
Mar 02 16:37:39 ubu18 systemd[1]: Starting ebtables ruleset management...
Mar 02 16:37:39 ubu18 systemd[1]: Starting Set console font and keymap...
Mar 02 16:37:39 ubu18 systemd[1]: Closed Syslog Socket.
Mar 02 16:37:39 ubu18 systemd[1]: Starting Set console scheme...
Mar 02 16:37:39 ubu18 systemd[1]: Reached target Login Prompts.
Mar 02 16:37:39 ubu18 systemd[1]: Reached target Timers.

不确定这是否足够日志。但它完全无法重新启动并让我成为 root。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...