虚拟机VirtualBox 共享挂载问题:mount: /mnt/xxx: wrong fs type, bad option, bad superblock on xxx

设置好共享文件夹以后,在/mnt下面创建了一个wwwroot文件夹,而后去欢天喜地的去挂载,linux

mount -t vboxsf www /mnt/wwwroot

结果系统提示:翻译

mount: /mnt/wwwroot: wrong fs type, bad option, bad superblock on www, missing codepage or helper program, or other error.

首先咱们看到了错误,不要慌张,先去读懂它到底几个意思。翻译过来的话就是:code

错误的fs类型,错误的选项,wwwroot上错误的超级块,缺乏代码页或帮助程序,或其余错误。ci

这又是几个意思咯?文档

考虑到您正在尝试挂载NFS,那么咱们就须要一些帮助程序来完成。get

第一步:安装咱们的帮助程序:it

sudo apt install nfs-common

另外一方面,若是您尝试挂载CIFS,则提供辅助程序cifs-utils。你能够安装它:io

sudo apt install cifs-utils

而后再开始尝试,若是发现仍是不行,那么咱们再进行第二步virtualbox

第二步:由于我是在Virtualbox搭建的环境因此咱们来安装virtualbox-guest-utils程序

sudo apt-get install virtualbox-guest-utils

而后咱们再从新挂载一次就ok了,而后

cd /mnt/wwwroot
ls -al
touch demo.sh

就能在咱们共享的电脑文件夹里面就多了一个demo.sh文件。

virtualbox-guest-utils是VirtualBox Guest用户空间实用程序,若是想深刻研究的话,这里是它的文档连接

相关文章
相关标签/搜索