Editing
USB Devices
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Unhide the `/proc/bus/usb` directory == On the host, you can do one of the following: To do it as a '''''one-off''''', type the following as root: <pre> vnamespace -n bash umount -n /proc/bus/usb setattr --~hide /proc/bus setattr --~hide /proc/bus/usb </pre> :''Note:'' this creates a new namespace and lauches bash in that context. It then umounts the USB filesystem and then unhides the USB subsystem. Note that this doesn't unmount USB for the host, or any existing guests, but the umount is necessary for the setattr to take effect. To make this '''''persist for a specific guest''''', add the following to `/etc/vservers/<guest>/scripts/pre-start`: <pre> vnamespace -n bash -c "umount -n /proc/bus/usb ; setattr --~hide /proc/bus ; setattr --~hide /proc/bus/usb" </pre> :''Note'' this is a bit of brute force. It enables ''all'' guests to see USB (assuming they have the right `fstab` entry, below, and doesn't turn it off. If you want to be more fancy, you can probably rehide the USB when the guest is shut down. However, this will break if you have more than once guest using USB
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information