kali Debian与主机共享文件
主机文件夹设置
kali/ Debian与主机共享文件:
https://blog.****.net/Jiajiajiang_/article/details/83540791
出错: Error: cannot mount filesystem: No such device
发现是VMWare tools后/mnt中有hgfs但没共享文件
解决安装VMWare tools后/mnt中有hgfs但没共享文件
此时在linux中进入 /mnt/hgfs 文件夹,但发现共享的文件没有显示
使用以下办法解决(root权限):
-
vmware-hgfsclient 命令查看当前有哪些共享的目录,这里我只使用了share文件夹
-
使用 mount -t vmhgfs .host:/share /mnt/hgfs 命令挂载该共享文件夹 其中.host:/Documents是共享名,只需把Documents换成
用vmware-hgfsclient 命令得到的目录,/mnt/hgfs是挂载点
借鉴:https://blog.****.net/cindy_cheng/article/details/50456977
如果每次重启之后想让系统自动挂载
#vi /etc/fstab: 在最后添加一行: .host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0