Vmware10中Centos7掛載Windows主機的共享文件夾,提示:Error: cannot mount filesystem: No such device

一、設置共享權限

這裏寫圖片描述

二、安裝VMware tools

這裏寫圖片描述

  • 點擊虛擬機
  • 點擊安裝 VMware tools
  • 將/run/media/zhaojq/VMware\ Tools 目錄下的VMwareTools-9.6.2-1688356.tar.gz拷貝到家目錄下
  • 解壓後生成vmware-tools-distrib
  1.  
    [zhaojq @localhost vmware-tools-distrib]$ ls
  2.  
    bin doc etc FILES INSTALL installer lib vmware-install.pl

運行./vmware-install.pl

[zhaojq@localhost vmware-tools-distrib]$ ./vmware-install.pl 

一直enternode

  1.  
    The path "" is not valid path to the gcc binary.
  2.  
    Would you like to change it? [yes] no
  3.  
    輸入 no
  4.  
    The path "" is not a valid path to the 3.10.0-514.26.2.el7.x86_64 kernel
  5.  
    headers.
  6.  
    Would you like to change it? [yes] no
  7.  
    輸入 no

安裝成功後返回linux

  1.  
    Enjoy,
  2.  
     
  3.  
    --the VMware team

二、掛載Windows主機的共享文件夾

mnt/hgfs 目錄

  1.  
    [zhaojq @localhost ~] cd /mnt/hgfs/
  2.  
    [zhaojq @localhost hgfs] pwd
  3.  
    /mnt/hgfs

vmware-hgfsclient 命令查看當前共享的目錄redis

  1.  
    [zhaojq @localhost hgfs]$ vmware-hgfsclient
  2.  
    E

mount報錯ruby

  1. [zhaojq @localhost hgfs]$ sudo mount -t vmhgfs .host:/E /mnt/hgfs
  2. Error : cannot mount filesystem: No such device

 

vmhgfs-fuse,須要安裝工具包markdown

  1.  
    [zhaojq @localhost hgfs]$ yum install open-vm-tools-devel -y
  2. [zhaojq @localhost hgfs]$ vmhgfs-fuse .host:/E /mnt/hgfs

 

三、查看掛載

注意:須要root權限查看。框架

Windows 主機的E盤狀況

這裏寫圖片描述

Centos虛擬機下的掛載狀況

  1.  
    [root@localhost hgfs] # ls
  2.  
    jashkenas-coffeescript- 1.12.6-0-gf0e9837.tar.gz LeaRun敏捷後臺開發框架_6.3.4 $RECYCLE.BIN System Volume Information
  3.  
    LeaRun_6 .3.4.zip node-v6.11.1-linux-x64.tar.xz redis-3.2.9.tar.gz

 

掛載成功工具

相關文章
相關標籤/搜索