Bug 118673 - CD-ROM drives detected incorrect
Summary: CD-ROM drives detected incorrect
Status: RESOLVED FIXED
: 119103 (view as bug list)
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: RC 1
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Thomas Fehr
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 21:58 UTC by Michael Stather
Modified: 2005-09-30 09:27 UTC (History)
1 user (show)

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


Attachments
Screenshot displaying the detected configuration (128.18 KB, image/jpeg)
2005-09-23 21:59 UTC, Michael Stather
Details
YaST2 Logs (854.30 KB, application/x-compressed-tar)
2005-09-26 12:39 UTC, Michael Stather
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stather 2005-09-23 21:58:06 UTC
Attached is a screenshot which is shown by the YaST2 module "cdrom"
The first entry is correct, the drive is installed in my system.
The second entry is correct too, the drive is present, but when I "add" the
drive (goes successfully on /media/dvd) and exit and reenter the module, its
state is still as seen on the screenshot (not integrated).
The third drive isn´t present and the forth is a duplicate. It seems that YaST
detects 3 drives instead of one.
Comment 1 Michael Stather 2005-09-23 21:59:03 UTC
Created attachment 50772 [details]
Screenshot displaying the detected configuration
Comment 2 Michael Stather 2005-09-24 08:36:39 UTC
I just noticed another strange thing. Sometimes the whole system hangs for some
seconds while the LED of the drive which is misdetected flashges, regardless
whether there´s a CD in it or not
Comment 3 Martin Lasarsch 2005-09-26 09:19:54 UTC
please provide /var/log/YaST2/y2log and hwinfo --cdrom  
Comment 4 Michael Stather 2005-09-26 10:22:41 UTC
Attached id the y2log. I removed all the cd drives from my system, but YaST
still reports 2 cd drives. hwinfo --cdrom returns nothing.
Comment 5 Martin Lasarsch 2005-09-26 12:30:33 UTC
why you removed the drives? 
 
there is no y2log attached. 
Comment 6 Michael Stather 2005-09-26 12:37:39 UTC
Oops sorry I´ll attach the log.
I removed the drives because the system often locks up with the light of the
first drive lit. I tried various configurations with the drives and YaST always
showed drives that didn´t exist. So I thought the best for helping to fix this
bug is attaching a log where no drives are attached to the system but YaST
reports 2 drives in the system.
Comment 7 Michael Stather 2005-09-26 12:39:38 UTC
Created attachment 50826 [details]
YaST2 Logs
Comment 8 Thomas Fehr 2005-09-26 15:14:57 UTC
unfortunately are also cdrom drives visible that have been removed from the 
system since these removed drives still have entries in the hwinfo database.

This will be fixed in SL 10.1.
Comment 9 Michael Stather 2005-09-26 15:30:23 UTC
How can I fix this for my system?
These entries cause one drive to fail to be integrated and also cause lockups
sometimes as described above.
Comment 10 Thomas Fehr 2005-09-26 15:36:07 UTC
I doubt that presence of these entries cause lockups maybe the lockups
are caused by the udev subsystem itself but I have no knowledge about udev.
YaST2 only creates lines in /etc/udev/rules.d/55-cdrom.rules and /etc/fstab.

It might help to remove all entries concerning cdroms from these files but 
of course then udev will not create links /dev/{cdrom,dvd,cdrecorder}
automatically for you.
Comment 11 Michael Stather 2005-09-26 15:53:20 UTC
Isn´t it possible to configure the system like its "supposed" to be. I mean like
if I´d do a clean install of RC1. If there are some old entries which aren´t
removed can I just remove them and make the non-existing entries in YaST disappear?
Comment 12 Thomas Fehr 2005-09-26 17:00:20 UTC
As already said, simply edit the entries from /etc/udev/rules.d/55-cdrom.rules
according to your needs. These lines look like the following (all in one line):

SUBSYSTEM=="block", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-1:0",
SYSFS{removable}=="1", SYMLINK+="cdrom"

The entry for "ENV{ID_PATH}" can be found with "hwinfo --cdrom" just look at
the line with "/dev/disk/by-path/" and use the last entry of this path after
ENV{ID_PATH}==.

The entry "SYMLINK+=" contains symlinks in /dev created for this device if
there should be more than one separate them by spaces.
Comment 13 Michael Stather 2005-09-26 17:07:40 UTC
I don´t have a /etc/udev/rules.d/55-cdrom.rules file
There exists a 20-cdrom.rules which contains the following:

# cdrom links generated by YaST2
# 
BUS="ide", ID="1.0", SYSFS{removable}="1", SYMLINK="dvdrecorder cdrom dvd
cdrecorder"
BUS="ide", ID="0.0", SYSFS{removable}="1", SYMLINK="dvd cdrom"
BUS="none", ID="0.0", SYSFS{removable}="1", SYMLINK="dvd"
Comment 14 Thomas Fehr 2005-09-26 17:22:54 UTC
This was present in SL 9.3 and will not work any more in SL 10.0
Just create lines in a file /etc/udev/rules.d/55-cdrom.rules as described
in comment #12.
Comment 15 Michael Stather 2005-09-26 22:11:47 UTC
Sorry if I misunderstand you here, but I´ve another system with RC1 installed
(no upgrade) and there´s also no "55-cdrom.rules" present as you said its
created by YaST but also a "20-cdrom.rules".
Before I try to get the cdroms to work I´d like to remove the old entries from
the hardware database. YaST2 still reports the 2 non-existing cdroms even if I
delete the rules file.
Comment 16 Thomas Fehr 2005-09-27 07:16:45 UTC
You have to create 55-cdrom.rules manually, I explained in comment #12 how
this can be done. 

The problem with the duplicated lines in cdrom dialog is unrelated to the 
file 55-cdrom.rules as are the hangs of you cdrom devices.
Comment 17 Martin Lasarsch 2005-09-30 09:27:28 UTC
*** Bug 119103 has been marked as a duplicate of this bug. ***