Oracle virtual box shared files -- including the resolution of /sbin/mount.vboxsf: mounting failed

  • The first step is in virtual box menu, click Devices, and then click Shared Folders->Shared Folders Settings. Specified the source directory from windows machine shared_files which is the name of actual C:\shared_files.

  • The second step is link target/destination directory in linux to source directory shared_files

    mount -t vboxsf shared_files /mnt/share
    

如果出现 /sbin/mount.vboxsf: mounting failed with the error: Invalid argument 这个错误, 那么可以通过以下命令解决此问题

sudo apt-get install virtualbox-guest-dkms

执行成功后, 重启虚拟机, 再次执行mount指令就能成功

posted @ 2020-04-16 22:50  乔治是只猪  阅读(403)  评论(0编辑  收藏  举报