Skip to content

Instantly share code, notes, and snippets.

@blzaugg
Last active August 29, 2015 14:04
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 blzaugg/6915089cc1570b426935 to your computer and use it in GitHub Desktop.
Save blzaugg/6915089cc1570b426935 to your computer and use it in GitHub Desktop.

Linux

Mounting Shares

View Current Mounts

$ mount

VMWare

Install VMWare Tools

From: Installing VMware Tools in an Ubuntu virtual machine (1022525)

Create a directory to mount the CD-ROM
$ sudo mkdir /mnt/cdrom
Mount the CD-ROM
$ sudo mount /dev/cdrom /mnt/cdrom or sudo mount /dev/sr0 /mnt/cdrom
Extract VMware Tools bundle and install
$ tar xzvf /mnt/cdrom/VMwareTools-x.x.x-xxxx.tar.gz -C /tmp/
$ cd /tmp/vmware-tools-distrib/
$ sudo ./vmware-install.pl -d
$ sudo reboot

View current Shares

$ /usr/bin/vmware-hgfsclient
# or just
$ vmware-hgfsclient

Mounting Share

$ mkdir /path/to/sharemount #/home/username/share/
$ sudo mount -t vmhgfs .host:/sharename /path/to/sharemount

Auto mount share on boot

In, /etc/fstab, add entry:

.host:/sharename  /path/to/sharemount	vmhgfs	defaults	0	0

If auto mounting doesn't work, remote the new line in /etc/fstab, and try:

$ ln -s /mnt/hgfs/sharefolder /home/username/emptysharefolder/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment