Mounting VMware Shared Folder in Linux Guest (VMware Workstation 15) - Default Path

Abstract: Resolve missing /mnt/hgfs directory and mount VMware shared folders in Linux guests by installing open-vm-tools and using vmhgfs-fuse.

Created: 2026-09-10 by
To mount a VMware shared folder in a Linux guest running on Workstation 15, you must first enable the feature in the VM settings and then use the vmhgfs-fuse command. The default mount point is typically /mnt/hgfs, but modern Linux distributions often do not create this directory automatically. You need to manually create the directory, ensure the open-vm-tools package is installed, and then mount the file system using the correct fuse syntax to access your host files from within the virtual machine.

Prerequisites and Configuration

Before attempting to mount the shared folder, you must configure the virtual machine settings correctly. Open VMware Workstation 15, select your target Linux virtual machine, and click on Edit Virtual Machine Settings. Navigate to the Options tab and select Shared Folders. Here, you will see a dropdown menu for "Shared folders." Select the option labeled Always enabled. This ensures that the shared folder is available immediately upon boot, rather than requiring manual intervention each time. Next, add the specific folder from your host operating system (Windows or macOS) that you wish to share. Click the Add button, browse to the desired directory on your host machine, and give it a name. This name is crucial because it becomes the identifier for the shared folder inside the Linux guest. For example, if you name it MyDocs, you will reference this name when mounting. It is also critical to verify that the open-vm-tools suite is installed and running inside the Linux guest. This service provides the necessary drivers and utilities for VMware features to function. If you are using a minimal installation of Ubuntu, Debian, or CentOS, these tools might not be present by default. Without them, the shared folder functionality will fail silently or produce errors during the mount process.

Installing Required Software

The foundation of shared folder support in Linux guests is the open-vm-tools package. While older versions of VMware relied on proprietary modules, modern distributions prefer the open-source implementation. Ensure this package is installed before proceeding with any mount commands. For Debian-based systems like Ubuntu or Linux Mint, use the following command in the terminal:
sudo apt update
sudo apt install open-vm-tools open-vm-tools-desktop
The open-vm-tools-desktop package is optional but recommended as it includes additional features like clipboard sharing and automatic window resizing. For Red Hat-based systems such as CentOS, Rocky Linux, or Fedora, use:
sudo yum install open-vm-tools
# Or for newer DNF based systems:
sudo dnf install open-vm-tools
After installation, restart the virtual machine to ensure the services start correctly. You can verify the service status by running systemctl status vmtoolsd. If the service is active and running, you are ready to proceed with creating the mount point.

Creating the Mount Point

By default, VMware expects shared folders to be mounted at /mnt/hgfs. However, many modern Linux distributions do not create this directory by default, especially in server or minimal installations. Attempting to mount to a non-existent directory will result in an error. Therefore, the first step in the mounting process is to create this directory manually. Run the following command to create the directory with appropriate permissions:
sudo mkdir -p /mnt/hgfs
The -p flag ensures that parent directories are created if they do not exist and prevents an error if the directory already exists. Once this directory is in place, you have a valid target location for the shared file system. It is important to note that while /mnt/hgfs is the historical standard, some newer configurations may use different paths depending on how the fuse module is configured, but sticking to the default path simplifies troubleshooting and compatibility across different Linux versions.

Mounting the Shared Folder

With the prerequisites met and the mount point created, you can now perform the actual mount operation. VMware uses the FUSE (Filesystem in Userspace) technology to expose host directories to the guest. The command used for this is vmhgfs-fuse. To mount all shared folders defined in the VM settings, run:
sudo vmhgfs-fuse .host:/ /mnt/hgfs
This command tells the fuse driver to map the .host:/ namespace (which represents all shared folders) to your local /mnt/hgfs directory. After executing this command, navigate to /mnt/hgfs and list the contents. You should see the name of the shared folder you configured earlier (e.g., MyDocs). Accessing this subdirectory will give you read/write access to the corresponding folder on your host machine. If you only want to mount a specific shared folder rather than all of them, you can specify the folder name explicitly:
sudo vmhgfs-fuse .host:/MyDocs /mnt/hgfs/MyDocs
This method is useful if you have multiple shared folders and want to organize them into separate directories within the guest OS. Remember to adjust the source path (.host:/FolderName) and the destination path according to your specific configuration.

Troubleshooting Common Issues

If the mount fails, check several common pitfalls. First, ensure that the open-vm-tools service is actually running. Sometimes, after a kernel update or a failed boot, the service may not start automatically. Restarting the service with sudo systemctl restart vmtoolsd can resolve transient issues. Second, verify that the shared folder is set to "Always enabled" in the VM settings. If it is set to "Disabled" or "Enabled until next power off," the mount point might be empty or inaccessible depending on the current state of the VM. Third, check for permission errors. If you cannot write to the mounted folder, ensure that your user has the necessary permissions. You can change the ownership of the mount point or the shared folder contents using chown or chmod commands. Additionally, some security policies or SELinux contexts might block access; in such cases, checking the audit logs or temporarily disabling SELinux can help isolate the problem. For more complex networking or display driver issues that might interfere with overall VM performance, you might find related guidance in articles discussing How to Add the Display Driver Called "-device vmware-svga,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1" Directly Inside virt-manager or VMWare 17 Player Linux NAT guest can ping but cannot resolve DNS names, although these are distinct from the shared folder mechanism itself.

Frequently Asked Questions

Why is /mnt/hgfs empty after mounting?

This usually indicates that the shared folder is not enabled in the VM settings or the open-vm-tools service is not running. Verify that the shared folder is set to "Always enabled" in the VMware options and check the status of the vmtoolsd service.

Can I mount a shared folder permanently without typing the command every time?

Yes, you can add the mount command to your /etc/fstab file or create a systemd unit to automate the process. However, since the mount depends on the VMware tools running, it is often safer to rely on the auto-mount feature provided by the tools themselves once properly configured.

What if I get a "Permission denied" error when trying to write to the folder?

This is likely due to file ownership settings. The files appear to be owned by root by default. You can change the ownership of the mounted directory to your user using the chown command, or adjust the permissions using chmod.

Does this work with VMware Player as well as Workstation?

Yes, the procedure is identical for VMware Player and Workstation. Both applications use the same underlying open-vm-tools infrastructure for shared folders. Just ensure that the shared folder feature is enabled in the player's VM settings.

How do I unmount the shared folder?

You can unmount the folder using the standard umount command followed by the mount point path, for example: sudo umount /mnt/hgfs. Note that unmounting may stop access to the shared data until it is remounted.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More