歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 在Ubuntu中使用autofs自動加載Virtual Box數據空間

在Ubuntu中使用autofs自動加載Virtual Box數據空間

日期:2017/2/28 16:01:56   编辑:Linux教程

主機為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 中訪問數據空間。

Copyright © Linux教程網 All Rights Reserved