Automatically using a USB key
When I insert my USB key, I see the definition of a new /dev/sda1 device.
Questions:
1) is hotplug responsible for detecting and configuring the whole thing ?
2) How is udev involved ?
3) Can I always make that when the USB is inserted it is also
automatically mounted on a known path (e.g. /usbkey) ?
See below for syslog output
TIA,
Bob
Jan 17 13:14:17 localhost kernel: usb 2-2: new full speed USB device
using uhci_hcd and address 2
Jan 17 13:14:18 localhost kernel: SCSI subsystem initialized
Jan 17 13:14:18 localhost kernel: Initializing USB Mass Storage driver...
Jan 17 13:14:19 localhost usb.agent[9382]: usb-storage: loaded
successfullyJan 17 13:14:19 localhost kernel: scsi0 : SCSI emulation for
USB Mass Storage devices
Jan 17 13:14:19 localhost kernel: usbcore: registered new driver usb-storage
Jan 17 13:14:19 localhost kernel: USB Mass Storage support registered.
Jan 17 13:14:19 localhost kernel: usb-storage: device found at 2
Jan 17 13:14:19 localhost kernel: usb-storage: waiting for device to
settle before scanning
Jan 17 13:14:24 localhost kernel: Vendor: IBM Model: Memory Key
Rev: 3.04
Jan 17 13:14:24 localhost kernel: Type: Direct-Access
ANSI SCSI revision: 00
Jan 17 13:14:24 localhost kernel: usb-storage: device scan complete
Jan 17 13:14:24 localhost scsi.agent[9541]: disk at
/devices/pci0000:00/0000:00:1d.1/usb2/2-2/2-2:1.0/host0/target0:0:0/0:0:0:0
Jan 17 13:14:24 localhost kernel: SCSI device sda: 127840 512-byte hdwr
sectors (65 MB)
Jan 17 13:14:24 localhost kernel: sda: assuming Write Enabled
Jan 17 13:14:24 localhost kernel: sda: assuming drive cache: write through
Jan 17 13:14:24 localhost kernel: SCSI device sda: 127840 512-byte hdwr
sectors (65 MB)
Jan 17 13:14:24 localhost kernel: sda: assuming Write Enabled
Jan 17 13:14:24 localhost kernel: sda: assuming drive cache: write through
Jan 17 13:14:24 localhost kernel: sda: sda1
Jan 17 13:14:24 localhost kernel: Attached scsi removable disk sda at
scsi0, channel 0, id 0, lun 0
Jan 17 13:14:24 localhost udev[9580]: configured rule in
'/etc/udev/rules.d/z_hal-plugdev.rules' at line 2 applied, 'sda' becomes
'%k'
Jan 17 13:14:24 localhost udev[9580]: creating device node '/dev/sda'
Jan 17 13:14:24 localhost udev[9598]: configured rule in
'/etc/udev/rules.d/z_hal-plugdev.rules' at line 2 applied, 'sda1'
becomes '%k'
Jan 17 13:14:24 localhost udev[9598]: creating device node '/dev/sda1'
Reply to: