vim /etc/fstab
# .host:/共享文件夹名称 /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0
# 要共享D、E、F
# D盘挂载
.host:/D /mnt/hgfs/D fuse.vmhgfs-fuse allow_other,defaults 0 0
# E盘挂载
.host:/E /mnt/hgfs/E fuse.vmhgfs-fuse allow_other,defaults 0 0
# F盘挂载
.host:/F /mnt/hgfs/F fuse.vmhgfs-fuse allow_other,defaults 0 0
# 创建挂载目录
sudo mkdir -p /mnt/hgfs/D
sudo mkdir -p /mnt/hgfs/E
sudo mkdir -p /mnt/hgfs/F
# 设置权限(可选,根据你的需要)
sudo chmod 777 /mnt/hgfs/D
sudo chmod 777 /mnt/hgfs/E
sudo chmod 777 /mnt/hgfs/F
注:可能需要在vmware中添加共享文件夹,没试过。
