LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2017, 02:33 PM   #1
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 11 "Bullseye", Arch
Posts: 123

Rep: Reputation: 15
No /dev/sr0 in stretch upgrade from jessie


There is no /dev/sr0 in my stretch upgrade from jessie, so I can't use cdroms. Trying to load module sr_mod, I reach the following dead end:

Code:
    ~$ sudo modprobe 4.9.0-3-686-pae/kernel/drivers/scsi/sr_mod.ko
    modprobe: FATAL: Module 4.9.0-3-686-pae/kernel/drivers/scsi/sr_mod.ko not found in directory /lib/modules/4.9.0-3-686-pae
Code:
    $ sudo ls -l /lib/modules/kernel/drivers/scsi/sr_mod.ko
    ls: cannot access '/lib/modules/kernel/drivers/scsi/sr_mod.ko': No such file or directory
Yet the following shows that sr_mod.ko is there:

Code:
    name@debian:/lib/modules/4.9.0-3-686-pae/kernel/drivers/scsi$ ll sr_mod.ko
    -rw-r--r-- 1 root root 25148 Aug  6 00:24 sr_mod.ko
Also:

Code:
    ~$ sudo modinfo sr_mod
    filename:       /lib/modules/4.9.0-3-686-pae/kernel/drivers/scsi/sr_mod.ko
    license:        GPL
    alias:          scsi:t-0x04*
    alias:          scsi:t-0x05*
    alias:          block-major-11-*
    license:        GPL
    description:    SCSI cdrom (sr) driver
    depends:        scsi_mod,cdrom
    intree:         Y
    vermagic:       4.9.0-3-686-pae SMP mod_unload modversions 686
    parm:           xa_test:int
Would appreciate help.

hilltownboy
 
Old 11-19-2017, 03:06 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
so the problem is you cannot access your cd/dvd player?
have you tried to autodetect with e.g. vlc? maybe the path has changed?
 
Old 11-19-2017, 03:13 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Anything enumerated by the following?
Code:
lsscsi
Code:
lsblk
Code:
ls -l /dev/dvd
 
Old 11-20-2017, 02:20 PM   #4
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 11 "Bullseye", Arch
Posts: 123

Original Poster
Rep: Reputation: 15
ondoho, yes, the problem is I can't access the cdrom. There is no /dev/sr0. However I just accessed a cd using Arch linux and an external USB cd drive. The Arch does not have a /dev/sr0 either, so some other driver must be in play.
I don't know what is meant by "autodetect with e. g. vlc".

ferrari: nothing enumerated except hard disk partitions by lsblk
 
Old 11-20-2017, 02:31 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
ferrari: nothing enumerated except hard disk partitions by lsblk
Then I suggest the hardware concerned is dead (or not connected perhaps).
 
Old 11-20-2017, 02:34 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
For reference, I get
Code:
~> lsscsi
[0:0:0:0]    disk    ATA      HARDDISK    1.0   /dev/sda 
[2:0:0:0]    cd/dvd  VBOX     CD-ROM           1.0   /dev/sr0 
~> lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0 14.7G  0 disk 
├─sda1   8:1    0    2G  0 part [SWAP]
└─sda2   8:2    0 12.7G  0 part /
sr0     11:0    1 1024M  0 rom
~> ls -l /dev/dvd
lrwxrwxrwx 1 root root 3 Nov 18 12:56 /dev/dvd -> sr0
 
Old 11-21-2017, 01:03 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by hilltownboy View Post
I don't know what is meant by "autodetect with e. g. vlc".
vlc is a versatile gui media player.
it is capable of detecting & playing optical disks.
 
Old 11-21-2017, 01:18 AM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Try booting with a disk in the drive and see if sr0 or dvd shows up in dev.
 
Old 11-21-2017, 01:54 AM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,805
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
This was a new Stretch AMD64 installation in June 2016:
Code:
# cat /etc/debian_version
9.2
# lsscsi
[4:0:0:0]    disk    ATA      HITACHI HDS72505 AB0A  /dev/sda 
[6:0:0:0]    cd/dvd  TSSTcorp CDDVDW SH-224DB  SB01  /dev/sr0 
# lsblk | grep rom
sr0      11:0    1  1024M  0 rom  
# ls -l /dev/dvd
lrwxrwxrwx 1 root root 3 Nov 21 01:37 /dev/dvd -> sr0
# lsmod | grep sr
sr_mod                 24576  0
cdrom                  61440  1 sr_mod
scsi_mod              225280  4 sd_mod,libata,sr_mod,sg
I get essentially the same results on a 32 bit Stretch that is an upgrade from a Jessie originally installed April 2015.
 
Old 11-21-2017, 06:55 PM   #10
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 11 "Bullseye", Arch
Posts: 123

Original Poster
Rep: Reputation: 15
lsscsi was not installed. I installed it and it showed only one line:
Code:
[2:0:0:0]    disk    ATA      Hitachi HTS54161 C7BP  /dev/sda
 
Old 11-21-2017, 07:08 PM   #11
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,805
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Any chance your DVD drive is on a PATA bus instead of SATA, and needs its jumper matched to the cable type connected to it (cable select vs. master or slave)?
 
Old 11-22-2017, 08:41 AM   #12
hilltownboy
Member
 
Registered: Jan 2008
Location: Ashfield, MA
Distribution: Debian 11 "Bullseye", Arch
Posts: 123

Original Poster
Rep: Reputation: 15
Things work mechanically because I just booted gparted on a CD-R and transferred a screenshot to my home directory. For this I had to set my ancient BIOS to boot from CD first.
I cannot mount CDs. There is no /dev/sr0. Isn't /dev/sr0 needed to mount CDs? Or is something different under systemd?
 
Old 11-22-2017, 12:07 PM   #13
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,800

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Going back to your first post, run the modprobe command like this
Code:
sudo modprobe sr_mod
then check
Code:
lsmod|grep sr
Code:
ls -l /dev/sr*
 
Old 11-22-2017, 01:26 PM   #14
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,805
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by hilltownboy View Post
Things work mechanically because I just booted gparted on a CD-R....
Not all kernels behave the same when a PATA jumper is incorrectly set. Maybe 3.16 or whatever kernel that GParted media uses is more forgiving than 4.9.
 
Old 11-22-2017, 11:34 PM   #15
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
See #8
 
  


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
[SOLVED] Mouse won't work in top bar or at login screen on w510 after debian jessie to stretch upgrade. gimili Linux - Software 11 08-02-2017 10:04 AM
LXer: How to upgrade Debian 8 Jessie to Debian 9 Stretch LXer Syndicated Linux News 0 06-16-2017 02:11 AM
mount command show /dev/sr0 .what sr0 is representing ? gardenair Linux - Newbie 5 03-09-2012 11:27 AM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
/dev/cdrom links to /dev/sg0 instead of /dev/sr0 -why? Yalla-One Slackware 3 10-01-2006 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 AM.

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