The above mount command will mount the hgfs file system onto the directory mountpoint. The -r mount option makes the file system read-only; note that shared folders may independently have been configured as read-only on the VMware host. The options field is a string consisting of comma-delimited key or key=value options. The following options are supported.
4 prefix=path This option sets a path prefix that will be prepended to all file system operations on the host system. When mounted without a prefix (the default), the root directory of an HGFS mount will contain all the names of the available shares. The prefix option can be used to mount one of those shares, by specifying its name as the prefix. Multi-component path prefixes are supported as well.
uid=number This sets the user ID used for all the files and directories in the file system, allowing a non-root user to be the owner. The value must be specified as a decimal number. The default is root (the number 0).
gid=number Likewise, sets the group ID for all files and directories. The default is operator (the number 0).
fmask=number This option sets the file permission mask of regular files. It is specified as an octal number. For example, a value of 600 makes all files readable and writable by the owning user (see the "uid" option). The default is 755.
dmask=number Likewise, sets the file permission mask of directories. The default is also 755.
icase This option tells HGFS to treat names as case-insensitive.
noicase This option, set by default, reverts the effect of an earlier specified "icase" option.
20 mount -t hgfs none /mnt # Mount the entire shared folders tree on /mnt
20 mount -t hgfs -o prefix=shared,uid=20,fmask=644,icase none /usr/shared # Mount the "shared" shared folder on /usr/shared
Some file system operations may not behave as expected, because the behavior of HGFS is determined largely by the host. Other file system operations (in particular, using directories as mountpoints) are not implemented, because the file system structure as perceived by HGFS may change arbitrarily at any time, due to modifications on the host side.