1、 在本机系统设置一个共享文件夹,用于与Ubuntu交互的区域空间。

 
  VirtualBox内Linux系统怎样与Windows共享文件夹

2、右击状态栏上共享文件夹图标或菜单栏“设备-共享文件夹”,打开共享文件夹设置,如图示

VirtualBox内Linux系统怎样与Windows共享文件夹 VirtualBox内Linux系统怎样与Windows共享文件夹

3、点击共享文件夹设置框,右上角的添加按钮

VirtualBox内Linux系统怎样与Windows共享文件夹

VirtualBox内Linux系统怎样与Windows共享文件夹

选择之前本机设置的共享文件夹

VirtualBox内Linux系统怎样与Windows共享文件夹

此时一定不可以勾选自动挂载

VirtualBox内Linux系统怎样与Windows共享文件夹

VirtualBox内Linux系统怎样与Windows共享文件夹

4、设置好共享名后,进入Linux系统,打开终端,先执行命令,在挂载点目录添加“Windows_Share”目录,接着执行" mount -t vboxsf VirtureBox_Share /mnt/Windows_Share/",就能完成共享文件夹的设置。

[[email protected] ~]$ su
Password: 
[[email protected] oracle]# mkdir /mnt/Windows_Share
[[email protected] oracle]# mount -t vboxsf VirtureBox_Share /mnt/Windows_Share/
[[email protected] oracle]#
5、设置完成,可以创建几个文件,测试一下

(测试方法:

1. 在本地C:\Software\Oracle\VirtureBox_Share创建一个文件,到mnt/ Windows_Share/目录 查看。

2.在mnt/Windows_Share/目录创建一个文件,在本机C:\Software\Oracle\VirtureBox_Share进行查看)

VirtualBox内Linux系统怎样与Windows共享文件夹
[[email protected] oracle]# cd /mnt/Windows_Share/

[[email protected] Windows_Share]# ls

window创建.txt

[[email protected] Windows_Share]# touch linux.txt

[[email protected] Windows_Share]# ls

linux.txt window创建.txt

[[email protected] Windows_Share]#
VirtualBox内Linux系统怎样与Windows共享文件夹

VirtualBox内Linux系统怎样与Windows共享文件夹VirtualBox内Linux系统怎样与Windows共享文件夹

6、设置自动挂载

[[email protected] ~]$ su

Password: 

[[email protected] oracle]#vim /etc/fstab

添加

VirtureBox_Share /mnt/Windows_Share/ vboxsf rw,gid=110,uid=1100,auto 0 0

VirtualBox内Linux系统怎样与Windows共享文件夹

7、卸载挂载点命令:

umount -f /mnt/share


相关文章:

  • 2021-04-27
  • 2021-08-30
  • 2021-05-16
  • 2021-11-29
  • 2022-02-05
  • 2022-01-08
  • 2022-01-03
猜你喜欢
  • 2021-04-11
  • 2021-04-16
  • 2021-07-10
  • 2021-12-23
相关资源
相似解决方案