Virtualbox下Ubuntu与主机Win7共享文件夹

记下来,免得老google。

1. 在虚拟机设置里设置好win7的共享文件夹位置:如c:share

2.确定ubuntu下需要共享的文件夹,如~/linuxshare。注意,此文件夹名字必须与win7下的不一样

3.mount主机的文件夹到ubuntu下,用这个命令:

sudo mount -t vboxsf Host_folder_name Ubuntu_mount_point 

yyc@yyc-VirtualBox:~$ sudo mount -t vboxsf share linuxshare

4. 每次开虚拟机自动挂载:在/etc/fstab中添加一行,保存

Host_folder_name Ubuntu_mount_point vboxsf rw,gid=100,uid=1000,auto 0 0

5. 卸载:

sudo umount -f ~/linuxshare
原文地址:https://www.cnblogs.com/techyc/p/3481545.html