
VMware, Inc. 197
Chapter 8 Transferring Files and Text Between the Host and Guest
Folder Mounting
Thismechanismallowsyoutomountoneormoredirectoriesorsubdirectoriesina
sharedfoldertoanylocationinyourfilesysteminadditiontothedefaultlocationof
/mnt/hgfs.Youcanusethemountprogramtomountallshares,oneshare,ora
subdirectorywithinasharetoanylo
cationinyourfilesystem.Thefollowingtable
providesexamples.
Whenyouusethemountprogram,youcanuseVMware‐specificoptionsinadditionto
thestandardmountsyntax.Toseeusageinformationforthehost‐guestfilesystem
options,enterthiscommand:
/sbin/mount.vmhgfs -h
Tousemountinthisway,youmustusethevirtualmachinesettingseditorin
Workstationtosetupandenableasharedfolder.Aftertheshareexists,youcanmount
thesharedfoldertootherlocationsbesidesthedefault.
InpreviousversionsofVMwareTools,whenaLinuxguestattemptedtomounta
sh
aredfolder
,thevmware-guestdprogramattemptedtoperformthemount.Ifit
failed,theonlyevidenceofthefailurewasanemptyfolder.
WiththenewversionofVMwareTools,theToolsservicesscriptloadsadriverthat
performsthemount.Ifthemountfails,amessageappearsregardingmou
nti
ngHGFS
shares.
Themountcanfailifsharedfoldersaredisabledorifthesharedoesnotexist.Youare
notpromptedtore‐runtheVMwareToolsconfigurator(the
vmware-config-tools.plfile).
Command Description
mount -t vmhgfs .host:/ /home/user1/shares Mountsallsharesto
/home/user1/shares
mount -t vmhgfs .host:/foo /tmp/foo Mountsthesharenamedfooto
/tmp/foo
mount -t vmhgfs .host:/foo/bar /var/lib/bar Mounts thesubdirectorybarwithin
thesharefooto/var/lib/bar
NOTEWhenyouinstallVMwareTools,anentryismadetoetc/fstabtospecifythe
locationofsharedfolders.Youcaneditthisfiletochangeoraddentries.
Comentarios a estos manuales