I just bought a TwinMOS Mobile Disk and wanted it to hotplug in linux Fedora Core 2 on my laptop. This is how.
This is what dmesg gives me:
usb 1-1: new full speed USB device using address 7
scsi4 : SCSI emulation for USB Mass Storage devices
Vendor: USB 2.0 Model: Mobile Disk N4S Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sda: 507904 512-byte hdwr sectors (260 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi4, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi4, channel 0, id 0, lun 0, type 0
USB Mass Storage device found at 7
updfstab: Using deprecated /dev/sg mechanism instead of SG_IO on the actual device
So my device is a “Mobile Disk N4S Rev: 1.00″. Now, as root, edit /etc/updfstab.conf.default so it includes the following (I figured this out by reading bug 111507):
device microdrive {
partition 1
match hd IBM-DMDM
match hd "Twinmos Mobile Disk"
match hd "Mobile Disk N4S"
}
Next, follow the explanation in bug 111506 and add the following line in
/etc/hotplug/usb.distmap (one line):
usb-storage 0x000f 0x0ea0 0x06803 0x0200 0x0200 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
Now you can simply plug your device, and in 2 seconds the directory /mnt/microdrive will magically show up. Invoke mount /mnt/microdrive to access it. Before unplugging it, you should do a umount /mnt/microdrive.
Keywords: usb 2.0 dongle flash disk on key fail to hotplug configure set up settings pendrive pen drive redhat linux redhat 9.0 fedora core 1 fedora core 2 fedora core 3 fc1 fc2 fc3 kernel 2.4 kernel 2.6.8-1.521 porn-in-pocket