首页 文章

如何从Redhat virtualbox vm创建共享目录到Ubuntu 12.04客户操作系统?

提问于
浏览
0

我有一个运行64位Redhat VirtualBox(4.3.30)的guest虚拟机,并希望为我的主机操作系统(Ubuntu 12.04 64位)创建一个共享目录 . 在我的Redhat客户操作系统中:

  • 我为Virtualbox 4.3.30安装了VirtualBoxGuest Additions并重新启动了guest虚拟机

  • 我在客户操作系统上创建了目录 /mnt/host-downloads

  • 在虚拟框中,我创建了一个名为Downloads的共享目录,指向主机目录 /home/cx/Downloads

当我尝试使用以下命令挂载de shared目录时: sudo mount –t vboxsf Downloads /mnt/host-downloads

我收到消息:

“用法:mount -V:打印版本挂载-h:打印此帮助挂载:列出挂载文件系统挂载-l:idem,包括卷标签到目前为止信息部分 . 接下来安装 . 命令是`mount [-t fstype] '/ etc / fstab中的详细信息可能会被省略.mount -a [-t | -O] ...:从/ etc / fstab挂载设备中的所有东西:挂载设备在已知位置挂载目录:mount这里已知的设备mount -t type dev dir:普通的mount命令注意一个没有真正挂载设备,一个挂载设备上找到的文件系统(给定类型) . 还可以在其他地方挂载已经可见的目录树:mount - 绑定olddir newdir或移动子树:mount --move olddir newdir可以更改包含目录的挂载类型dir:mount --make-shared dir mount --make-slave dir mount --make-private dir mount --make-unbindable dir可以更改包含目录dir的mount子树中所有挂载的类型:mount --make-rshared di r mount --make-rslave dir mount --make-rprivate dir mount --make-runbindable dir设备可以通过名称给出,例如/ dev / hda1或/ dev / cdrom,或者通过标签,使用-L标签或通过uuid,使用-U uuid . 其他选项:[ - nfFrsvw] [-o options] [-p passwdfd] . 有关更多细节,请说man 8 mount . “

What do I wrong?

1 回答

  • 0

    导致此问题的原因是将命令复制并粘贴到guest虚拟机 .

    mount命令中 t 前面的连字符( )是unicode字符EN DASH U 2013(UTF-8代码0xE28094),而不是键盘输入的短划线( - )(U 002D)(另请参阅http://www.fileformat.info/info/unicode/category/Pd/list.htm) . 这导致显示使用情况 .

    解:

    手动键入mount命令,不要使用copy&past .

相关问题