栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

ubuntu vmware vm-tools 安装与共享文件夹

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ubuntu vmware vm-tools 安装与共享文件夹

  1. 安装
    下面的命令全部敲一遍,有些可能定位不到,不用理会(可能是不同的版本用了不同的名字)
sudo apt-get install open-vm-tools
sudo apt-get install open-vm-tools-desktop
sudo apt-get install open-vm-tools-dkms
sudo apt-get install open-vm-tools-dbg
sudo apt-get install open-vm-tools-dev

2.设置共享文件夹,重启有效

sudo vi /etc/fstab

在最后一行添加

.host:/share_dir /mnt/hgfs/new_dir fuse.vmhgfs-fuse allow_other 0 0

share_dir: windows 共享文件夹名称
new_dir :ubuntu 内显示的名称

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#                
# / was on /dev/sda3 during installation
UUID=434122a2-62d4-45b1-b15b-6532e92d127e /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=6F05-9E64  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sda4 during installation
UUID=7236f54e-16f5-4e52-9dc9-1ffff6d5545c /home           ext4    defaults        0       2
# swap was on /dev/sda2 during installation
UUID=d32a954e-7ca9-4367-8bb3-9e4d78c83b45 none            swap    sw              0       0
#shared
.host:/share_dir /mnt/hgfs/new_dir fuse.vmhgfs-fuse allow_other 0    0

dump 工具通过它决定何时作备份. dump 会检查其内容,并用数字来决定是否对这个文件系统进行备份。 允许的数字是 0 和 1 。0 表示忽略, 1 则进行备份。大部分的用户是没有安装 dump 的 ,对他们而言 应设为 0。

fsck 读取 的数值来决定需要检查的文件系统的检查顺序。允许的数字是0, 1, 和2。 根目录应当获得最高的优先权 1, 其它所有需要被检查的设备设置为 2. 0 表示设备不会被 fsck 所检查。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/840618.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号