Virtualbox and some special USB (no driver) identification problems (2) solved some special USB problems that cannot be identified (in fact, it is very easy to plug in the USB reboot)

Source: Internet
Author: User

It turned out that the mobile phone could not connect to Linux. It happened that virtualbox was another virtual machine in the past few days. Just now the mobile phone was plugged in with USB, restarted, and identified :),If you restart your computer and do not make the following settings, your phone will be recognized (for unknown reasons)
. (Or follow the steps below to restore the original status, and the mobile phone can be recognized.
), Solving? (Thank you for choosing the specific information)

 

Let's discuss my problem again:

After the phone is uninstalled, you can still use lsusb to view the connection between the USB and the PC:
"Samsung semicondu, Inc ."

But the problem arises. At this time, Mount-A won't be able to load my cell phone. Of course, DF won't be there. Please give me some advice!

 

 

If you want to identify USB in VB, the normal program should follow the following steps;

This is a summary of others, and I do not know the link. Thank you;

Virtulabox USB flash drive settings
I thought of a user manual for usermanual.pdf under the virtualboxinstallation directory, and then checked the settings for USB.
In general, the meaning is as follows:
1. Make sure that the user who is using virtualbox is a member of the user group vboxusers.
2. Make sure that the user has the permission to read and write the file system usb fs.
3. Modifying/proc/bus/USB is ineffective. You can only modify the/etc/fstab file.
4. Modify the/etc/fstab file so that the USB user group must have the permission to read and write USB Fs. Add:
None/proc/bus/USB usbfs devgid = 85, devmode = 664 0 0
Devgid, 85 is the ID of the USB user group. Devmode, 664 is the permission for the usb fs File System 664
5. If the system does not have a USB user group, you need to use vboxusers, the user group generated during virtualbox installation.

2. After learning about it, go to the next step:
2.1 Add the current user as a member of vboxusers.
[Root @ localhost Yorks] # Cat/etc/group | grep vboxusers
Vboxusers: X: 501:
[Root @ localhost Yorks] #/usr/sbin/usermod-G vboxusers-A Yorks
[Root @ localhost Yorks] # Cat/etc/group | grep vboxusers
Vboxusers: X: 501: Yorks

2.2 check whether there are USB user groups
[Root @ localhost Yorks] # Cat/etc/group | grep USB
[Root @ localhost Yorks] # Cat/etc/group | grep USB
[Root @ localhost Yorks] #
Neither of the two is returned because there is no output.

2.3 modify the/etc/fstab file.
[Root @ localhost Yorks] # echo "NONE/proc/bus/USB usbfs devgid = 501, devmode = 664 0 0">/etc/fstab
[Root @ localhost Yorks] # tail-2/etc/fstab
/Dev/sda7/home ext3 defaults 0 0
None/proc/bus/USB usbfs devgid = 501, devmode = 664 0 0
[Root @ localhost Yorks] #
Note: 501 is the vboxusers group ID found in 2.1.

2.4 re-mount/etc/fstab.
[Root @ localhost Yorks] # Mount-
Mount: None already mounted or/proc/bus/USB busy
[Root @ localhost Yorks] #
Error.

2.5. Google: NONE/proc/bus/USB usbfs devgid = 501, devmode = 664 0 0. Result:
* ************ Said in the ora Chinese forum. I found that/proc/bus/USB is different from/sys/bus/USB/drivers, so I tried to change/proc/bus/USB to/sys/bus/USB/drivers. **********
Test again:
[Root @ localhost Yorks] # Mount-
[Root @ localhost Yorks] #
There is no error this time. Open virtualbox, and the prompt is displayed:
No bird. Start guest, plug in the USB flash drive, and prompt to find the new hardware... OK .. Enjoy it.

 

I also got some inspiration from this link:

Http://www.phpfans.net/ask/answer1/6861957371.html

 

 

Appendix: virtualbox USB SolutionOfficial original
:

 

USB

To get USB support, you need the Puel (non-free) version. Via
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 mounted
By default. Version 2.0.6 removes the need for the following lines
Be added, but/proc/bus/USB must still be mounted. previusly, in
Intrepid, you needed to add the following lines
/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 hard you just need
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-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
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 (usb fs replacement)
Subsystem = "usb_device", mode = "0664", group = "vboxusers"

Under hard and intrepid, edit/etc/udev/rules. d/40-basic-permissions.rules to say the following:

# USB devices (usb fs 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 'whoamam'

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.