Hi,
one problem solved, immediately the next one. :^)

My clients (Ubuntu Hardy 8.04.1, LTSP5) don't recognize external USB-CD-ROMs.
Nothing gets mounted on the server.

Here some information from the client:

##### from dmesg:
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 2:0:0:0: CD-ROM            TSSTcorp CD/DVDW SN-S082D SS02 PQ: 0 ANSI: 0
Driver 'sr' needs updating - please use bus_type methods
sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 2:0:0:0: Attached scsi CD-ROM sr0
sr 2:0:0:0: Attached scsi generic sg0 type 5

##### udevadm info -q all -n sr0
P: /block/sr0
N: scd0
S: disk/by-id/usb-Generic_USB_2.0_Mass_Storage_Device_009D00000000186C
S: disk/by-path/pci-0000:00:10.3-usb-0:6:1.0-scsi-0:0:0:0
S: sr0
S: cdrom
S: cdrw
S: dvd
S: dvdrw
S: cdrom1
S: cdrw1
S: dvd1
S: dvdrw1
E: ID_CDROM=1
E: ID_CDROM_CD_R=1
E: ID_CDROM_CD_RW=1
E: ID_CDROM_DVD=1
E: ID_CDROM_DVD_R=1
E: ID_CDROM_DVD_RAM=1
E: ID_CDROM_MRW=1
E: ID_CDROM_MRW_W=1
E: ID_CDROM_RAM=1
E: DEVTYPE=disk
E: ID_VENDOR=Generic
E: ID_MODEL=USB_2.0_Mass_Storage_Device
E: ID_REVISION=0000
E: ID_SERIAL=Generic_USB_2.0_Mass_Storage_Device_009D00000000186C
E: ID_SERIAL_SHORT=009D00000000186C
E: ID_TYPE=cd
E: ID_BUS=usb
E: ID_PATH=pci-0000:00:10.3-usb-0:6:1.0-scsi-0:0:0:0

So it obviously is a block device.
The rules in /etc/udev/rules.d/50-ltspfsd.rules look like this:
ACTION=="add", KERNEL=="fd[0-9]", RUN+="add_fstab_entry %k auto"
ACTION=="add", SUBSYSTEM=="block", RUN+="add_fstab_entry %k"

I guess the problem sits in /lib/udev/add_fstab_entry at these lines:
# Make sure we have a valid FSTYPE
[ -z "${FSTYPE}" ] && FSTYPE="${ID_FS_TYPE}"   # Use udevinfo ID_FS_TYPE
[ -z "${FSTYPE}" ] && exit 1                   # That's empty too, die.

No parameter for FSTYPE is passed and I didn't find any ID_FS_TYPE-info in
udev.
/var/run/ltspfs_fstab stays empty, nothing gets mounted.

When I manually run:
/lib/udev/add_fstab_entry cdrom auto
Wrote 66696559963a80c04743ba61be7b3c17 size 32, waiting

and ltspfs_fstab contains:
/dev/cdrom /var/run/drives/cdrom auto defaults 0 0

Why are fd-devices invoked with the parameter 'auto' for the FSTYPE and
CD-ROMs not? Can I just add it or does this brake other things?

Thanks
Helmut

-- 
-------------------------------------------------------------------------
Helmut Lichtenberg  <[EMAIL PROTECTED]>  Tel.: 05034/871-128
Institut für Nutztiergenetik (FLI)         31535 Neustadt         Germany
-------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to