2.4、重新执行/etc/fstab的挂载操作。
[iyunv@localhost yorks]# mount -a
mount: none already mounted or /proc/bus/usb busy
[iyunv@localhost yorks]#
出错了。
2.5、google: none /proc/bus/usb usbfs devgid=501,devmode=664 0 0,结果:
************Fedora中文论坛里面的说的。发现/proc/bus/usb和/sys /bus/usb/drivers不同,于是就试着修改,将/proc/bus/usb换成/sys/bus/usb/drivers。**********
再次测 试:
[iyunv@localhost yorks]# mount -a
[iyunv@localhost yorks]#
这次没 有错误了。接着打开VirtualBox,出现了这个提示:
不鸟它。启动guest,插上U盘,提示找到新硬件...OK啦。。享用吧。 从这个链接也得到了一些启发: http://www.phpfans.net/ask/answer1/6861957371.html
附:VirtualBox USB解决方案之官方原文:
USB
To get USB support, you need the PUEL (non-free) version. Via the GUI, there is an option to enable USB. Furthermore, your user must be able to access /proc/bus/usb/* Since Gutsy, /proc/bus/usb is not mountedby default. Version 2.0.6 removes the need for the following lines to be added, but /proc/bus/usb must still be mounted. Previously, in Intrepid, you needed to add the following lines to /etc/init.d/mountdevsubfs.sh right after domount devpts "" /dev/pts devpts -onoexec,nosuid,gid=$TTYGRP,mode=$TTYMODE but before the ending }for the dostart shell function. For Gutsy and Hardy you just need to edit /etc/init.d/mountdevsubfs.sh and uncomment the following lines:
#
# Magic to make /proc/bus/usb work in virtualbox version < 2.0.6
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
Then run the script that you just edited:
sudo /etc/init.d/mountdevsubfs.sh start
In order to give users in the vboxusers group write permissions to the devices in /proc/bus/usb, you'll need to edit some rules in /etc/udev/rules.d. Under Gutsy, edit /etc/udev/rules.d/40-permissions.rules to say the following:
# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device", MODE="0664", GROUP="vboxusers"
Under Hardy and Intrepid, edit /etc/udev/rules.d/40-basic-permissions.rules to say the following:
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664", GROUP="vboxusers"
SUBSYSTEM=="usb_device", MODE="0664", GROUP="vboxusers"
Then, restart the udev service:
sudo /etc/init.d/udev restart
Now, if you haven't done it already, make sure your user is part of the group vboxusers using the following command:
sudo usermod -G vboxusers -a `whoami`