ubuntu /proc/bus/usb 没有的解决方法
来源:互联网 发布:如何开展网络文化工作 编辑:程序博客网 时间:2024/04/28 18:43
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.
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.
0 0
- ubuntu /proc/bus/usb 没有的解决方法
- 解决没有/proc/bus/usb目录问题
- USB 设备的自动检测 /proc/bus/usb
- 解决/proc/bus/usb/目录下没有devices文件问题
- 解决/proc/bus/usb/目录下没有devices文件问题
- usb设备/proc/bus/usb
- Ubuntu开机显示An error occurred while mounting /proc/bus/usb 问题的解决
- 分析/proc/bus/usb/device
- sysfs and /proc/bus/usb/device
- mount -t usbdevfs none/proc/bus/usb
- linux下无/proc/bus/usb目录
- 开机显示an error occurred while mounting /proc/bus/usb
- sysfs and /proc/bus/usb/device
- sysfs and /proc/bus/usb/device
- ubuntu没有声音的解决方法
- Bus error的解决方法
- bus error的解决方法
- bus error的解决方法
- mysql存储过程
- poj2800
- CUDA开发环境配置
- Emacs+Python(非默认模式)快速配置
- 【题解】[hdu3874]Necklace
- ubuntu /proc/bus/usb 没有的解决方法
- java 中的printStackTrace()方法
- 基于Spring源码分析AOP的实现机制
- 高斯平滑滤波器
- hdu1849Rabbit and Grass (尼姆博弈)
- typedef 与 #define的区别
- 卡特兰数 Catalan number
- 读usbfs的一些感想
- 编辑文章 - 博客频道 - CSDN.NET