1、首先需要一個USB使用者組,可以用vboxusers這個在安裝VirtualBox的時候産生的使用者組,把你使用的這個使用者加到vboxusers組中,確定該使用者是否有權限去讀寫usbfs這個檔案系統,下面貼指令
<code>cat /etc/group |grep vboxusers</code> #檢視vboxusers使用者組gid
vboxusers:x:123: #後面的123就是vboxusers的ID
<code>sudo /usr/sbin/usermod -G vboxusers -a name</code> #把name使用者加到vboxusers組中,後面的name就是你要加的使用者名
<code>cat /etc/group |grep vboxusers</code>
vboxusers:x:123:name #此時可以檢視到name以及被加到此使用者組了
經過第一步如果仍然不能解決問題,繼續下一步:
<code>2、sudo gedit /etc/fstab</code> #編輯fstab檔案
在末行加上以下指令,儲存
<code>none /proc/bus/usb usbfs devgid=123,devmode=664 0 0</code> #這裡devgid的值就是你前面所檢視的vboxusers的ID
3、OK啟動你的虛拟機,插入一個USB裝置,右鍵點選虛拟機右下角的USB圖示選擇你插入的USB裝置,虛拟機中就可以識别到了