Hi. I set up an openSUSE_Leap15.2 VM setup on a Windows 10 host with the intention of learning about Linux.
Mounting Shared Folders in a Linux Guest describes how to mount a host share in a Linux guest. I have Shared Folder enabled and a host folder shared with name "foo". In my guest I have created the folder "Share" in my Home directory.
I'm sure I got mount -t vmhgfs .host:/foo /Home/Share/foo
to work yesterday. Today, the folder "Share" is there but is empty. Attempts to rerun this command result in
Error: cannot canonicalize mount point: No such file or directory
which sadly means nothing to me.
What is the correct syntax please and how to I get the mounted share to still be mounted after restarting the VM?
Thanks for the reply. I've just checked and I'm working with a kernel later than 4.0. So, the command I should be using is
/usr/bin/vmhgfs-fuse .host:/foo /tmp/foo -o subtype=vmhgfs-fuse,allow_other
which I have as:
/usr/bin/vmhgfs-fuse .host:/foo /Home/foo -o subtype=vmhgfs-fuse,allow_other
Now I get
fuse: bad mount point `/Home/foo': No such file or directory
It doesn't make a difference whether I capitalise the H on Home or not. The directory "foo" exists.
I should have made careful note of what I did yesterday that worked!
/mnt. I used it because I knew it would exist. I had switched to NFS awhile back, so I'd removed the /etc/fstab entry I had created for this.
Hmmm... did you copy my command verbatim? You need to change shared to whatever your VMware shared folder is called, and replace /mnt with where you want it mounted.
OK. I was able to get this to work as su:
/usr/bin/vmhgfs-fuse .host:/foo /home/opensuse/Share -o subtype=vmhgfs-fuse,allow_other
Folder foo was created in folder Share.