How To Set Up A USB-Over-IP Server And Client With Mandriva 2010.0 - Page 2
3 Installing And Using USB/IP On The Clientclient1: First we load the vhci-hcd kernel module: modprobe vhci-hcd To check if it really got loaded, run: lsmod | grep vhci_hcd The output should be similar to this one: [root@client1 administrator]# lsmod | grep vhci_hcd To make sure that the module gets loaded automatically whenever you boot the system, you can add it to /etc/modprobe.preload: vi /etc/modprobe.preload
Now we must install usbip on the client. The steps are the same as on the server: urpmi wget flex gcc gcc-c++ libsysfs-devel libglib2.0-devel cd /tmp usbip expects the file containing the list of known USB devices (usb.ids) in the directory /usr/share/hwdata, but on Mandriva 2010.0 it's located in /usr/share/usb.ids - therefore we create a symlink: mkdir /usr/share/hwdata Now connect to the usbip server and get a list of available USB devices: usbip -l 192.168.0.100 (192.168.0.100 is the IP address of the usbip server.) You should find the SanDisk USB flash drive in the output (BUSID 1-5): [root@client1 src]# usbip -l 192.168.0.100 To attach that device to the client, run: usbip -a 192.168.0.100 1-5 [root@client1 src]# usbip -a 192.168.0.100 1-5 port 0 attached Now run... lsusb ... and you should find the remote USB device in the output on the client: [root@client1 src]# lsusb You can now use the remote USB device as if it was a local USB device (e.g. mount it, format it, write to it, read form it, etc.).
4 Detaching A Remote USB DeviceA remote USB device can be detached as follows: client1: Run... usbip --port ... to find out the port that the remote USB device uses on the client - in this case it's port 00: [root@client1 src]# usbip --port We need the port number to detach the device: usbip -d 00 [root@client1 src]# usbip -d 00 port 0 detached On the server, we use the BUSID (1-5) to bind the USB device to the local system (the --other switch binds the device to the local system so that it is not available over the network anymore): server1: bind_driver --other 1-5 [root@server1 administrator]# bind_driver --other 1-5 Now go back to the client and check if the remote USB device is still available: client1: lsusb If all goes well, it shouldn't be listed anymore: [root@client1 src]# lsusb
5 Links
|



Recent comments
12 hours 8 min ago
13 hours 44 min ago
18 hours 4 min ago
21 hours 55 min ago
1 day 9 hours ago
1 day 15 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 20 hours ago
1 day 20 hours ago