How to mount CD/DVD ROM on CentOS / RHEL Linux - LinuxConfig.org

The objective is to mount a CD/DVD block device with ISO 9660 disk image/media.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-mount-cd-dvd-rom-on-centos-rhel-linux

I cant even get passed Step 1.
blkid lists my hard drive, but not my DVD drive.

I get /dev/sda1

But I dont get /dev/sr0

Hi WalterRamjet,

Welcome to our forums.

Does the output of lshw list your DVD drive?

For example, mine is displayed like this:

        *-cdrom
             description: DVD-RAM writer
             product: DVDRAM GUC0N
             vendor: HL-DT-ST
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/cdrw
             logical name: /dev/dvd
             logical name: /dev/dvdrw
             logical name: /dev/sr0
             version: T.02
             capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
             configuration: ansiversion=5 status=nodisc

Hi Sandmann! Thanks for the reply. I’m getting dizzy chasing my tail on this one.
lshw returned a lot of stuff from my computer, but the part you are probably looking for is below. its all very confusing to me and I dont know why its nested under scsi as I dont have that kind of hard drive.
Walt

*-scsi:1
physical id: 2
logical name: scsi1
capabilities: emulated
*-cdrom
description: DVD-RAM writer
product: DVD±RW DS-8A4S
vendor: PLDS
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/sr0
version: JD12
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=ready
*-medium
physical id: 0
logical name: /dev/cdrom

Sandman,
I had posted this problem in more detail on the linux Mint forum, with no response. I am copy/pasting it here, so you have a better understanding of why i bothered to inquire.


I saw an earlier post “DVD not auto mounting”, but thinking my problem is a little different.
I just updated to Linux Mint 19.3 Tricia on my old 3700 vostro laptop. Its about 12 years old, but its got all the normal hardware.

Originally, I wanted to copy a backup snapshot file to my DVD, but ran into problems right away about permissions. One thing led to another and I ended up adding a line in my /etc/fstab file to indicate i’m using a DVD drive and of course, that failed and after hours of searching internet found that it is no longer needed in fstab.

Because I needed elevated permission to copy this snapshot file, I opened nemo from terminal (sudo nemo) and get the red band across the top of nemo indicating I’m at elevated permission. The problem with that is that in this elevated permissions status, my DVD drive no longer shows up. However, if I just click on the nemo icon below the desktop, nemo opens and shows my DVD drive, but I cant do anything because that instance of nemo isn’t elevated. it really got me going in circles.

I installed mint with an iso burned on a DVD, so I know it works, HOWEVER…

why doesn’t blkid show my DVD drive?
does my fstab file need to show I use a DVD?

blkid returns:
/dev/mapper/sda5_crypt: UUID=“GqA5ih-PKk9-fz0o-3UQp-g48U-NvJ3-r56ndp” TYPE=“LVM2_member”
/dev/mapper/mint–vg-root: UUID=“fec5ed92-a711-4ad2-9e90-ea1521ecf8d1” TYPE=“ext4”
/dev/sda1: UUID=“8ae74d6d-1026-4a72-bedc-0178a472b405” TYPE=“ext4” PARTUUID=“412819b6-01”
/dev/sda5: UUID=“8d9fbcca-f682-4f19-bf6b-fb507266e432” TYPE=“crypto_LUKS” PARTUUID=“412819b6-05”
/dev/mapper/mint–vg-swap_1: UUID=“a7c95567-8817-4ab6-b1d0-1db94643d5da” TYPE=“swap”

lshw returns more than I should add to this, but here is the important part:
*-scsi:1
physical id: 2
logical name: scsi1
capabilities: emulated
*-cdrom
description: DVD-RAM writer
product: DVD±RW DS-8A4S
vendor: PLDS
physical id: 0.0.0

bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/sr0
version: JD12
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=ready
*-medium
physical id: 0
logical name: /dev/cdrom

sudo lsblk -a returned the following:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 0 loop
loop1 7:1 0 0 loop
loop2 7:2 0 0 loop
loop3 7:3 0 0 loop
loop4 7:4 0 0 loop
loop5 7:5 0 0 loop
loop6 7:6 0 0 loop
loop7 7:7 0 0 loop
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 731M 0 part /boot
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 465G 0 part
└─sda5_crypt 253:0 0 465G 0 crypt
├─mint–vg-root 253:1 0 464.1G 0 lvm /
└─mint–vg-swap_1 253:2 0 976M 0 lvm [SWAP]
sr0 11:0 1 0 rom

and…
sudo dmesg | egrep -i --color ‘cdrom|dvd|cd/rw|writer’ returned the following:

[ 3.113439] ata2.00: ATAPI: PLDS DVD+/-RW DS-8A4S, JD12, max UDMA/100
[ 3.118431] scsi 1:0:0:0: CD-ROM PLDS DVD±RW DS-8A4S JD12 PQ: 0 ANSI: 5
[ 3.147919] sr 1:0:0:0: [sr0] scsi3-mmc drive: 62x/62x writer dvd-ram cd/rw xa/form2 cdda pop-up
[ 3.147922] cdrom: Uniform CD-ROM driver Revision: 3.20


as of 2/4/2020 (today) my problem is mostly solved. I say “mostly” because I dont fully understand why, but opening nemo from the command prompt in terminal, I used super user (sudo su) and I was able to copy my snapshot (backup) folder to my DVD.

Thanks,
walt

Hi Walt,

What happens when you insert some data CD/DVD disk and do the following as a root user:

# mkdir /media/iso
# mount /dev/cdrom /media/iso/
# ls /media/iso/

Can you please also paste here the output of the above mount command? Please note it is also worth to try different CD/DVD disks.

lubos

Hi Lubos. I tried that just now and this is what was returned.
command:
sudo mount /dev/cdrom /media/iso/
response:
mount: /media/iso: no medium found on /dev/sr0.

then i put a blank DVD in the reader and ran the command, again:
sudo mount /dev/cdrom /media/iso/
different response:
mount: /media/iso: can’t read superblock on /dev/sr0.

sudo mount /dev/cdrom /media/iso/
response:
mount: /media/iso: no medium found on /dev/sr0.

If you did not have any medium inserted into your CD/DVD drive then this is to be expected. Try insert some DVD with data for example burned ISO image etc. and try again.

sudo mount /dev/cdrom /media/iso/
different response:
mount: /media/iso: can’t read superblock on /dev/sr0.

All good here. The DVD is blank so no iso9660 file-system exists hence the DVD’s file-system cannot be mounted.

I guess the main point here is that your system recognises your DVD drive and you can manipulate with it via /dev/cdrom alias.

Thank you, Lubos. That really cleared things up for me.
I put in my bootable gparted disk and this time, got a different message:

mount: /media/iso: WARNING: device write-protected, mounted read-only.

so, it works fine. The only problem was that until now, I didn’t understand what was going on.

Thanks!

Walt

No worries. Glad to help. Let us know if you need more help.