Bug 152054 - eject doesn't work - /dev/{cdrecorder,cdrom} missing
Summary: eject doesn't work - /dev/{cdrecorder,cdrom} missing
Status: RESOLVED FIXED
: 153691 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Beta 3
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Kay Sievers
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 20:25 UTC by Andreas Kleen
Modified: 2006-03-23 22:29 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
logs (647.91 KB, application/x-bzip2)
2006-02-20 14:59 UTC, Andreas Kleen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kleen 2006-02-18 20:25:53 UTC
> eject
eject: unable to find or open device for: `/dev/cdrom'

It should work out of the box

The system has a sata cdrecorder which is /dev/sr0. I guess something
should create the proper /dev/cdrom symlinks (both /dev/cdrom and /dev/cdrecorder)
Comment 1 Michael Gross 2006-02-20 12:21:06 UTC
Please attach the yast logs, a seperate `hwinfo --cdrom' would also be nice. Thanks.
Comment 2 Andreas Kleen 2006-02-20 12:26:51 UTC
It has nothing to do with yast.
Comment 3 Kay Sievers 2006-02-20 14:29:38 UTC
Wrong, the rule to create /dev/cdrom is maintained by Yast. If /dev/sr0 is there but /dev/cdrom is not, Yast needs to setup the rule to create the symlink.
Comment 4 Michael Gross 2006-02-20 14:43:40 UTC
Yes, and this did not work, so the logfiles should be of use here - maby YaST was just confused about the SATA device.
Comment 5 Andreas Kleen 2006-02-20 14:59:21 UTC
Created attachment 69340 [details]
logs
Comment 6 Michael Gross 2006-02-20 16:19:59 UTC
Reassigning to Thomas.
Comment 7 Andreas Kleen 2006-02-20 16:21:54 UTC
I checked some other beta3 systems and only the one with the SATA CD/RW
has this problem
Comment 8 Hendrik Vogelsang 2006-02-28 14:22:35 UTC
*** Bug 153691 has been marked as a duplicate of this bug. ***
Comment 9 Thomas Fehr 2006-03-15 15:45:45 UTC
Here is another machine where udev does not seem to create the symlinks
in /etc/udev/rules.d/65-cdrom.rules
Comment 10 Kay Sievers 2006-03-15 20:54:45 UTC
What does:
 udevtest /block/sr0
print?
Comment 11 Andreas Kleen 2006-03-23 19:43:52 UTC
# udevtest /block/sr0
main: looking at device '/block/sr0' from subsystem 'block'
run_program: '/sbin/usb_id -x'
run_program: '/sbin/usb_id' returned with status 1
run_program: '/sbin/scsi_id -g -x -s /block/sr0 -d /dev/.tmp-11-0'
run_program: '/sbin/scsi_id' returned with status 1
run_program: '/sbin/scsi_id -g -x -a -s /block/sr0 -d /dev/.tmp-11-0'
run_program: '/sbin/scsi_id' (stdout) 'ID_VENDOR=PLEXTOR'
run_program: '/sbin/scsi_id' (stdout) 'ID_MODEL=DVDR_PX-712A'
run_program: '/sbin/scsi_id' (stdout) 'ID_REVISION=1.05'
run_program: '/sbin/scsi_id' (stdout) 'ID_SERIAL='
run_program: '/sbin/scsi_id' (stdout) 'ID_TYPE=cd'
run_program: '/sbin/scsi_id' (stdout) 'ID_BUS=scsi'
run_program: '/sbin/scsi_id' returned with status 0
run_program: '/sbin/path_id /block/sr0'
run_program: '/sbin/path_id' (stdout) 'ID_PATH=pci-0000:00:1f.2-scsi-1:0:1:0'
run_program: '/sbin/path_id' returned with status 0
udev_rules_get_name: add symlink 'disk/by-path/pci-0000:00:1f.2-scsi-1:0:1:0'
udev_rules_get_name: add symlink 'cdrom'
udev_rules_get_name: no node name set, will use kernel name 'sr0'
create_node: creating device node '/dev/sr0', major = '11', minor = '0', mode = '0640', uid = '0', gid = '6'
create_node: creating symlink '/dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:1:0' to '../../sr0'
create_node: creating symlink '/dev/cdrom' to 'sr0'
main: run: 'socket:/org/freedesktop/hal/udev_event'
main: run: 'socket:/org/kernel/udev/monitor'
Comment 12 Kay Sievers 2006-03-23 19:54:45 UTC
What's the content of /etc/udev/rules.d/65-cdrom.rules?
Comment 13 Andreas Kleen 2006-03-23 21:48:36 UTC
# cdrom links generated by YaST2
# 
SUBSYSTEM=="block", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:1:0", SYSFS{removable}=="1", SYMLINK+="cdrom"
Comment 14 Kay Sievers 2006-03-23 21:57:06 UTC
Looks all fine:
  create_node: creating symlink '/dev/cdrom' to 'sr0'

Are you sure that the link is not there after reboot?
Comment 15 Andreas Kleen 2006-03-23 22:26:28 UTC
It's not

# ls -l /dev/cdrom
/bin/ls: /dev/cdrom: No such file or directory
Comment 16 Andreas Kleen 2006-03-23 22:29:49 UTC
Ok after another reboot it's there now.