1. Create a folder in windows
Set as a shared folder in vmware
Reference blog post:
https://zhuanlan.zhihu.com/p/650638983
2. Solve:
(1) fuse: mountpoint is not empty
(2) Ordinary users can also use shared directories
Reference blog post: < a i=3> https://blog.csdn.net/zhanglingge/article/details/113916057
vmhgfs-fuse .host:/ /mnt/hgfs -o nonempty -o allow_other
3. Set ubuntu to automatically mount after restarting
Reference blog post:
https://blog.csdn.net/qq_45871852/article/details/123139862
(The last part of this blog post )
Open /etc/fstab:
sudo gedit /etc/fstab
Add code at the end:
.host:/share /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
(The name of my shared folder is share. Note that after share, there is a space before /mnt.)
The results are as follows:
(The share folder is no longer visible in the ubuntu path, it is directly the content inside the share.)