虚拟机VirtualBox 共享挂载问题

 

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

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

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.

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

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

这又是几个意思咯?

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

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

sudo apt install nfs-common

另一方面,如果您尝试挂载CIFS,则提供辅助程序cifs-utils。你可以安装它:

sudo apt install cifs-utils

然后再开始尝试,如果发现还是不行,那么我们再进行第二步

第二步:因为我是在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用户空间实用程序,如果想深入研究的话,这里是它的文档链接

致谢:https://www.cnblogs.com/xuange306/p/11226292.html

猜你喜欢

转载自blog.csdn.net/xiaoshunzi111/article/details/102626831
今日推荐