LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   CD-ROM not detected (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/cd-rom-not-detected-4175691748/)

Cibernauta 03-08-2021 08:46 AM

CD-ROM not detected
 
Hi everyone. I am a relatively new user. I want to find/detect my CD-ROM drive in Linux Debian 10, possibly I need non free firmware to make it work. I get the messages below with few commands that I tired.

Code:

root@debian:~# lsblk -io NAME,TYPE,SIZE,MOUNTPOINT,FSTYPE,MODEL
NAME                  TYPE    SIZE MOUNTPOINT FSTYPE MODEL
sda                  disk  149,1G                  WDC_WD1600BEVS-6
|-sda1                part    487M /boot      ext2 
|-sda2                part      1K                 
`-sda5                part  148,6G            crypto
  `-sda5_crypt        crypt 148,6G            LVM2_m
    |-debian--vg-root lvm  147,6G /          ext4 
    `-debian--vg-swap_1
                      lvm    976M [SWAP]    swap 
root@debian:~# cat /proc/sys/dev/cdrom/info
cat: /proc/sys/dev/cdrom/info: Arquivo ou diretório inexistente
root@debian:~# blkid
/dev/sda1: UUID="d7d03b1b-d63f-482c-9c6b-dd216a104bb2" TYPE="ext2" PARTUUID="a7c8731e-01"
/dev/sda5: UUID="667bf251-d8f0-4390-9c24-030c251209b5" TYPE="crypto_LUKS" PARTUUID="a7c8731e-05"
/dev/mapper/sda5_crypt: UUID="SNOAOV-dpzp-JkKe-sGpi-TBzg-FndR-3kDcP5" TYPE="LVM2_member"
/dev/mapper/debian--vg-root: UUID="94c27b6a-100a-4b11-90aa-35ac7931badb" TYPE="ext4"
/dev/mapper/debian--vg-swap_1: UUID="cd473679-a23a-4754-930b-6a62fb8c9423" TYPE="swap"
root@debian:~# mount /dev/sr0
mount: /media/cdrom0: special device /dev/sr0 does not exist.

I would appreciate some help to solve this.
Thanks in advance.

wpeckham 03-08-2021 09:02 AM

Examine your bootlog (try dmesg) and see if the hardware is detected.
Is it set to recognize it in the BIOS? (on some hardware it can be turned off there.)

Cibernauta 03-08-2021 09:46 AM

As far as I can understand dmesg does not detect it, but it is turned on in the BIOS, BIOS can boot from CD. I installed Debian 10 through a minimum CD net install for 32-bits using an external CD-ROM drive due to the present reason. As long as I remember the drive was then recognized during the install but the firmware was non free, possibly.

michaelk 03-08-2021 09:47 AM

Special firmware should not be required. However, we do not know what type of drive you are trying to use i.e USB, SATA or even IDE.

If it is a regular internal IDE or SATA CDROM drive, as posted make sure it is enabled in the BIOS/UEFI settings.

Cibernauta 03-08-2021 10:37 AM

It is ATAPI/IDE acordingly to BIOS information. It is enabled in BIOS. Not USB. Possibly it is a "Mitsumi" drive.

Emerson 03-08-2021 10:51 AM

Is your hard drive SATA?

Cibernauta 03-08-2021 11:03 AM

I get this. Not sure if it is SATA (or ATA). I own an old laptop (HP Pavilion dv 6500).

Code:

root@debian:~# lshw -class disk
  *-disk                   
      description: ATA Disk
      product: WDC WD1600BEVS-6
      vendor: Western Digital
      physical id: 0.0.0
      bus info: scsi@2:0.0.0
      logical name: /dev/sda
      version: 1G04
      serial: WD-WXCX07368431
      size: 149GiB (160GB)
      capabilities: partitioned partitioned:dos
      configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=a7c8731e


Emerson 03-08-2021 11:15 AM

What HDD controller info you see in 'lspci -k' output, no need to post all of it, just controllers part, like this example output from my computer:
Code:

00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
        Subsystem: Super Micro Computer Inc 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]
        Kernel driver in use: ahci
0b:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
        Subsystem: Super Micro Computer Inc ASM1062 Serial ATA Controller
        Kernel driver in use: ahci


michaelk 03-08-2021 11:19 AM

That is your hard drive which is a SATA.

From the specifications I found on your laptop I would assume your CD drive is also SATA.

Since the output of the lshw does not show the cdrom drive and going by your previous posts that it is enabled it could be just broken.

Cibernauta 03-08-2021 11:49 AM

I see this, I think it is related to the hd.
Code:


00:1f.1 IDE interface: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
        Subsystem: Hewlett-Packard Company Pavilion dv6700
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix, ata_generic
00:1f.2 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 03)


Cibernauta 03-08-2021 11:52 AM

Before I installed Debian the drive was working. As I wrote there was an related occurrence during the install. Thanks for your posts and time.

Emerson 03-08-2021 12:52 PM

One more thing, please run 'lspci -nnk' and get the PCI ID for this IDE controller. In below example [8086:a282] is the PCI ID.
Code:

00:17.0 SATA controller [0106]: Intel Corporation 200 Series PCH SATA controller [AHCI mode] [8086:a282]
And another thing, are there any hd* device nodes in /dev/ ?

jefro 03-08-2021 04:00 PM

Just thoughts.

Laptops have some parts on a daughterboard. Also Knoppix had a boot parameter to get some drives working. So either you need to get daughterboard working or the parameter for unique drive.

Just to check. Can you boot to a bootable cd/dvd?

computersavvy 03-09-2021 05:07 PM

You also should look in /dev and see if there is a /dev/cdrom there; If so then the device is seen and configured. /dev/sr0 is (usually) the physical device, linked to by /dev/cdrom, but if a disk is not in there is no way to mount it. With a disk it should give you a /dev/cdrom0 to mount.

For you as a user, you likely cannot use it unless you are a member of the cdrom group. The command "groups" will tell you which groups your user belongs to.

Also, you mostly cannot do anything with the cdrom unless a disk is in the drive.

Cibernauta 03-09-2021 05:39 PM

I could not solve this problem. As my installation was giving me too many problems and made the computer running slow I tried a lightweight distro (Parrot Linux Home) which is also based in Debian and has some nice programs installed. I have no problems anymore with CD/DVD drive (the same I was using) and the computer runs faster. It was possible to boot from CDs in BIOS, that was not the problem. I imagine it has to do about Debian Policies in terms of non free firmware and software.


All times are GMT -5. The time now is 10:06 PM.