openSUSE Multimedia Optical Devices /dev/dvd & /dev/cdrom Configuration
Well, I have come to a new understanding of optical drive naming and just what openSUSE seems to be doing for us automatically each time we boot up SuSE. There is a file that registers each cdrom or dvd drive that is connected to our computers. It provides symbolic device links for each optical drive and places them in the /dev folder. As I talk about optical drive names, I will add the folder name /dev/ in front of the name, but this is assumed in the configuration text file and not shown.
And the name and the location of this optical drive configuration text file is:
Now my main openSUSE computer has but one optical drive (the hardware name for it is /dev/sr0) and so here is a look at my 70-persistent-cd.rules optical configuration text file.
First off, the 70-persistent-cd.rules optical drive configuration text file only lists the ending device names like cdrom?, cdrw?, dvd? or dvdrw?. No /dev/ is in front of the name. That is because symbolic device links are being created in the /dev folder and so the name /dev/ is assumed in all cases to be in front of the device names. Also, another thing that may become obvious here is there are no entries that specifies the default /dev/dvd or /dev/cdrom names, the two names that seem to show up all over Linux for optical drives. The answer is simple, there is no automatic method that can assign these names that makes sense since only one optical drive can use the /dev/dvd or /dev/cdrom device names, though these two names could point to two different optical drives.
In my case, the answer is simple, just add the /dev/dvd and /dev/cdrom names for my single optical drive. Thus here is a copy of my modified 70-persistent-cd.rules text file. I just copied the last line twice and changed dvdrw1 to cdrom first and in the other line to dvd.
What this text file is doing is providing symbolic device links for your optical drives in your /dev folder pointing to your real hardware. Further, you could create a symbolic link in /dev manually if you wanted to and knew how to do it that pointed /dev/cdrom & /dev/dvd to your correct optical drives, but why bother if this file will do it for you automatically? If you should replace an optical drive, the old and new entries will be present and I determined that you can delete the old entry if you wish. When a drive is replaced you will need to edit this file again to add the /dev/dvd & /dev/cdrom to point to your new optical drive. If you have more than one optical drive, there will be one entry set of five lines per optical drive made automatically for you. Make your entry for /dev/cdrom and/or /dev/dvd under the existing lines for the selected optical drive and you can only have one /dev/cdrom entry and one /dev/dvd entry in this entire file. Only ONE /dev/dvd entry per file and only ONE /dev/cdrom per file. Got it?
To edit this file you need root privilege. To use kwrite to do the editing use the following command:
kdesu kwrite /etc/udev/rules.d/70-persistent-cd.rules
After making any changes to the 70-persistent-cd.rules text file you must reboot your computer to see how it works. You should think about this file as creating Alias names for your optical drives. Your hardware name may be /dev/sr0, but now in my case /dev/cdrom, /dev/dvd, /dev/cdrom1, /dev/cdrw1, /dev/dvd1, /dev/dvdrw1 all point to the same hardware drive /dev/sr0 through the use of the70-persistent-cd.rules optical drive configuration text file. To get a real list of the hardware names for all drives installed in your system, open up a terminal session and enter the command "df -T", without the quotes.
Please let me know if you have any questions about using this procedure to add /dev/dvd and /dev/cdrom to your configuration file. Programs that look for these will now work properly. Also, now you know that you could modify your device entries to use the automatically added drives like /dev/dvd1 or /dev/cdrom1 if you wanted to. Knowing how the 70-persistent-cd.rules optical drive configuration text file works will make you a smarter openSUSE Linux user.
Thanks - editing 70-persistent-cd.rules fixed my issue too.
My situation was a bit different because I hadn't installed a new optical drive. My PC has a couple of hard disks hard disks however and I had swapped the straps around while removing one of the HDDs to make sure I couldn't accidentally overwrite anything while installing a new version of openSUSE on the other HDD, thus swapping master/slave.
So I think I landed up with two entries in the /etc/udev/rules.d/70-persistent-cd.rules for the same optical drive, but the correct entry was not the one that my apps were looking for.
My 70-persistent-cd.rules file was as follows:
So I changed the cdrom, cdrw and dvd entries to be scsi-1:0:1:0, rebooted and now it all works fine :D.
I guess I could now get rid of the cdrom1, cdrw1 and dvd1 entries, but for the time-being, 'if it ain't broke don't fix it'.
FYI I posted my original query, giving the symptoms, on the openSUSE forums here: http://bit.ly/bAwwEP
|All times are GMT -5. The time now is 09:13 PM.|