How to mount VMware shared folder to Ubuntu on boot
Sometimes the shared folder function of VMware Workstation may suddenly not work after rebooting.
There are several ways to fix it.
mount by a command
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs,allow_other -o nonempty
This command means to mount all host shared folders to /mnt/hgfs, which is the default operation that VMware should have done automatically.
However, the folder would disappear after rebooting.
mount automatically
sudo nano /etc/fstab
We can edit the fstab file to write the auto-mount configuration. Make sure the mount point exists:
sudo mkdir -p /mnt/hgfs
Then add one line:
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0
Content licensed under CC BY-NC-SA 4.0.