197 字
1 分钟
Linux 挂载 VMware 共享文件夹
挂载 VMware 共享文件夹
启用 VMware 共享文件夹(主机操作)
VMware 设置 → 选项 → 共享文件夹 → 添加主机目录(如 D:\Share)。
安装 open-vm-tools
sudo apt install open-vm-tools -y创建共享文件夹
sudo mkdir -p /mnt/share临时挂载
sudo mount -t fuse.vmhgfs-fuse .host:/Share /mnt/share -o allow_other uid=$(id -u) -o gid=$(id -g) -o umask=022永久挂载
echo "# VMware shared folder mounted at /mnt/share.host:/Share /mnt/share fuse.vmhgfs-fuse allow_other,uid=$(id -u),gid=$(id -g),umask=022 0 0" | sudo tee -a /etc/fstab > /dev/null说明
上面命令中的
uid和gid需要根据你的用户uid来决定,在$HOME目录输入id命令即可查询(通过id -u和id -g获取)。
allow_other选项为允许其他用户访问。如果要挂载到非空目录,需要添加
-o nonempty选项(如果有残留文件可能导致冲突)。
Linux 挂载 VMware 共享文件夹
https://www.satxm.top/posts/vmware-share/ 最后更新于 2025-06-18,距今已过 177 天
部分内容可能已过时