在Ubuntu中使用autofs自动加载Virtual Box数据空间

字体大小: 中小 标准 ->行高大小: 标准

主机为Windows 7,虚拟机为Ubuntu 11.10。首先在Virtual Box中设置数据空间名为 vbs 。

$sudo apt-get install autofs

在 /etc/auto.master 中加入

/media file:/etc/auto.vbox --timeout=30 --ghost

在 /etc/auto.vbox 中写入

vbox -fstype=vboxsf,rw vbs

之后重启autofs

$sudo service autofs restart

即可在 /media/vbox 中访问数据空间。

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/58479.html