Differences between revisions 34 and 35
Revision 34 as of 2006-03-10 14:33:41
Size: 2999
Editor: EddyPetrisor
Comment: Remove spam
Revision 35 as of 2006-05-15 01:25:35
Size: 3012
Editor: TheAnarcat
Comment: fix various markup issuse
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
__Requirements in Kernel 2.6:__
==
Requirements in Kernel 2.6 ==
Line 9: Line 10:
__requirements in Kernel < 2.6:__ == requirements in Kernel < 2.6 ==
Line 12: Line 14:
__methods to see if a device (like mouse) is properly connected:__ == methods to see if a device (like mouse) is properly connected ==
Line 15: Line 18:
__Desktop__ == desktop ==
Line 21: Line 24:
__troubleshooting:__ == troubleshooting ==
Line 24: Line 27:
__faq:__ == faq ==
Line 53: Line 56:
__Hardware Devices:__ == Hardware Devices ==
Line 56: Line 59:
 * ["USBStorageDevice"].  * ["USBStorageDevice"]
Line 60: Line 63:
 * ["BootUsb"].  * ["BootUsb"]
Line 62: Line 65:
__General and Misc. info:__ == General and Misc. info ==

See also, in french, ["DebFrUSB"]


["Hardware"] >


Universal Serial Bus (USB)

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
  • ...

Hardware Devices

  • UsbHardware - Marks and models bootable and Linux compatible.

  • ["USBStorageDevice"]
  • ["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"]

General and Misc. info