Joy*_*oy 16 virtualbox mount shared-folders
所以在virtualbox共享文件夹的设置中,我已经点击了设置:自动挂载并永久设置。我的共享文件夹被命名为 VM-share
然后我登录guest linux的终端,输入以下命令:
$ sudo mount -t vboxsf VM-share ~/share/
Run Code Online (Sandbox Code Playgroud)
它给了我以下错误消息:
mount: wrong fs type, bad option, bad superblock on VM-share,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
Run Code Online (Sandbox Code Playgroud)
所以我用谷歌搜索并按照此页面上的说明进行操作:为什么我会收到“错误的 fs 类型、错误的选项、错误的超级块”错误?
安装“ sudo apt install nfs-common”和“ sudo apt install cifs-utils”
但是,当我重复命令“ $ sudo mount -t vboxsf VM-share ~/share/”时,它仍然给我与以前相同的错误消息。我输入了“ dmesg | tail”,下面是信息:
[ 8.743003] IPv6: ADDRCONF(NETDEV_UP): enp0s3: link is not ready
[ 8.745374] e1000: enp0s3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[ 8.752152] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s3: link becomes ready
[ 9.633147] floppy0: no floppy controllers found
[ 9.633209] work still pending
[ 3128.376259] vboxsf: Successfully loaded version 5.1.16_Ubuntu (interface 0x00010004)
[ 3128.376457] sf_read_super_aux err=-22
[ 5762.008076] sf_read_super_aux err=-22
[ 6052.591669] sf_read_super_aux err=-22
[ 6138.926441] sf_read_super_aux err=-22
Run Code Online (Sandbox Code Playgroud)
那么我应该如何挂载共享文件夹呢?
Ale*_*nov 16
截至目前(VirtualBox 6.0.10 版)有共享文件夹make permanent和auto-mount选项,还有mount point(At)在virtualbox 的GUI 中。对我来说,以下工作有效:
sudo apt-get install virtualbox-guest-utilsGUI 中指定的挂载点上的文件夹是自动创建的,并ls显示位于主机 Windows PC 上的文件。
Joy*_*oy 8
原来我挂不上的原因是我没有安装vboxguestaddition版本。因此,如果您按照此处的步骤操作:
https://www.howtogeek.com/189974/how-to-share-your-computers-files-with-a-virtual-machine/
忽略上面的 windows 部分,然后按照这里的步骤安装来宾插件:https : //virtualboxes.org/doc/installing-guest-additions-on-ubuntu/
然后文件将自动存在,但您可能会遇到权限问题,请查看此页面:https : //askubuntu.com/questions/189200/getting-access-to-var-www。
我希望它可以帮助可能与我遇到相同问题的人。
| 归档时间: |
|
| 查看次数: |
56307 次 |
| 最近记录: |