VirtualBox "/sbin/mount.vboxsf: mounting failed with the error: Invalid argument"解决办法
2011-08-31 09:02
1426 查看
自己主机是Windows7,开始虚拟机是CentOS5x,在VirtualBox上设置了共享目录“share”之后,在虚拟机里使用命令
2011-09-11 更新
如果嫌每次要改太麻烦也可每次先运行一下umount,然后在mount那个目录,比如我windows共享的目录名叫share,在linux上使用mount查看,应该会有类似下面的行出现
sudo mount -t vboxsf -o uid=<uid>,gid=<gid>,dmode=0755,fmode=0755 share /share就可以把共享目录mount到虚拟机系统上,但是今天装了个CentOS6之后,设置了同样的共享目录“share”之后,在运行以上命令总是出现以下错误
/sbin/mount.vboxsf: mounting failed with the error: Invalid argument好来发现是共享目录名(这里是“share”)不能和mount的最终挂载点名相同(这里是"/share"),所以没办法,在VirtualBox的共享目录设置里把share换了一个别名“share123”,然后再运行命令
sudo mount -t vboxsf -o uid=<uid>,gid=<gid>,dmode=0755,fmode=0755 share123 /share目录挂载成功了,但是具体原因不明。
2011-09-11 更新
如果嫌每次要改太麻烦也可每次先运行一下umount,然后在mount那个目录,比如我windows共享的目录名叫share,在linux上使用mount查看,应该会有类似下面的行出现
... share on /media/sf_share type vboxsf (gid=1001,rw) ...此时,可以先umount那个/media/sf_share,忽略提示内容(不管什么错误提示),再运行mount命令,类似如下步骤
#!/bin/sh sudo umount -f /media/sf_share sudo mount -t vboxsf -o "uid=kongxx,gid=kongxx,dmode=0755,fmode=0755" share /home/kongxx/share此时应该就不会再出现上面的那个错误提示了。
相关文章推荐
- VirtualBox "/sbin/mount.vboxsf: mounting failed with the error: Invalid argument"解决办法
- Win10x64下Vbox安装Ubuntux64共享文件夹报错:/sbin/mount.vboxsf: mounting failed with the error: Protocol error
- /sbin/mount.vboxsf: mounting failed with the error: No such device
- /sbin/mount.vboxsf: mounting failed with the error: Protocol
- /sbin/mount.vboxsf: mounting failed with the error: Protocol
- /sbin/mount.vboxsf: mounting failed with the error: Protocol
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)
- iOS开发- "duplicate symbol for architecture i386 clang: error: linker command failed with exi" 解决办法
- virtualbox 安装 extension pack 方法以及出现 "The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one"的解决办法
- eclipse启动时弹出"Failed to create the Java Virtual Machine"解决办法
- 打开Eclipse时出现"Failed to create the Java Virtual Machine"解决办法
- Android开发中遇到的问题(五)——Eclipse导入Android项目出现"Invalid project description overlaps the location of another project"错误的解决办法
- Android Studio "Error:Failed to find: com.android.support:XXXX"错误解决办法
- "Command /usr/bin/codesign failed with exit code 1",真机调试出错解决办法
- 解决Job for docker.service failed because the control process exited with error code. See "systemctl s
- 解决Mac OS X下VirtualBox "Failed to load VMMR0.r0 (VERR_SUPLIB_WORLD_WRITABLE)"错误
- fdisk 的 WARNING: Re-reading the partition table failed with error 22: Invalid argument.
- 出现Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build*解决办法
- error: command 'gcc' failed with exit status 1 的解决办法
- Yii “CDbConnection failed to open the DB connection: could not find driver"解决办法