烧味 (@alex_huang)Ubuntu开机自动加载共享文件夹 中发帖

看了佬友的回复有感,优化了我的虚拟机 

方式一: 为 fstab 添加 nofail 参数

打开 /etc/fstab 文件进行编辑sudo nano /etc/fstab



在挂载选项(第四列)中添加 nofail 参数。 选项之间用逗号 , 分隔,并且不能有空格.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,nofail 0 0




方式二: 使用 systemd-mount 的方式进行管理


废弃 rc.local,改用现代化的 systemd 方式
sudo rm /etc/rc.local



在开始之前,请务必将在 /etc/fstab 中添加的那一行删除或注释掉(在行首加 #),以避免冲突
sudo nano /etc/fstab

# .host:/ /mnt/hgfs...