Results 1 to 4 of 4

Thread: /proc/bus/usb Missing

  1. #1
    Join Date
    Nov 2009
    Beans
    351
    Distro
    Ubuntu Studio 20.04 Focal Fossa

    /proc/bus/usb Missing

    Hi,

    I had Ubuntu Desktop 9.10 installed successfully and had Plextor USB capture device working properly.

    I recently upgraded to Ubuntu Studio 9.10 and now find that I can no longer use Plextor device as it requires usbfs mounted on /proc/bus/usb. When I checked I found that /proc/bus/usb directory has disappeared and hence the usbfs mount fails. I have no problems with other USB devices however.

    Any suggestions will be greatly appreciated.

    Did a bit more checking....the problem started with the 2.6.31.20-generic-pae upgrade. When I boot into 2.6.31.19-generic-pae the /proc/bus/usb directory appears!
    Last edited by gdesilva; March 18th, 2010 at 05:43 AM. Reason: Extra info added

  2. #2
    Join Date
    Dec 2009
    Beans
    2

    Re: /proc/bus/usb Missing

    The folder /proc/bus/usb is part of usbfs. Because of conflicts with udev, newer Ubuntu kernels come with usbfs disabled. Your basic options are:

    1. Use an older kernel (2.6.31.17 or 2.6.31.18 for instance).
    2. Compile your own kernel with usbfs enabled (not going to go into how you do that exactly, as the info is available simply by searching Google for "ubuntu compile kernel usbfs").

    Hope that helps!
    Steve

  3. #3
    Join Date
    Nov 2009
    Beans
    351
    Distro
    Ubuntu Studio 20.04 Focal Fossa

    Re: /proc/bus/usb Missing

    Thanks for the response Steve, I will give it a try.

  4. #4
    Join Date
    Nov 2009
    Beans
    351
    Distro
    Ubuntu Studio 20.04 Focal Fossa

    Re: /proc/bus/usb Missing

    It appears that the same problem has occurred with earlier versions of the 64bit OS. As Steve mentioned with later versions of kernel /proc/bus/usb will not be available. However, a workaround of sorts for this has been already found https://bugs.launchpad.net/ubuntu/+s...ux/+bug/507824

    The solution is as follows;

    It is not a long term solution, but I found another solution, for getting /proc/bus/usb back again and no need for usbfs.

    First I put my user to sudoers for /bin/mount and /bin/umount
    Then I changed my scanner script to do the magic.

    Before running my scanner the script will do:
    sudo mount --bind /dev/bus /proc/bus

    while on exit of the script it fires the command:
    sudo umount -l /proc/bus

    mount --bind /dev/bus /proc/bus or
    mount --bind /dev/bus/usb /proc/bus/usb
    will make /proc/bus/usb accessible /proc/bus/usb for some hardware (although this will cause the other directories under /proc/bus to be hidden). So you should umount again, after use.

    It is a reasonable workaroud and worked fine for me. Just should make sure to unmount after using the device otherwise /proc/bus/pci and /proc/bus/input etc gets hidden!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •