Hi all,
I was playing around with WD MyBook WorldEdition (Whitelight, 2gb) to make it recognise a CD/DVD burner plugged into USB socket, and finally made it work (see
http://mybookworld.wikidot.com/cd-dvd-rom-on-mbwe ). However, I can only now mount the burner manually as a sr0/sr1/etc device, and for whatever reason the hotplug would not mount it automatically.
The CD/DVD writer is ASUS SDRW-08D1S-U.
I am very new to Linux and not quite sure how hotplugging works in 2.6.24.4 and especially on the "slim" version supplied on MBWE. There are several scripts in /etc/hotplug, eg "scsi.agent" and "usb.agent", and also "usb.usermap" (which was originally empty). Before any manipulations with hotplug files, the system produced something like the following in /var/log/messages:
user.notice [22547]: ... no modules for USB Initio SDRW-08D1S-U
"Initio" seems to be the name of USB-to-SCSI bridge built in the CD ROM.
So I created usb.usermap in /../hotplug from "modules.usbmap" (in /lib/modules/....) and then added a line at the very top of usb.usermap for this "Initio" device as it did not seem to be supported (idVendor and other info taken from /sys/bus../)
As to the first word in this new "usb.usermap" line I used "usb-storage" (driver name) as all other devices seem to use the same (in fact, I later tried to change this to other driver names (usbtest, cdrom, sr_mod) but that did not help).
So now when I plug in my USB CD ROM, /var/log/messages confirm that usb-storage (or other tested drivers) has been setup, but no mounting happens in the end.
When I plug a USB-flash or USB-external-HDD, hotplugging seems to do a similar job (/var/log/messages shows "usb-storage" is setup for the relevant hardware), except that there is additional line from WixEvent:
Dec 12 00:12:00 WD daemon.info wixEvent[5033]: USB Status - USB device inserted.
Dec 12 00:12:02 WD user.notice usb.agent[18887]: Setup usb-storage for USB JetFlash Mass Storage Device
Dec 12 00:12:03 WD user.notice usb.agent[18904]: Setup usb-storage usb-storage for USB product 58f/6387/141
Dec 12 00:12:21 WD user.notice usb.agent[18887]: Setup usb-storage for USB JetFlash Mass Storage Device
Dec 12 00:12:23 WD user.notice usb.agent[18904]: Setup usb-storage usb-storage for USB product 58f/6387/141
A USB-flash is then automatically mounted within /shares/xxx, and also becomes available publicly.
So the question is: does anyone now how these hotplug scripts are invoked/ what am I missing to get the CD/DVD burner to be mounted/shared by hotplugging? Does it have something to do with the fact that CD/DVD burner is in fact a SCSI device, not a USB device? How does the system treat it them - as "usb-storage" or as a scsi drive?
Any help will be appreciated.