Skip to content

Instantly share code, notes, and snippets.

@elephantatech
Last active September 8, 2016 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elephantatech/5daa01f1d1e1b69ab13a7ad149ee9631 to your computer and use it in GitHub Desktop.
Save elephantatech/5daa01f1d1e1b69ab13a7ad149ee9631 to your computer and use it in GitHub Desktop.
This is a script to create to automate the mounting of the vmware workstation share drive
#!/bin/bash
# @Author: Elephantatech
# @github: https://github.com/elephantatech
# @Createddate: September 8th 2016
# @Disclaimer: This is not my solution I found it online at http://askubuntu.com/a/781314.
#
# May way of solving this issue is to resort to vmhgfs-fuse installed with open-vm-tools.
# Either mount locally using vmhgfs-fuse .host:/$(vmware-hgfsclient) ~/some_mountpoint or globally using
# sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other.
#
# To then make mounting globally persistent add the following line to your /etc/fstab:
# .host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
# -----------------------------------------------------------------------------
# On Windows Desktop Host I added d drive as shared folder on vmware workstation sharefolder setting on the vm
#
# Now we Create directory in users /home directory on ubuntu
# -----------------------------------------------------------------------------
mkdir /home/User/sharefolder
# -----------------------------------------------------------------------------
# Now mount drive using open-vm-tools
# -----------------------------------------------------------------------------
vmhgfs-fuse .host:/$(vmware-hgfsclient) /home/User/sharefolder/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment