ubnutu 装了个Windows虚拟机,怎么让linux 和Windows共享一个文件夹
阿神
阿神 2017-04-17 14:59:32
0
4
546

ubnutu 装了个Windows虚拟机,怎么让linux 和Windows共享一个文件夹
注意: 虚拟机是Windows 不是 ubnutu

阿神
阿神

闭关修行中......

reply all(4)
Ty80

Windows folder sharing, firewall turned off. The linux network mount folder is mounted locally.

mount -t cifs -o username=Administrator,password="123456",
rw,dir_mode=0777,file_mode=0777 //192.168.1.26/test /var/www/test/

上面命令是一行,中间没换行。
大概意思是
先把windows里面的test文件夹设置共享,防火墙关掉。
然后在linux上mount过来, 加 rw,dir_mode=0777,file_mode=0777 保证一挂载过来的文件夹可读可写。。 
192.168.1.26 是windows的ip
username=Administrator,password="123456"是我windows的账号密码
最后挂载到了 /var/www/test/ 下。进去就能看到了。
小葫芦

Virtual Windows Mount VirtualBox shared folder:

net use x: \vboxsvr\ShareDir

Virtual Linux mount VirtualBox shared folder:

sudo mount -t vboxsf ShareDir /home/user/ShareDir
PHPzhong

First, turn on the virtual machine shared folder option, and then press the 1st floor operation.

左手右手慢动作

After installing the enhanced function, restart Windows and mount it directly. There is an extra I drive ~~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!