在 VirtualBox 中的 Centos 挂载共享文件夹 (2020-10-14)

在 VirtualBox 中的 Centos 挂载共享文件夹

装载 iso 光盘镜像文件

在 VirtualBox 界面上操作,设置为自动挂载。

mkdir /mnt/cdrom
mount -t auto /dev/cdrom /mnt/cdrom

安装插件 VirtualBox 增强工具

cd /mnt/cdrom
./VBoxLinuxAdditions.run

挂载共享文件夹

mkdir /mnt/aaa
mount -t vboxsf share /mnt/aaa

问题总结

  1. 使用 VirtualBOx 界面点击安装增强工具报错,然后没有理他,找到 VBoxGuestAdditions.iso 手动 mount。
  2. 进入 cdrom 后不是运行 run.sh
  3. mount 前先建目录
  4. mount 后的所有者是 root
  5. mount 后的权限和所有者不可以改,因为这是属于宿主的。
  6. 如果希望 Windows 也支持大小写,可以将 Windows 10 的大小写开关打开。

参考链接

VirtualBox实现虚拟机中CentOS 7共享文件夹 https://www.linuxidc.com/Linux/2017-11/148334.htm
Linux系统中挂载和使用光盘的基本步骤 https://blog.csdn.net/lamp_yang_3533/article/details/53284290

原始链接: https://www.cnblogs.com/F4NNIU/p/13812331.html

posted on 2020-10-13 23:25  建伟F4nniu  阅读(707)  评论(0编辑  收藏  举报

导航