LoginSignup
8
7

More than 5 years have passed since last update.

[備忘録] open-vm-toolsでwindowsディレクトリのマウント

Posted at

VMWareでホストWindows上でゲストLinuxを動作させているときに、Windows側の共有ディレクトリをLinuxでマウントする方法。
以前は$ mount -t vmhgfsでマウントできていたがopen-vm-tools推奨となって少し変わっている。

インストール

$ sudo aptitude install open-vm-tools open-vm-tools-dkms open-vm-tools-desktop

マウント

$ sudo mount -t fuse.vmhgfs-fuse -o allow_other .host:/<share dir> <mount point>

allow_otherをつけないとroot以外はアクセス禁止となる。(詳細やその他のオプションはfuse(8)参照)

/etc/fstab への記述

/etc/fstab
.host:/<share dir> <mount point> fuse.vmhgfs-fuse allow_other 0 0
8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7