VMware Communities
dch53
Contributor
Contributor
Jump to solution

How to mount Windows shares in Mint Linux 18.3

Hi,

I'm new to Linux. I've enabled my shares in Virtual Machine Settings. I'm assuming that the instructions here are the relevant ones. Mounting Shared Folders in a Linux Guest​. It states that

mount -t vmhgfs .host:/ /home/user1/shares

mounts all shares to /home/user1/shares. I assume I replace "user1" with my user name.

When I try this I get "Error: cannot canonicalize mount point: No such file or directory".

Just in case "no such file or directory" was referring to ~user1/shares I tried creating a "shares" folder but that made no difference.

I also tried

mount -t vmhgfs .host:/ /home

which resulted in

Error: cannot mount filesystem: No such device

Any suggestions please?

Thanks!

Reply
0 Kudos
1 Solution

Accepted Solutions
louyo
Virtuoso
Virtuoso
Jump to solution

This works on my Mint VM:

I have a host share named data (it is enabled in settings).

check to make sure the Mint VM can "see" it:
vmware-hgfsclient
Returns: data
Make a directory for mounting in my home directory:
mkdir ./testmnt
Mount it:
sudo vmhgfs-fuse -o nonempty -o allow_other .host:/data ./testmnt

note spaces.

Lou

View solution in original post

Reply
0 Kudos
5 Replies
RDPetruska
Leadership
Leadership
Jump to solution

Simple question - have you installed the VMware Tools in your guest?  They are needed for the Shared Folders feature to work.

Reply
0 Kudos
louyo
Virtuoso
Virtuoso
Jump to solution

This works on my Mint VM:

I have a host share named data (it is enabled in settings).

check to make sure the Mint VM can "see" it:
vmware-hgfsclient
Returns: data
Make a directory for mounting in my home directory:
mkdir ./testmnt
Mount it:
sudo vmhgfs-fuse -o nonempty -o allow_other .host:/data ./testmnt

note spaces.

Lou

Reply
0 Kudos
dch53
Contributor
Contributor
Jump to solution

Thanks very much Lou.

Mint could indeed see my shares and

sudo vmhgfs-fuse -o nonempty -o allow_other .host:/data ./testmnt

works perfectly.

So, next question, how do I make my shares mount at boot-up?

Regards, Dave.

Reply
0 Kudos
louyo
Virtuoso
Virtuoso
Jump to solution

Does it not show up in /mnt/hgfs? If it does, you could make a link to it.

Otherwise, I think you could put the command in /etc/rc.local although I have not done so.

I would also guess that you could make an entry in fstab but have never done that either.

Personally, I use smb in Konqueror.

Lou

Reply
0 Kudos
holan1024
Contributor
Contributor
Jump to solution

Thanks Lou

I worked around on it for a week

where are these commands documented?

thank you very much!

Smiley Happy

Reply
0 Kudos