Package: udev
Version: 0.100-2.2

Hi,

As informed in #398305, D-I had some trouble recognizing my pcmcia
cd-rom during installation.
Digging a little bit more, I found that the symlink was correct in
/dev/cdroms/, but the "list-devices" script was not able to find it.
The problem is that "udevinfo -q env -p /block/hde" (from the
list-devices script) don't return an ID_TYPE field as expected.

So, with the system already installed, I tried out the following commands:


# udevinfo -q all -p /block/hde
P: /block/hde
N: hde
S: cdrom
E: ID_CDROM=1
E: ID_CDROM_MRW=1
E: ID_CDROM_MRW_W=1
E: GENERATED=1


(Please note that this very same command from d-i didn't show any Env
field, only Path, Name and Symlink. This is the output from the
installed system).


# udevtest /block/hde
This program is for debugging only, it does not create any node,
or run any program specified by a RUN key. It may show incorrect results,
if rules match against subsystem specfic kernel event variables.

main: looking at device '/block/hde' from subsystem 'block'
run_program: 'cdrom_id --export /dev/.tmp-33-0'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_MRW=1'
run_program: '/lib/udev/cdrom_id' (stdout) 'ID_CDROM_MRW_W=1'
run_program: '/lib/udev/cdrom_id' returned with status 0
udev_rules_get_name: add symlink 'cdrom'
udev_rules_get_name: no node name set, will use kernel name 'hde'
udev_device_event: device '/block/hde' already in database, validate
currently present symlinks
udev_node_add: creating device node '/dev/hde', major = '33', minor =
'0', mode = '0660', uid = '0', gid = '24'
udev_node_add: creating symlink '/dev/cdrom' to 'hde'
main: run: 'socket:/org/kernel/udev/monitor'
main: run: '/etc/init.d/hdparm hotplug'


I also ran the "ata_id" program from the "extras" directory of the
udev sources. Interestenly, it showed the "ID_TYPE" field:

# ./ata_id --export /dev/hde
ID_TYPE=cd
ID_MODEL=TOSHIBA_CD-ROM_XM-7002Bc
ID_SERIAL=
ID_REVISION=1910
ID_BUS=ata


If there's something you want me to try in order to help, I'll be glad to.

Thanks,

Dario.-


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to