LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-01-2014, 04:50 PM   #1
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Rep: Reputation: Disabled
Optical drive not working


Hi All,

On Slackware 14.0 KDE 32 bit can't use cd or dvd (even the dvd to install Slackware 14.01); the system does not sees the cd/dvd a too (K3b not seeing too), never experienced this problem before on the same machine (it is almost one year old).
Have been trying the following commands:
Code:
root@Slackware:/home/dominum#  dmesg | grep CD-ROM
root@Slackware:/home/dominum# 
root@Slackware:/home/dominum#    lsscsi 
[0:0:0:0]    disk    ATA      Hitachi HDS72101 JP4O  /dev/sda 
root@Slackware:/home/dominum# cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (i686-pc-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
cdrecord: File o directory non esistente. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
root@Slackware:/home/dominum#  cat /etc/fstab
/dev/sda2        swap             swap        defaults         0   0
/dev/sda1        /                ext4        defaults,user_xattr         1   1
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
Please, is possible to understand if the problem comes from hardware or software?
 
Old 02-01-2014, 06:04 PM   #2
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by Bourbon View Post
Hi All,

On Slackware 14.0 KDE 32 bit can't use cd or dvd (even the dvd to install Slackware 14.01); the system does not sees the cd/dvd a too (K3b not seeing too), never experienced this problem before on the same machine (it is almost one year old).
Have been trying the following commands:
[...]
root@Slackware:/home/dominum# cat /etc/fstab
/dev/sda2 swap swap defaults 0 0
/dev/sda1 / ext4 defaults,user_xattr 1 1
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
[/CODE]
Please, is possible to understand if the problem comes from hardware or software?
Your cdrom appears to be commented out in /etc/fstab, remove the # in #/dev/cdrom.

Last edited by rkfb; 02-01-2014 at 06:06 PM. Reason: Expand answer
 
Old 02-01-2014, 06:20 PM   #3
croxen
Member
 
Registered: May 2002
Posts: 100

Rep: Reputation: 42
Desktop internal DVD drives are very cheap --$20-$30 or so; therefore they're made cheaply, and fail a lot more frequently than you'd like. If the machine can't find or mount /dev/sr0 after a reboot, then you've almost certainly got a hardware problem. Now it's possible that one of the two cables to the drive has thermaled a bit loose, and simply needs to be reset, but most likely the drive has failed outright and needs to be replaced. Fortunately a philips screwdriver and about 20 minutes are all that's necessary for replacement.

If, however, this is a laptop, then the drive will be a bit more expensive and the drive replacement can take anywhere from a few seconds to ... an awful lot longer, depending on the laptop make and model.
 
Old 02-01-2014, 06:24 PM   #4
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 935

Rep: Reputation: 527Reputation: 527Reputation: 527Reputation: 527Reputation: 527Reputation: 527
Hi Bourbon , do you have another OS to see if overthere cd/dvd drives are recognized?
Or live cd/dvd with some distro. If you cannot even boot cd or dvd, it seems to be a hardware problem.

You can also open the box to switch or move data and power cables, but you say that
your machine is one year old, so likely you don't have any ide cables. They are the worst.

Here lsscsi shows cd and dvd drives, but cdrecord -scanbus is the same as yours.
Code:
root@paulobash 4.2.45~ # lsscsi
[2:0:0:0]    disk    ATA      ST2000DL003-9VT1 CC32  /dev/sda 
[3:0:0:0]    cd/dvd  HL-DT-ST DVDRAM GH22NS40  NL02  /dev/sr0 
[6:0:0:0]    disk    ATA      Maxtor 6Y080L0   YAR4  /dev/sdb 
[6:0:1:0]    cd/dvd  LG       CD-RW CED-8120B  2.00  /dev/sr1 
root@paulobash 4.2.45~ # cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.01a16 (i686-pc-linux-gnu) Copyright (C) 1995-2013 Joerg Schilling
cdrecord: Arquivo ou diretório não encontrado. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.


@rkfb , this is not default? My fstab has /dev/cdrom commented too but both drives work.
 
Old 02-01-2014, 06:39 PM   #5
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 494

Rep: Reputation: 174Reputation: 174
Quote:
[...]

@rkfb , this is not default? My fstab has /dev/cdrom commented too but both drives work.
You're right, it is, it just looked odd. Why is it like that?
 
Old 02-01-2014, 08:07 PM   #6
Paulo2
Member
 
Registered: Aug 2012
Distribution: Slackware64 15.0 (started with 13.37). Testing -current in a spare partition.
Posts: 935

Rep: Reputation: 527Reputation: 527Reputation: 527Reputation: 527Reputation: 527Reputation: 527
Quote:
Originally Posted by rkfb View Post
You're right, it is, it just looked odd. Why is it like that?
I guess nowadays with all that automatic management, it is not necessary anymore,
when it was mounted at /mnt/cdrom.
Nowadays we have /media, /run, etc... (not /etc )
 
Old 02-01-2014, 08:18 PM   #7
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
To fix your cdrecord errors you need to modprobe sg as the sg driver is used by cdrecord and it doesn't seem to want to auto load that module anymore.

However the OP's post from lsscsi seems to be lacking any sort of optical drive which is pointing to a possible hardware/kernel issue with the port that the optical drive is connected to.

To go further you'll need to look at the output of lspci to see what the kernel thinks you have and the output from the kernel during boot to see if it says anything about the optical drive or sata ports.
 
Old 02-01-2014, 09:29 PM   #8
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,732

Rep: Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396
Quote:
Originally Posted by croxen View Post
Desktop internal DVD drives are very cheap --$20-$30 or so; therefore they're made cheaply, and fail a lot more frequently than you'd like. If the machine can't find or mount /dev/sr0 after a reboot, then you've almost certainly got a hardware problem. Now it's possible that one of the two cables to the drive has thermaled a bit loose, and simply needs to be reset, but most likely the drive has failed outright and needs to be replaced. Fortunately a philips screwdriver and about 20 minutes are all that's necessary for replacement.

If, however, this is a laptop, then the drive will be a bit more expensive and the drive replacement can take anywhere from a few seconds to ... an awful lot longer, depending on the laptop make and model.
I noticed this too. Lately it seems that DVD drives have gotten very cheaply made. My 2007 drive just died and replaced it and the replacement drive weighed about half as much and could tell it was not nearly and durable as the old one was. I compared to some other old ones laying around and you can definitely tell there making these things on the cheap now.
 
Old 02-02-2014, 11:12 AM   #9
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Original Poster
Rep: Reputation: Disabled
Hi All, thank you for your kind concern

Have been trying to remove "#" on fstab /dev/cdrom (was default one, am sure never changed it), still not working.
Also rebooting the machine with live Ubuntu inside, the cd is not seen.
Tomorrow with sunlight I open the case to see if the optical driver is properly connected; have been trying some other commands now, here they are
(the machine is HP desktop):
Code:
lshw (briefing)
 description: Desktop Computer
    product: HP Pro 3300 Series MT (QS391AV)
    vendor: Hewlett-Packard
    serial: SGH148R3S4
    width: 32 bits
    capabilities: smbios-2.6 dmi-2.6 smp-1.4 smp
    configuration: boot=normal chassis=desktop cpus=4 family=103C_53307F G=D sku=QS391AV
Code:
root@Slackware:/home/dominum# lsscsi
[0:0:0:0]    disk    ATA      Hitachi HDS72101 JP4O  /dev/sda 
root@Slackware:/home/dominum# cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (i686-pc-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
cdrecord: File o directory non esistente. Cannot open '/dev/pg*'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
root@Slackware:/home/dominum# cdrecord dev=help
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (i686-pc-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
Supported SCSI transports for this platform:

Transport name:         sg
Transport descr.:       Generic transport independent SCSI
Transp. layer ind.:
Target specifier:       bus,target,lun
Target example:         1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported

Transport name:         pg
Transport descr.:       SCSI transport for ATAPI over Parallel Port
Transp. layer ind.:
Target specifier:       bus,target,lun
Target example:         1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported

Transport name:         ATA
Transport descr.:       ATA Packet specific SCSI transport
Transp. layer ind.:     ATAPI:
Target specifier:       bus,target,lun
Target example:         ATAPI:1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported

Transport name:         ATA
Transport descr.:       ATA Packet specific SCSI transport using sg interface
Transp. layer ind.:     ATA:
Target specifier:       bus,target,lun
Target example:         1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported

Transport name:         RSCSI
Transport descr.:       Remote SCSI
Transp. layer ind.:     REMOTE:
Target specifier:       rscsi@host:bus,target,lun
Target example:         REMOTE:rscsi@host:1,2,0
SCSI Bus scanning:      supported
Open via UNIX device:   not supported
root@Slackware:/home/dominum#  modprobe sg
root@Slackware:/home/dominum# lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
root@Slackware:/home/dominum#
Code:
root@Slackware:/home/dominum# lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation H61 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce 210] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
@ Wildwizard: I apologize but don't know how to work on "modprobe sg"

Best Regards from Africa
 
Old 02-03-2014, 01:36 AM   #10
Bourbon
Member
 
Registered: Dec 2011
Location: Gaborone Botswana
Distribution: Linux-Mint 18.3 amd64 Cinnamon
Posts: 108

Original Poster
Rep: Reputation: Disabled
Hi All,

I have been opening the case this morning and... guess what: the optical driver's wire was not connected to the motherboard
Never thinking something like that, fixed!
 
  


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
view optical media and optical drive information in CLI m4rtin Linux - Server 7 03-03-2016 10:54 AM
I need to mount a floppy drive, optical drive, jumpdrive & burning CD's. talagm SUSE / openSUSE 7 04-23-2009 05:14 AM
Constant hard drive activity when optical drive is in use the trooper Linux - Hardware 5 08-15-2008 06:25 PM
my hard drive or my optical drive is failing fatblueduck Linux - Hardware 7 01-28-2006 08:30 PM
optical drive help lucent Linux - Hardware 2 07-18-2005 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:35 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