FS#13969 - /dev/cdrom broken after upgrade to kernel26-2.6.28.8

Attached to Project: Arch Linux
Opened by Johannes Dewender (JonnyJD) - Thursday, 26 March 2009, 17:18 GMT
Last edited by Tobias Powalowski (tpowa) - Wednesday, 01 April 2009, 06:30 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
I upgraded to the new kernel and I couldn't use /dev/cdrom as the standard CD device anymore.
For example doing this while having an audio CD in the cd drive:
cdparanoia -Q
yields
/dev/cdrom exists but isn't accessible. By default,
...
More information about /dev/cdrom:
Checking /dev/cdrom for cdrom...
Could not stat /dev/cdrom: No such file or directory

The symlinks are correct:
lrwxrwxrwx 1 root root 21 26. Mär 17:16 /dev/cdrom -> /dev/cd/cdrom-1:0:0:0
lrwxrwxrwx 1 root root 6 26. Mär 17:16 /dev/cd/cdrom-1:0:0:0 -> ../sr0
brw-rw---- 1 root optical 11, 0 26. Mär 17:16 /dev/sr0

and doing
cdparanoia -Q /dev/sr0
works and gives the TOC of the CD.

I checked, that udev-140 was not the problem. Downgrading udev didn't help, but downgrading the kernel did.
There is also a thread in the forum about the problem:
http://bbs.archlinux.org/viewtopic.php?pid=522727

Additional info:
* package version(s)
kernel26-2.6.28.8-1 fails
kernel26-2.6.28.7-2 works


Steps to reproduce:
upgrade to kernel26-2.6.28.8-1
put an Audio CD in your drive and do a "cdparanoia -Q". (Make sure that drive is you standard one pointed to by /dev/cdrom)
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Wednesday, 01 April 2009, 06:30 GMT
Reason for closing:  Fixed
Comment by Jens Adam (byte) - Thursday, 26 March 2009, 17:33 GMT Comment by Johannes Dewender (JonnyJD) - Thursday, 26 March 2009, 18:20 GMT
Yes, this seems related. However, for some reason everything worked for me before I upgraded to 2.6.28.8

I also found out something new:
The symlinks are only correct with the new kernel before you insert anyting into your CD drive.
After I insert a disc I only get:
lrwxrwxrwx 1 root root /dev/cd/cdrom- -> ../sr0
instead of the correct link before
lrwxrwxrwx 1 root root /dev/cd/cdrom-1:0:0:0 -> ../sr0

This doesn't recover, when I take the disc out again.

So the behavior is very similar to
http://bugs.archlinux.org/task/12177
but like I said. this was fine for me with 2.6.28.7
There it was some custom kernel. My guess is, that some of these custom parts are now in the stable kernel.
Comment by Brett Williams (vor_lord) - Friday, 27 March 2009, 02:58 GMT
Same problem for me also. Stock kernel, started happening when I upgraded this week to 2.6.28.8.

> pacman -Q | grep udev
klibc-udev 140-1
udev 140-1

> ll /dev/dvd
lrwxrwxrwx 1 root root 19 2009-03-26 20:43 /dev/dvd -> /dev/cd/dvd-0:0:0:0

> ll /dev/cd/dvd-0:0:0:0
ls: cannot access /dev/cd/dvd-0\:0\:0\:0: No such file or directory

> ll /dev/cd/
total 0
lrwxrwxrwx 1 root root 6 2009-03-26 20:43 cdrom- -> ../sr0
lrwxrwxrwx 1 root root 6 2009-03-26 20:43 cdrw- -> ../sr0
lrwxrwxrwx 1 root root 6 2009-03-26 20:43 dvd- -> ../sr0
Comment by Chris Darnell (cedeel) - Monday, 30 March 2009, 09:45 GMT
I just want to confirm that I can reproduce this behavior.
Comment by Tobias Powalowski (tpowa) - Monday, 30 March 2009, 10:22 GMT
it should be fixed with udev-140-2
Comment by Johannes Dewender (JonnyJD) - Tuesday, 31 March 2009, 23:21 GMT
Thanks a lot. udev-140-2 did it for me.

Loading...