LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Optical drive not working (http://www.linuxquestions.org/questions/slackware-14/optical-drive-not-working-4175493391/)

Bourbon 02-01-2014 04:50 PM

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?

rkfb 02-01-2014 06:04 PM

Quote:

Originally Posted by Bourbon (Post 5109419)
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.

croxen 02-01-2014 06:20 PM

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.

Paulo2 02-01-2014 06:24 PM

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.

rkfb 02-01-2014 06:39 PM

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?

Paulo2 02-01-2014 08:07 PM

Quote:

Originally Posted by rkfb (Post 5109440)
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 :D )

wildwizard 02-01-2014 08:18 PM

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.

Daedra 02-01-2014 09:29 PM

Quote:

Originally Posted by croxen (Post 5109435)
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.

Bourbon 02-02-2014 11:12 AM

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

Bourbon 02-03-2014 01:36 AM

Hi All,

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


All times are GMT -5. The time now is 05:15 AM.