Cdrom detected like a hard drive

Christian Mueller cmueller at gmx.de
Tue Aug 2 13:12:07 BST 2005


Am Dienstag, 2. August 2005 13:43 schrieb James Richard Tyrer:
> Fab . wrote:
> > Hi,
> > I use KDE 3.4.1 and I wanted to display my CDplayer and CDburner icons on my desktop. 
> > I checked the appropriate boxes in the "Desktop configuration window" but i only got 
> > the icon of the CDburner... So I looked into the media/: folder and found that 
> > my CDplayer is detected like a hard drive (icon and name !!!).   
> > Here are some lines on my config files if you needed it...
> > 
> > /etc/fstab:
> > (...)
> > /dev/cd         /mnt/Lecteur_CD         iso9660         noauto,ro,user  0 0 
> > /dev/cdrw       /mnt/Graveur_CD         iso9660         noauto,ro,user  0 0
> > (...)
> 
> That is odd.  Did you notice that your CDburner is "ro".  Might not have 
> anything to do with this problem.
> 
> The icons are supposedly determined by the device.  I have my CDplayer: 
> "/dev/cdrom" which is a link to the the actual device (/dev/hdc) and it 
> shows up correctly.
> 
> Regarding the CDburner, this is the code:
> 
> 	if ( devNode.find("cdwriter")!=-1 || 	
> 	mountPoint.find("cdwriter")!=-1
> 	  || devNode.find("cdrecorder")!=-1 ||
> 	mountPoint.find("cdrecorder")!=-1
> 	  || devNode.find("cdburner")!=-1 ||
> 	mountPoint.find("cdburner")!=-1
> 	  || devNode.find("cdrw")!=-1 || mountPoint.find("cdrw")!=-1
> 	   )
> 	{
> 		mimeType = "media/cdwriter";
> 		label = i18n("CD Recorder");
> 	}
> 
> It lists "cdrw" so I can't see why it wouldn't work.  But, you might try 
> one of the other ones.


IIUC the icon of the CD writer is displayed alright.  It's the 
CDROM that is not correctly detected.  


JRT: Is there a similar snippet for the CDROM detection?  
That would probably explain it as I don't expect the 
names "cd" (from /dev/cd) or "Lecteur_CD" to show up in that check. 
"cdrom" (from your device /dev/cdrom) probably does, 
that's why it works for you.  


Fab: I'm just guessing, but does changing the line

/dev/cd         /mnt/Lecteur_CD         iso9660         noauto,ro,user  0 0 

to

/dev/cd         /mnt/cdrom         iso9660         noauto,ro,user  0 0 
 
help?  

Before you test, create the new mount point by saying, as root:  
mkdir /mnt/cdrom


Christian. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde/attachments/20050802/ce0e1a67/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list