|
Size: 5126
Comment: clean obsolete usbmouse links
|
Size: 1830
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| See also, in french, ["DebFrUSB"] -------- ["Hardware"] > |
#language en ## ############################################################## ## ## More informations on "DebianWiki/EditorGuide" article ## Don't use all this template, just what you need ! ## ## ############################################################## ## ||<tablestyle="width: 100%;" style="border: 0px hidden">~-Translation(s): [:DebFrUSB:Français]-~ ||<style="text-align: right; border: 0px hidden"> (!) [:/Discussion:Discussion]|| [[BR]] ||<tablestyle="width: 100%; text-align: center; border: 0px hidden"> http://www.debian.org/logos/openlogo-nd-50.png http://www.debian.org/Pics/debian.png|| ||<style="border: 0px hidden">~+inline:Portal/IDB/logo_portal.png Welcome on ["Debian"] '''U'''niversal '''S'''erial '''B'''us+~|| |
| Line 5: | Line 14: |
| = Universal Serial Bus (USB) = | inline:Portal/IDB/icon-usb-32x32.png This portal explain how to install, configure and use USB device |
| Line 7: | Line 16: |
| == Requirements in Kernel 2.6 == The USB devices are automatically mountable in Kernel 2.6 . == requirements in Kernel < 2.6 == * feel free to edit == methods to see if a device (like mouse) is properly connected == * .... == desktop == A desktop ["user interface"] to ["USBStorage"]. ["usb-mount"] == troubleshooting == * ... == faq == * Is there a way to have a usb key always assigned to /dev/sda and the usb disk to /dev/sdb? It is often useful to have a canonical name for your USB devices. This is easy to set up using udev. The following example is a modified /etc/udev/hal.rules that creates symlinks from /dev/mykey to /dev/sd*1 and from /dev/myusbdisk to /dev/sd*1, regardless the order they got plugged in. Only the first 4 uncommented lines have been added to the default configuration. You will need to modify the SYSFS{model}="<name>" according to the entries you find in /sys/bus/scsi/devices/*/model. /etc/udev/hal.rules {{{ # put removable IDE/SCSI devices into the hal group instead of 'disk' BUS="scsi", KERNEL="sd[a-z]*1", SYSFS{model}="JUMPDRIVE", SYMLINK="mykey", \ PROGRAM="/etc/udev/scripts/device-removable.sh %k", RESULT="1", NAME="%k", MODE="0640", GROUP="hal" BUS="scsi", KERNEL="sd[a-z]*1", SYSFS{model}="["SP1604N"]", SYMLINK="myusbdisk", \ PROGRAM="/etc/udev/scripts/device-removable.sh %k", RESULT="1", NAME="%k", MODE="0640", GROUP="hal" BUS="scsi",KERNEL="sd[a-z]*", PROGRAM="/etc/udev/scripts/device-removable.sh %k", RESULT="1", NAME="%k", MODE="0640", GROUP="hal" # BUS="ide", KERNEL="hd[a-z]*", PROGRAM="/etc/udev/scripts/device-removable.sh %k", RESULT="1", NAME="%k", MODE="0640", GROUP="hal" BUS="usb", KERNEL="ub[a-z]*", NAME="%k", MODE="0640", GROUP="hal" }}} '["tail"] -f /var/log/syslog' is useful to debug these new udev rules. you can then add the following lines in your fstab: {{{ /dev/mykey /media/key auto rw,user 0 0 /dev/myusbdisk /media/disk auto rw,user 0 0 }}} * A potentially easier method is to plug the MP3 player or camera or external hard drive (any "Mass Storage" USB device), and browse the `/dev/disk/by-{id,label,path,uuid}/` directories, which contain symbolic links pointing to the corresponding device file. Some examples: * `/dev/disk/by-id/` - contains a symbolic link named using a concatenation of various kernel details about the device (bus type/vendor/product name/serial number, etc.), pointing to the /dev/<device_name> device. * `/dev/disk/by-label/` - contains symbolic links for disk partitions which have labels (such as those on the volume label for vfat/fat partitions, or ext2 or ext3 or xfs or reiserfs etc. partitions), for any disks that have one. Note that if you'd like to change labels on existing partitions, you can find good examples on Ubuntu's wiki or [http://doc.gwos.org/index.php/Understanding_fstab#List_Devices here]. * `/dev/disk/by-path/` - symbolic links created by referencing where on each PCI bus/device/function/etc. the devices are located * `/dev/disk/by-uuid/` - using per-device Universally Unique IDs, if available. * If you find a symbolic link underneath this `/dev/disk/by-*/` area, you can use that in your `/etc/fstab` file like the following example. With this setup, I can plug in USB devices in any order, such that they each are assigned to different `/dev/sd*` devices, yet the `/dev/disk/by-*/` links specified in the `/etc/fstab` file remain unchanged, as those links are updated to point to the proper device file. This way, I can plug in a device, and as my user account, mount the `/media/` location. {{{ # Media devices (cameras, MP3 players, etc., identified by "id" (a concatenation of kernel information # gathered after the device is connected.)) This information should be unique and static per device. /dev/disk/by-id/usb-OLYMPUS_C-4040ZOOM_000197334942-part1 /media/OLYMPUS_C-4040ZOOM auto rw,user,noauto 0 0 /dev/disk/by-id/usb-NIKON_DSC_COOLPIX_P1_000030409725-part1 /media/NIKON_DSC_COOLPIX_P1 auto rw,user,noauto 0 0 }}} * ... == Hardware Devices == |
* Requirements in Kernel 2.6: The USB devices are automatically mountable in Kernel 2.6 . * Requirements in Kernel < 2.6: ''feel free to edit'' ---- |
| Line 71: | Line 22: |
| * ["USBStorage"] | |
| Line 75: | Line 27: |
== General and Misc. info == * WikiPedia: http://www.wikipedia.org/wiki/Universal_Serial_Bus * [http://www.qbik.ch/usb/devices/devices.php Linux USB devices]. |
* ["usb-mount"] |
| Line 90: | Line 38: |
__Resources: __ * WikiPedia:Universal_Serial_Bus * http://www.qbik.ch/usb/devices/devices.php Linux USB devices |
|
| Line 91: | Line 44: |
| ---- CategoryPortal | ["Hardware"] |
?BR
inline:Portal/IDB/icon-usb-32x32.png This portal explain how to install, configure and use USB device
- Requirements in Kernel 2.6: The USB devices are automatically mountable in Kernel 2.6 .
Requirements in Kernel < 2.6: feel free to edit
UsbHardware - Marks and models bootable and Linux compatible.
- ["USBStorageDevice"]
- ["USBStorage"]
- ["USBDrive"]
USB ["Keydrive"] : you can put debian on a USB keydrive and boot it directly from the memory stick, using DebianInstaller.
- You can use ["usbmount"] to automatically mount ["USBStorageDevice"] when they are plugged in.
["BootUsb"]
- ["usb-mount"]
?BootingFromFloppyToUsb
- ["USBCamera"]
- ["USBWebCam"]
- ["USBDrive"]
- ["USBKey"]
- ["USBKeyBootable"]
- ["USBKeyDistro"]
- ["USBStorage"]
- ["USBStorageDevice"]
?UniversalSerialBus
Resources:
http://www.qbik.ch/usb/devices/devices.php Linux USB devices
CategoryPortal | ["Hardware"]
