vmware——vmware挂载windows共享文件夹

[root@localhost mnt]# ls /mnt
[root@localhost mnt]# mkdir  share   //创建共享目录挂载点share
[root@localhost mnt]# ls
share
[root@localhost mnt]# vmware-hgfsclient   //查看windows的共享目录名
Linux
[root@localhost mnt]# vmhgfs-fuse -o allow_other .host:/Linux  /mnt/share   //挂载windows共享目录
[root@localhost mnt]# ls share/
CentOS-7-x86_64-Everything-1708.iso  rhel-server-7.4-x86_64-dvd.iso
desktop.ini                          ubuntu-18.04-desktop-amd64.iso
kali-linux-2018.2-amd64.iso
[root@localhost ~]# vim  /etc/rc.d/rc.local     //开机挂载Linux目录,并挂载目录内的系统镜像到html下
……
for i in {1..5}
do
    /usr/bin/vmhgfs-fuse -o allow_other .host:/Linux  /mnt/share
    sleep 1
done


 

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值