LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-07-2022, 04:16 PM   #1
Noone_
LQ Newbie
 
Registered: Jul 2020
Location: Sacramento, California
Posts: 10

Rep: Reputation: Disabled
sr0 doesn't exist.


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.

Best regards,
Attached Thumbnails
Click image for larger version

Name:	Screenshot_dev_sr0 .png
Views:	112
Size:	66.4 KB
ID:	39686  
 
Old 10-07-2022, 06:17 PM   #2
Arnulf
Member
 
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 276

Rep: Reputation: 89
Standard procedure:
  1. Unplug (power cord and SATA or PATA cable) problematic DVD drive
  2. Check unplugged cables for visual damages
  3. Replug (power cord and SATA or PATA cable) problematic DVD drive
  4. Try again accessing to /dev/sr0: Success = Stop here
  5. Replace SATA or PATA cable with a well-known working cable
  6. Try again accessing to /dev/sr0: Success = Stop here
  7. Try problematic DVD drive in another computer
  8. 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.
 
Old 10-07-2022, 06:27 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,832

Rep: Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970
In addition just to cover all bases make sure the SATA channel or PATA controller connected to the DVD drive is still enabled in the BIOS/UEFI.

Check the output of the dmesg and look for error messages related to the DVD drive.

dmesg | grep CD-ROM
dmesg | grep sr0
 
Old 10-07-2022, 07:07 PM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
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.
 
Old 10-07-2022, 07:17 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,673

Rep: Reputation: Disabled
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.
 
Old 10-07-2022, 08:45 PM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,916
Blog Entries: 1

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
As a general rule, DVD drives made in recent years are cheap, and thus, unreliable long-term. If you have an old one, treasure it.
 
Old 10-07-2022, 10:08 PM   #7
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
It might end up as sr1 (or more rarely: even something more obscure)
https://www.linuxquestions.org/quest...dvd-0-a-581025


I love lsblk (and inxi lspci dmidecode)
https://www.cyberciti.biz/faq/linux-...lu-ray-device/
https://neverendingsecurity.wordpres...015/03/14/932/


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)

Last edited by !!!; 10-07-2022 at 11:21 PM.
 
Old 10-10-2022, 03:42 AM   #8
Noone_
LQ Newbie
 
Registered: Jul 2020
Location: Sacramento, California
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Arnulf View Post
Standard procedure:
  1. Unplug (power cord and SATA or PATA cable) problematic DVD drive
  2. Check unplugged cables for visual damages
  3. Replug (power cord and SATA or PATA cable) problematic DVD drive
  4. Try again accessing to /dev/sr0: Success = Stop here
  5. Replace SATA or PATA cable with a well-known working cable
  6. Try again accessing to /dev/sr0: Success = Stop here
  7. Try problematic DVD drive in another computer
  8. 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.
Attached Thumbnails
Click image for larger version

Name:	Snapshot1.png
Views:	42
Size:	80.4 KB
ID:	39698  
 
Old 10-10-2022, 03:48 AM   #9
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,129

Rep: Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374Reputation: 7374
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 ....).
 
Old 10-11-2022, 11:02 PM   #10
Noone_
LQ Newbie
 
Registered: Jul 2020
Location: Sacramento, California
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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:~$
 
Old 10-11-2022, 11:18 PM   #11
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
When you added the external USB CD ROM maybe that became sr0, pushing the internal one to sr1

You only like looking at that one symlink, but none of these other commands?
https://www.cyberciti.biz/faq/linux-...lu-ray-device/

You can 'close' this, by marking it as [SOLVED], if you want.

Last edited by !!!; 10-11-2022 at 11:21 PM.
 
Old 10-12-2022, 09:47 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,832

Rep: Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970
Look at the output of the lsmod command to see if sr_mod and sg modules are loading.
 
Old 10-12-2022, 11:04 AM   #13
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,820

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Noone_ View Post
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:
Code:
.
.
.
<5>[    8.736747] sd 7:0:3:0: [sdb] Attached SCSI disk
<5>[    8.767912] sd 7:0:4:0: [sdc] Attached SCSI disk
<6>[    8.803233] sr 0:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
<6>[    8.803235] cdrom: Uniform CD-ROM driver Revision: 3.20
<7>[    8.827037] sr 0:0:0:0: Attached scsi CD-ROM sr0
.
.
.
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).



HTH...
 
Old 10-12-2022, 11:15 AM   #14
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,820

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by !!! View Post
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]
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Libvirt won't let me start snapshot because /dev/sr0 does not exist Altiris Linux - Virtualization and Cloud 3 08-29-2016 04:56 AM
mount command show /dev/sr0 .what sr0 is representing ? gardenair Linux - Newbie 5 03-09-2012 11:27 AM
/dev/sr0 doesn't exist - mounting problems pikus73 Linux - Hardware 3 06-13-2007 01:49 PM
LG cdrw @ sr0 cdrecord looks @ pg0 how to fix? /su Linux - General 2 08-06-2003 03:02 PM
newbie: accessing sr0 as normal user Arcades Slackware 6 07-09-2003 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration