Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I am using Debian 11.5 O.S. My DVD was working fine until last week. Attached is a snapshot of what I was doing to fix the problem. As you have seen in the attached file, sr0 now is invalid blocked device. However, when I reboot the system, I will see the message:"sr0 doesn't exist" again if I try to mount it. Please help.
Thank you very much.
There are always 3 things (minimum) to check when a device seems to fail.
1. Cables, both power and signal, between the mobo and the device. Connections at both ends properly seated, possible damage to the cable and connectors. Loss of power or loss of signal are the most common problems.
2. The device itself. Did something happen to cause failure? do signal lights (if any) work? does the tray open & close? Try the device in a different machine or try a different device in this machine.
3. Connections at the PSU and the MOBO. Did something disable the port on the mobo? maybe in bios?
4. A fourth thing to check, and least intrusive, is to look at the logs and see what they might tell you. dmesg is able to give you info about all devices it configures or fails to configure during boot. Missing a device might show up as total absence or failed config.
Steps outlined above cover most of this, but users should remain aware of potential causes and be able to investigate.
Last edited by computersavvy; 10-07-2022 at 07:10 PM.
While all above if good advice in real life a disappearing device often means a failed device. I would try with some thumbdrive Linux to make sure it is not my installed Linux at fault.
Here's a way to post output without having to take a picture:
Code:
(lsblk -f; ls -l /dev/sr*) | nc termbin.com 9999
Also look into the script command. (Then nc < typescript)
Maybe easier: right clicking on an xterm window usually gives you a copy (the selected=highlighted text) option, so you can paste into your web browser (LQ in code tags PLEASE)
Unplug (power cord and SATA or PATA cable) problematic DVD drive
Check unplugged cables for visual damages
Replug (power cord and SATA or PATA cable) problematic DVD drive
Try again accessing to /dev/sr0: Success = Stop here
Replace SATA or PATA cable with a well-known working cable
Try again accessing to /dev/sr0: Success = Stop here
Try problematic DVD drive in another computer
Try a well-known working DVD drive in this computer
…
If you want more help please give manufacturers and models of problematic DVD drive and mainboard on that it's connected.
Thanks . It works with window O.S. and Debian 11 as well. It just happened recently with Debian (not recognize the DVD or sr0). Attached is a snapshot of Devices Manager of windows O.S.
probably it has a different name now, not sr0. Probably something went wrong during the boot. Probably a kernel driver is missing. It is working on windows, therefore it is not a hardware error. But all the other steps should be checked (log files, dmesg, /dev, lsblk ....).
probably it has a different name now, not sr0. Probably something went wrong during the boot. Probably a kernel driver is missing. It is working on windows, therefore it is not a hardware error. But all the other steps should be checked (log files, dmesg, /dev, lsblk ....).
Thanks for your advices, I have tried to look at .config file, but no luck. Now, I am using the external usb dvd which is very easy to use, almost no setup needed.
Code:
loc@debian:~$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Oct 11 15:10 /dev/cdrom -> sr0
loc@debian:~$
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,820
Rep:
Quote:
Originally Posted by Noone_
Hello,
I am using Debian 11.5 O.S. My DVD was working fine until last week. Attached is a snapshot of what I was doing to fix the problem. As you have seen in the attached file, sr0 now is invalid blocked device. However, when I reboot the system, I will see the message:"sr0 doesn't exist" again if I try to mount it.
Do the system logs indicate that the device was detected during bootstrap? In my boot.msg file, I see:
You will likely see something different, obviously, but if you're not seeing anything "sr"-related the first thing I'd check is cabling (power and data).
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,820
Rep:
Quote:
Originally Posted by !!!
When you added the external USB CD ROM maybe that became sr0, pushing the internal one to sr1
If the external drive works and you can mount the disc, the "mount" command should confirm which "sr" device was mounted. As you note, it might not be what you'd expect when the USB device is present.
Linux device naming can be a little confusing at times. As new drives have been added to my system, my boot device is now /dev/sdp. [scratches head]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.