LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   CDROM seems to be there but also seems not to be mounted. (https://www.linuxquestions.org/questions/suse-opensuse-60/cdrom-seems-to-be-there-but-also-seems-not-to-be-mounted-4175598627/)

Crb999 01-31-2017 07:00 AM

CDROM seems to be there but also seems not to be mounted.
 
Hi,

I'm running Suse LEAP 42.2 on a Dell Optiplex with 8Gb RAM

CDROM seems to be physically recognised but I can't mount it!

Code:

cat /proc/sys/dev/cdrom/info
CD-ROM information, Id: cdrom.c 3.20 2003/12/17

drive name:            sr0
drive speed:            125
drive # of slots:      1
Can close tray:        1
Can open tray:          1
Can lock tray:          1
Can change speed:      1
Can select disk:        0
Can read multisession:  1
Can read MCN:          1
Reports media changed:  1
Can play audio:        1
Can write CD-R:        1
Can write CD-RW:        1
Can read DVD:          1
Can write DVD-R:        1
Can write DVD-RAM:      1
Can read MRW:          0
Can write MRW:          0
Can write RAM:          1

but

Code:

sudo mount -t iso9660 /dev/sr0 /media/cdrom
crb999's password:
mount: no medium found on /dev/sr0

Here is part of the output from hwinfo:

Code:

sudo hwinfo --short
 disk:
  /dev/sda            ST31000520AS
partition:
  /dev/sda1            Partition
  /dev/sda2            Partition
  /dev/sda3            Partition
cdrom:
  /dev/sr0            PLDS DVD+-RW DH-16AAS

Code:

lsscsi
[0:0:0:0]    disk    ATA      ST31000520AS    CC38  /dev/sda
[1:0:0:0]    cd/dvd  PLDS    DVD+-RW DH-16AAS JD12  /dev/sr0

my /etc/fstab

Code:

cat /etc/fstab
UUID=0b96379d-a68b-460b-8ef2-393cfba700a3 swap swap defaults 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 / btrfs defaults 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /boot/grub2/i386-pc btrfs subvol=@/boot/grub2/i386-pc 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /boot/grub2/x86_64-efi btrfs subvol=@/boot/grub2/x86_64-efi 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /opt btrfs subvol=@/opt 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /srv btrfs subvol=@/srv 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /tmp btrfs subvol=@/tmp 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /usr/local btrfs subvol=@/usr/local 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/crash btrfs subvol=@/var/crash 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/lib/libvirt/images btrfs subvol=@/var/lib/libvirt/images 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/lib/mailman btrfs subvol=@/var/lib/mailman 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/lib/mariadb btrfs subvol=@/var/lib/mariadb 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/lib/mysql btrfs subvol=@/var/lib/mysql 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/lib/named btrfs subvol=@/var/lib/named 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/lib/pgsql btrfs subvol=@/var/lib/pgsql 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/log btrfs subvol=@/var/log 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/opt btrfs subvol=@/var/opt 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/spool btrfs subvol=@/var/spool 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/tmp btrfs subvol=@/var/tmp 0 0
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /.snapshots btrfs subvol=@/.snapshots 0 0
UUID=75e11fcd-338d-4773-98ba-5e78c9970cb9 /home xfs defaults 1 2
UUID=5a5efa05-1712-40c3-a4e7-10b553ed5404 /var/lib/machines btrfs subvol=@/var/lib/machines 0 0

the eject command or

Code:

eject /dev/sr0
doesn't work either!

I'm sure I'm missing something obvious!

Any guidance appreciated.

pan64 01-31-2017 07:25 AM

did it work before? or did it work with another os? (you may try a live cd too)

Crb999 01-31-2017 07:33 AM

Hi Pan64, No it has never worked.

If I stick a music cd in then a KDE program 'K3b' tries to play it but it is intermittent and unacceptable.

However, I want to write CDs and DVDs but when I load a blank disk, the program just reports that there isn't a disk there and the mount command gives me

Code:

mount: no medium found on /dev/sr0

pan64 01-31-2017 07:40 AM

I still would try another os. Also you can check /var/log, probably you can find something related. From my side it looks like it is damaged or was improperly put into the box.

petelq 01-31-2017 09:55 AM

K3b does not play music cds. It will try to rip audio from it and it will write files or audio to a cd.
I don't know about other os's but opensuse can't mount or write to a blank cd directly. You need a program to do it. You do it in a terminal or you can use k3b. If you insert a blank cd you should get a prompt to write to it using K3b.
You can use k3b (or others, you already mentioned k3b) to write files (inc mp3) or to create an audio cd. Once a cd has files on it it will be mountable.

petelq 01-31-2017 11:48 AM

Quote:

Originally Posted by petelq (Post 5662870)
.
You can use k3b (or others, you already mentioned k3b) to write files (inc mp3) or to create an audio cd. Once a cd has files on it it will be mountable.

Once a cd is mountable as explained, it will be read-only or you can copy files from it.

Crb999 01-31-2017 04:00 PM

Thanks people, useful stuff there. I've learnt more about k3b too.

Pan64 this is not on a dual boot! It is a dedicated Linux box.

I started by trying to write some mp4s to a blank DVD but so many things went wrong it was confusing.

I'll have another go tomorrow.

pan64 02-01-2017 12:39 AM

you can boot a live cd any time (if you wish).
Did you try a data CD (which was working in another device)? Did you try a real audio CD already?

ember1205 02-01-2017 06:40 AM

I suggest putting in a KNOWN GOOD data disc and attempting the mount operation again. Also, are you "root" when you are executing the mount command?

Check /dev for other devices that may have been autocreated and linked to it like cdrom, cdrw, dvdrw, etc. If you find any, try those.

petelq 02-01-2017 07:10 AM

Quote:

Originally Posted by ember1205 (Post 5663325)
I suggest putting in a KNOWN GOOD data disc and attempting the mount operation again. Also, are you "root" when you are executing the mount command?

Check /dev for other devices that may have been autocreated and linked to it like cdrom, cdrw, dvdrw, etc. If you find any, try those.

Op was trying to mount a blank cd to write to it. And you can see from his 1st post that he was root.

ember1205 02-01-2017 07:26 AM

Quote:

Originally Posted by petelq (Post 5663337)
Op was trying to mount a blank cd to write to it. And you can see from his 1st post that he was root.

Then why was he issuing the commands via sudo?

Crb999 02-01-2017 08:34 AM

I have put a good audio CD in the drive. It's Eric Clapton so it is good from more than one direction!

In a terminal window I executed 'kscd' which opened a CD player on the gui, but it didn't play anything although when I selected 'Play' it looked like it would but came up with the message @Unknown Artist Unknown Album'.

I opened VLC and it reported

Code:

Playback failure:
DVDRead could not open the disc "/dev/sr0".
Your input can't be opened:
VLC is unable to open the MRL 'dvd:///dev/sr0'. Check the log for details.

With VLC, I approached another way and it reported:

Code:

VLC is unable to open the MRL 'cdda:///dev/sr0'. Check the log for details.
Now, finding the log is a problem in itself, in fact I've been unable to.

I'm going to try to get a different CD player!

petelq 02-01-2017 01:08 PM

Quote:

Originally Posted by Crb999 (Post 5663386)
I have put a good audio CD in the drive. It's Eric Clapton so it is good from more than one direction!

In a terminal window I executed 'kscd' which opened a CD player on the gui, but it didn't play anything although when I selected 'Play' it looked like it would but came up with the message @Unknown Artist Unknown Album'.

I opened VLC and it reported

Code:

Playback failure:
DVDRead could not open the disc "/dev/sr0".
Your input can't be opened:
VLC is unable to open the MRL 'dvd:///dev/sr0'. Check the log for details.

With VLC, I approached another way and it reported:

Code:

VLC is unable to open the MRL 'cdda:///dev/sr0'. Check the log for details.
Now, finding the log is a problem in itself, in fact I've been unable to.

I'm going to try to get a different CD player!

Put your audio cd in again and see if K3B will rip it. At least the system seems to see your player now but can't read your cd/dvd.

petelq 02-01-2017 01:11 PM

Quote:

Originally Posted by ember1205 (Post 5663351)
Then why was he issuing the commands via sudo?

OK. I concede that sudo is not exactly root but sudo will mount a disk if the disk is mountable.

Crb999 02-01-2017 03:34 PM

k3b reports

"No optical drive found. K3b did not find any optical device in your system."


All times are GMT -5. The time now is 01:22 PM.