You are not logged in.

#1 2012-12-04 04:25:46

dochollidae970
Member
Registered: 2012-12-04
Posts: 4

Optical Drives Not Found/Not Working

Hello everyone,

I'm having trouble getting my optical drives working. They are both the same make and model, and they both have power (open and close) but they aren't recognized by the system. I installed Arch a couple of weeks ago, after the init scripts/systemd change, so nothing was broken there (I'm not sure if that would even have anything to do with it.

I've done some research to see if I could find any drivers/firmware, but all of things I've found are only for Windows. The optical drives do work in Windows. I have added myself to the 'optical' group, and dmesg | grep CD gives:

[    0.630535] ata5.00: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS04, max UDMA/33
[    0.630560] ata5.01: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS08, max UDMA/33

I also recall reading here that perhaps they aren't being picked up by the kernel, but I am very unclear on how to check to see what the kernel is picking up. I'm also not sure if they have ever worked under Arch and then stopped, or whether they never worked at all. I just found out earlier today when I went to burn a CD and xfburn gave a message saying that there were no burners found.

The /dev directory has no cdrom* or sr* listings at all. lshw also shows nothing about the optical drives. Any help would be greatly appreciated.

Thanks.


| Asus P5W DH Deluxe | Intel Core2 Duo OC'd @ 3.12GHz | 8GB DDR2 |
| 2x nVIDIA GTX 560 Ti | 1TB Windows | 350GB Arch Linux /home, 80GB / |

Offline

#2 2012-12-04 05:34:37

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Optical Drives Not Found/Not Working

I suggest disconnecting one of them and see if that makes any difference. I have the same make and it's working ok since a long time.

One solution might be to write udev rules to separate them and make udev create proper mount points.

Also, take a look in the systemd log; journalctl | grep "whatever"

Offline

#3 2012-12-04 17:08:31

dochollidae970
Member
Registered: 2012-12-04
Posts: 4

Re: Optical Drives Not Found/Not Working

I unplugged one of the drives, but it still did not show up in /dev. I checked the systemd log and it shows the folllowing:

[dochollidae@ArchLinux ~]$ sudo journalctl | grep DVD
Dec 02 03:40:58 ArchLinux kernel: ata5.01: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS08, max UDMA/33
Dec 02 08:10:08 ArchLinux kernel: ata5.00: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS04, max UDMA/33
Dec 02 08:10:08 ArchLinux kernel: ata5.01: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS08, max UDMA/33
Dec 03 04:32:35 ArchLinux kernel: ata5.00: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS04, max UDMA/33
Dec 03 04:32:35 ArchLinux kernel: ata5.01: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS08, max UDMA/33
Dec 03 13:25:44 ArchLinux kernel: ata3.01: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS08, max UDMA/33
Dec 03 13:59:04 ArchLinux kernel: ata1.01: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS08, max UDMA/33
Dec 03 14:11:33 ArchLinux kernel: ata5.01: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS08, max UDMA/33
Dec 04 02:31:28 ArchLinux kernel: ata5.01: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS08, max UDMA/33
Dec 04 11:52:41 ArchLinux kernel: ata5.01: ATAPI: TSSTcorpCD/DVDW SH-S162L, TS08, max UDMA/33

The one labeled "TS04" isn't there anymore, but the one that is doesn't show up in devices.

I looked into writing udev rules, and I came across this thread and created a file /etc/udev/rules.d/82-cdrom.rules:

SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="cdrom cdrw dvd dvdrw", ENV{GENERATED}=1

# permissions for IDE CD devices
SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", ATTRS{media}=="cdrom*", GROUP="optical"

# permissions for SCSI CD devices
SUBSYSTEMS=="scsi", KERNEL=="s[rg][0-9]*", ATTRS{type}=="5", GROUP="optical"

That didn't do the trick, but being that I have never dealt with writing udev rules before, I'm not sure if I'm going about it the right way.


| Asus P5W DH Deluxe | Intel Core2 Duo OC'd @ 3.12GHz | 8GB DDR2 |
| 2x nVIDIA GTX 560 Ti | 1TB Windows | 350GB Arch Linux /home, 80GB / |

Offline

#4 2012-12-04 17:28:29

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Optical Drives Not Found/Not Working

That udev rule is quite old and with systemd--unless you run some old app like me (graveman) that wants to see a /dev/cdrom or /dev/dvd--you shouldn't really need it.  Also the file seems to be a little off--especially the last line for scsi drives.  All I have in mine is:

# Custom CD-ROM symlinks
SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="cdrom"
SUBSYSTEM=="block", KERNEL=="sr1", SYMLINK+="dvd dvdrw"

and like I said, I only do that since I don't want to change my graveman config--lazy tongue

What does your dmesg say?  It should show drives as sr0 and sr1 if you have them both connected and they're recognized.

Also, with systemd fully implemented--you're not using an "init=" at the end of your bootloader still, I hope--you shouldn't need to be in optical group.  Polkit sets your permissions for you.

Edit: I just came across another post where the sr_mod wasn't autoloaded so check lsmod to see if it's there.

Last edited by bgc1954 (2012-12-04 19:12:35)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#5 2012-12-05 00:56:19

dochollidae970
Member
Registered: 2012-12-04
Posts: 4

Re: Optical Drives Not Found/Not Working

I now realize that the thread I was looking at is over a year old. I don't think that I'm running any applications that are quite that old. Both optical drives show up when I run dmesg, but that's as far as it goes when it comes to recognizing the drives.

The relevant information from lsmod is:

[dochollidae@ArchLinux ~]$ lsmod
Module                  Size  Used by
usbcore               150440  7
usb_common               955  1 usbcore
libata                167757  6
floppy                 58259  0
scsi_mod              133434  5 uas,usb_storage,libata,sd_mod,sr_mod
dm_mod                 72106  7 

sr_mod is not there. So I ran

modprobe sr_mod

then added sr_mod to mkinitcpio.conf, then ran

mkinitcpio -p linux

, and rebooted.

Now sr_mod shows up when I run lsmod:

[dochollidae@ArchLinux ~]$ lsmod
Module                  Size  Used by
usbcore               150440  7
usb_common               955  1 usbcore
libata                167757  6
floppy                 58259  0 
sr_mod                 14824  0 
cdrom                  35521  1 sr_mod
scsi_mod              133434  5 uas,usb_storage,libata,sd_mod,sr_mod
dm_mod                 72106  7 

Even after all of this, though, there is nothing in /dev that represents optical drives.

Could it be that I did something incorrectly or missed something during installation? I was thinking that perhaps if I reinstalled the kernel that would make things right, but I am not certain if that is the right thing to do or if it could even make a difference.


| Asus P5W DH Deluxe | Intel Core2 Duo OC'd @ 3.12GHz | 8GB DDR2 |
| 2x nVIDIA GTX 560 Ti | 1TB Windows | 350GB Arch Linux /home, 80GB / |

Offline

#6 2012-12-05 05:01:58

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Optical Drives Not Found/Not Working

Dmesg:

dmesg | grep sr0
[    2.521016] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[    2.521184] sr 2:0:0:0: Attached scsi CD-ROM sr0

In /dev:
brw-rw----+  1 root    optical  11,   0  5 dec 03.27 sr0

My udev rule:

# permissions for IDE CD devices
SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", ATTRS{media}=="cdrom*", GROUP="optical"

# permissions for SCSI CD devices
SUBSYSTEMS=="scsi", KERNEL=="s[rg][0-9]*", ATTRS{type}=="5", GROUP="optical

Offline

Board footer

Powered by FluxBB