LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2013, 05:26 PM   #1
greyskier
LQ Newbie
 
Registered: Nov 2013
Location: Vancouver, B.C.
Posts: 13

Rep: Reputation: Disabled
CDROM not being recognized correctly


Not sure which forum to use so I'm posting here. I wanted an LTS distribution so chose MINT 13 Mate. Didn't have a DVD drive in my Dell C600 laptop so I borrowed one from a friend. After getting everything up and running and configured the way I want I put my CD-ROM drive back into the laptop. Mint recognizes that the drive is there as the file manager sees it but will not talk to it. I accidently booted with an audio cd in the drive and then the file manager saw the contents and I could play the music. Ejecting killed all further response.
After hours of reading I found the command 'dbus-monitor --system'
With the DVD drive installed when I insert an audio cd I get the following output when the drive spins up
signal sender=:1.26 -> dest=(null destination) serial=26 path=/org/freedesktop/UDisks/devices/sr0; interface=org.freedesktop.UDisks.Device; member=Changed
signal sender=:1.26 -> dest=(null destination) serial=27 path=/org/freedesktop/UDisks; interface=org.freedesktop.UDisks; member=DeviceChanged
object path "/org/freedesktop/UDisks/devices/sr0"
With the CD-ROM drive installed the drive begins its initial spinup but there are no messages on dbus and the drive spins down.
In /etc/udev/rules.d I see a file 70-persistent-cd.rules which contains information specific to my CD-ROM drive but I see no mention of a file anywhere for the DVD so how does the DVD work and the CD-ROM not work???
What do I need to do to get Mint to talk to my CD-ROM?
 
Old 11-09-2013, 10:26 AM   #2
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Scientific Linux
Posts: 107

Rep: Reputation: Disabled
The Dell C600 is a rather old machine (I had one before 2008), with a dysfunctional ACPI, so you should make sure the computer is using APM for power management. I remember also having issues with the touchpad unless using icewm as window manager. As this is an old machine, the CD-ROM drive may be defective (is it the one that you can extract from the computer to replace it with an extra battery ?), and you may need to replace it.

To check that your CDROM drive is detected by the linux kernel, you should open a terminal and type
Quote:
dmesg |less
.
If your CDROM drive is detected by the kernel, there will be some lines of the form (for an IDE interface):
Quote:
hdc: [Brand name], ATAPI CD/DVD-ROM drive
hdc: UDMA mode selected
hdc: ATAPI DVD-ROM DVD-R/RAM CD-R/RW
Maybe you will see some sd[a-d] instead of hdc if your CD-ROM is on a SATA interface. If you don't see anything,
make sure that the CDROM drive is properly inserted and that its contacts are clean. If you see something,
you should check that the symbolic links /dev/cdrom or /dev/dvd point to that device file (/dev/hdc or /dev/sd?).
If not, you will need to change them as root (or using sudo).

Once this is done, you could try to insert some Linux installation CD (or any other software) in the CD-ROM
drive, and type as root:
Quote:
mount -t iso9660 /dev/cdrom /mnt
Normally, you should be able to list the content of the disk by typing ls /mnt. If you see some error messages
instead please report them.
 
Old 11-09-2013, 11:03 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
You may be lacking the iso9660 filesystem modules. I did a make localmodconfig custom kernel on my system, and basically every file system that wasn't currently in use at that time got removed from my kernels config. Just something to be weary about.

Simple answer, reboot. And see if the state of the drive changes. More complex options of course with using the eject command instead of the drives external button or paperclip trick. And if the system was mounted and didn't umount, ways to force these out of the way so you can reclaim that ability. The autofs / auto mounting that is done by many desktop options these days, I find more annoying than convenient.

Optical drives don't seem to age well. The laser gets dirty, more so with smokers or pets. And other quirks. So it could be that you've done everything right, and the device has actually failed.
 
Old 11-09-2013, 10:25 PM   #4
greyskier
LQ Newbie
 
Registered: Nov 2013
Location: Vancouver, B.C.
Posts: 13

Original Poster
Rep: Reputation: Disabled
Unfortunately there is nothing wrong with the CD-ROM drive. That would have been easy and not required a week of futile reading. As I stated the drive works if system booted with and audio CD in the drive. The file manager seesit and the music player will play it but software ejecting it kills any further awareness of what is in the drive. The CD-ROM drive will boot a live-CD and if I put the Windows hard drive back into the machine it functions perfectly.
dmesg produced the following
[ 1.060949] ata2.00: ATAPI: TEAC CD-ROM CD-224E, 3.7C, max UDMA/33
[ 1.228650] ata1.00: ATA-5: IC25N040ATCS04-0, CA4OA71A, max UDMA/100
[ 1.228663] ata1.00: 78140160 sectors, multi 8: LBA
[ 1.233459] ACPI: Battery Slot [BAT0] (battery present)
[ 1.244957] ata2.00: configured for UDMA/33
[ 1.253422] ata1.00: configured for UDMA/33
[ 1.323733] isapnp: No Plug & Play device found
[ 1.324294] scsi 0:0:0:0: Direct-Access ATA IC25N040ATCS04-0 CA4O PQ: 0 ANSI: 5
[ 1.324855] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1.325392] sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)
[ 1.325542] sd 0:0:0:0: [sda] Write Protect is off
[ 1.325551] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1.325616] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.326099] scsi 1:0:0:0: CD-ROM TEAC CD-224E 3.7C PQ: 0 ANSI: 5
[ 1.329929] sr0: scsi3-mmc drive: 24x/24x cd/rw xa/form2 cdda tray
[ 1.329943] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 1.330383] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 1.330785] sr 1:0:0:0: Attached scsi generic sg1 type 5
[ 1.597782] sda: sda1 sda2 < sda5 > sda3
[ 1.599102] sd 0:0:0:0: [sda] Attached SCSI disk

along with a ton of other information including a bunch of mentions of ACPI.
/dev/cdrom also exists as a link to sr0
 
Old 11-10-2013, 01:44 AM   #5
greyskier
LQ Newbie
 
Registered: Nov 2013
Location: Vancouver, B.C.
Posts: 13

Original Poster
Rep: Reputation: Disabled
Some interesting behaviour here. When I use the mount command
with an audio cd in the drive this is what I get.

jwt@Lotus4 ~ $ sudo mount -t iso9660 /dev/cdrom /mnt
[sudo] password for jwt:
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

jwt@Lotus4 ~ $ sudo mount -t iso9660 /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: /dev/sr0 already mounted or /mnt busy
jwt@Lotus4 ~ $ umount /dev/cdrom
umount: /dev/sr0 is not mounted (according to mtab)
jwt@Lotus4 ~ $

/mnt is an empty folder and here is the contents of mtab
at time of 'already mounted or /mnt busy'

/dev/sda3 / ext4 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev devtmpfs rw,mode=0755 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=0755 0 0
none /run/lock tmpfs rw,noexec,nosuid,nodev,size=5242880 0 0
none /run/shm tmpfs rw,nosuid,nodev 0 0
/dev/sda1 /home ext4 rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/jwt/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=jwt 0 0

The first attempt to mount produced nothing but the message.
Subsequent attempts to mount cause an 'audio cd' icon to
appear on the desktop and the "what application to use"
window to open and the cd can then be ejected with the software button
as the drawer is locked or the music player can be launched and will play.
Reinserting the cd doesn't do anything until another mount command is issued.
Shutting down the system and rebooting does not necessarily clear the already
mounted message from coming up the next time a mount command is issued.
Ejecting the audio cd and putting in a Mint 12 live-cd and mounting it will
cause it to appear in the file manager and the file structure can be seen.
Unmounting it and ejecting it remove it from the file manager and it will not
reappear until mounted via terminal. Simply unmounting it leaves it visible
in the file manager as a named disc.
Despite numerous shutdowns I don't seem to be able to get back to the initial
mount error again as it always says 'already mounted' although I have no idea
yet where that information is stored if that is what this message actually means.

With the DVD drive installed when I issue the command 'dbus-monitor --system' and insert an audio cd I get the following output when the drive spins up
signal sender=:1.26 -> dest=(null destination) serial=26 path=/org/freedesktop/UDisks/devices/sr0; interface=org.freedesktop.UDisks.Device; member=Changed
signal sender=:1.26 -> dest=(null destination) serial=27 path=/org/freedesktop/UDisks; interface=org.freedesktop.UDisks; member=DeviceChanged
object path "/org/freedesktop/UDisks/devices/sr0"
With the CD-ROM drive installed the drive begins its initial spinup but there are no messages on dbus.
Not sure what is meant by "path=/org/freedesktop/UDisks/devices/sr0" as I can not see a /org directory on my machine.

Am I wrong is assuming that at the data/control bus level the interrupt generated by the CD-ROM drive to say "hey, look at me, my status has changed, a cd has been inserted" would be the treated in more or less the same way under Linux Mint as under Windows XP? A different way of dealing with the interrupt would be the only way I can see the CD-ROM drive being at fault here as it works under Windows.

Last edited by greyskier; 11-10-2013 at 11:24 AM.
 
Old 11-11-2013, 12:21 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Audio CDs are not technically the iso9660 filesystem. There used to be a filesystem that you could mount them as, but I doubt it still functions with enhanced CDs and protect mode drives. You can still play it, or should if it's not the drive.

$ mplayer cdda://

Or use cddb:// if you want the online disc lookup details about the disc.
 
Old 11-11-2013, 06:33 PM   #7
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
Hi

when you insert an audio cd.....it may be normal to have no response

Depending on your distro, you may get a popup box asking you what to do eg play it, view contents etc
---this has nothing to do with udev rules but your file manager settings

eg in pcmanfm, go to edit -> preferences -> volume management and select "show available options when removeable media inserted"

also you can auto mount data cds/dvd in your file manager settings----depending on your file manager

I don't use Mint, but if you can't see how to do it Nautilus or whatever Mint uses pcmanfm is a smaller file manager you could try out?
 
Old 11-11-2013, 06:48 PM   #8
aus9
LQ Guru
 
Registered: Oct 2003
Posts: 5,124

Rep: Reputation: Disabled
and I will make this a separate post as it may be beyond your comfort zone...sorry if that sounds rude

http://ignorantguru.github.io/spacef...vices-kernpoll

your distro may not detect things and this link explains it and how to check

In other words, if you follow my first post, and your file manager has set for popup box and you get NO popup box,
its likely this post applies

good luck
 
Old 11-14-2013, 08:43 PM   #9
greyskier
LQ Newbie
 
Registered: Nov 2013
Location: Vancouver, B.C.
Posts: 13

Original Poster
Rep: Reputation: Disabled
[Solved] CDROM not being recognized correctly

Thanks for the help everyone. It turns out to have been a hardware issue as hard as I find that to believe. I finally had a chance to go back to my friends house and try another CD-ROM drive just to see if it made a difference and it works perfectly. Why Windows will work with my original drive and Linux Mint 13 won't baffles me. You can boot an iso image from it and load a Linux operating system and if you 'poke' it from the console it will read an audio CD but on its own it will not recognize that you have loaded a CD. My friends CD-ROM drive which he gave me as it was a spare is a different manufacturer but has the same DELL part# on the case so should be compatible. Your guess is as good as mine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SuSE 8.2 -CDWriter in K3b Not correctly recognized!!!-Not working!!! chilibowl Linux - Software 1 11-12-2010 05:19 PM
qmail Aliases not correctly recognized??? Zingaro2002 Linux - Networking 4 11-26-2009 04:41 AM
> Hard disk not recognized correctly, Using PCLinuxOS and ReiserFS frazelle09 Linux - Hardware 2 11-30-2007 10:31 PM
How do I know that my DVB-T card is correctly recognized? Jykke Linux - Hardware 0 01-02-2006 01:05 PM
CDROM/DVD-ROM mounting correctly ProtoformX Slackware 2 09-16-2005 02:03 PM


All times are GMT -5. The time now is 12:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration