Solved Playing CDs And DVDs On FreeBSD 10

I've had partial success tonight.

I've been able to play DVDs using both Mplayer and VLC. I haven't tried doing so with Xine and I'm not sure I'm going to try. The thing that I missed was that I hadn't set the device permission to allow me to play them in my account. I changed:

/etc/devfs.conf

to allow me to have access to the CD-ROM drive.

I still can't mount audio CDs, though. I'll have to do some more tinkering to see if I can do it.
 
I've had partial success tonight.

I've been able to play DVDs using both Mplayer and VLC. I haven't tried doing so with Xine and I'm not sure I'm going to try. The thing that I missed was that I hadn't set the device permission to allow me to play them in my account. I changed:

/etc/devfs.conf

to allow me to have access to the CD-ROM drive.

I still can't mount audio CDs, though. I'll have to do some more tinkering to see if I can do it.
http://www.linuxquestions.org/questions/linux-newbie-8/how-to-mount-audio-cd-manually-859558/
http://www.linuxquestions.org/quest...ating-an-iso-from-an-audio-cd-with-dd-670913/
 
Whenever I insert an audio CD while I'm logged in on my account, I get an error message:

"Unable to mount Audio Disc

Message did not receive a reply (timeout by message bus)"

There's no such problem when I'm logged in as root.

I also installed cdrdao, but it apparently doesn't seem to like Mate if I try to mount an audio CD as described in the second link. I get the error message:

"Cannot open SCSI device '/dev/cd0': Open by 'devname' not supported on this OS", so it looks like I can rule this out.
 
Audio CDs aren't mounted. Well, there might be some FUSE thing being used to simulate that. That it works for root but not a normal user usually indicates permissions missing for the normal user, either to the CD device or the mountpoint.
 
I'm still drawing a blank on mounting audio CDs on my account. I still get the error message I mentioned earlier.

I added to /etc/devfs.rules:

Code:
[devfsrules_common=7]
add path 'acd[0-9]\*'   mode 666
add path 'cd[0-9]\*'   mode 666

I changed /etc/devfs.conf with:

Code:
link   cd0   cdrom
link   cd0   dvd

perm   /dev/cd0   0666
perm   /dev/acd0   0666

/etc/rc.conf was revised with:

Code:
devfs_system_ruleset="devfsrules_common"

I also added /boot/loader.conf which had:
Code:
fuse_load="YES"

What did I miss or do wrong? Please advise. Thanks.
 
As stated you cannot mount audio CDs, only read them. You need to set the permissions of the devices correctly to do that. Try doing the following:

  • Make sure your user is in the operator group. You can check that by running the id(1) command on your user. If the user is not in that group, you can add them to it with the following command as root: # pw groupmod operator -m <your_user>

  • Amend /etc/devfs.conf to contain the following permissions for CD/DVDs:
    Code:
    # Allow operator group to access CD/DVD
    own         /dev/acd0    root:operator
    perm     /dev/acd0       0660
    own         /dev/acd1    root:operator
    perm     /dev/acd1       0660
    own         /dev/cd0     root:operator
    perm     /dev/cd0        0660
    own         /dev/cd1     root:operator
    perm     /dev/cd1        0660
  • Amend /etc/devfs.rules to contain the following permissions for CD/DVDs:
    Code:
    add path 'acd[0-9]*' mode 0660 group operator
    add path 'cd[0-9]*'  mode 0660 group operator
/etc/devfs.conf is for devices that exist and/or are attached when the computer is booted. /etc/devfs.rules is for devices that are added/plugged in after FreeBSD is already running. This will set root as the owner of the devices and allow anyone in the operator group to access them.

For more information on device permissions, please see the devfs.conf(5) and devfs.rules(5) man pages.

Edit: Just read through entire thread realized you already setup device permissions and could access them with some programs. I'll leave this here anyway in case it's useful to anyone else.
 
I still haven't resolved the issue of mounting audio CDs in my user account. I added it to the wheel group with:

pw groupmod wheel -m <my_account>

and changed the access settings accordingly in the other files I mentioned in my earlier message.

Is there perhaps a configuration file that controls the CD-ROM drive timing for mounting? If so, could it be hidden? I haven't found anything for it in my account so far.

Just for comparison, I installed PC-BSD on a different hard drive. I checked the same files as those I modified and it doesn't look like I've done anything different.
 
I still haven't resolved the issue of mounting audio CDs in my user account. I added it to the wheel group with:

pw groupmod wheel -m <my_account>

and changed the access settings accordingly in the other files I mentioned in my earlier message.

Is there perhaps a configuration file that controls the CD-ROM drive timing for mounting? If so, could it be hidden? I haven't found anything for it in my account so far.

Just for comparison, I installed PC-BSD on a different hard drive. I checked the same files as those I modified and it doesn't look like I've done anything different.
PC-BSD uses their own custom developed tools for automounting things which is separate from any desktop environment native tools so it's not a surprise to me things would work there.

I'm going to assume now that you keep mentioning "mounting audio CDs" due to the message your getting when inserting the CD and not that you are actually trying to mount the audio CD since you can't. If your permissions are set correctly it's most likely a problem with the desktop environment either in configuration or it being broken in that regard. I haven't used MATE before so I really can't offer any help with that unfortunately, however, you should be able to play an audio CD regardless of the desktop "mounting" error you mentioned earlier with any properly installed and configured audio player software that supports playing audio CDs. Both multimedia/vlc and multimedia/mpv work for me for doing that.

Just to make sure your permissions are set properly first, if you don't mind, could you post the output of ls -l /dev | grep cd on the machine?
 
PC-BSD uses their own custom developed tools for automounting things which is separate from any desktop environment native tools so it's not a surprise to me things would work there.
For that installation, I used its version of Mate, so I thought I might find some similarity between that and my FreeBSD drive. Oddly enough, I could play audio CDs with PC-BSD but not DVDs.
I'm going to assume now that you keep mentioning "mounting audio CDs" due to the message your getting when inserting the CD and not that you are actually trying to mount the audio CD since you can't.
You are correct, of course. The audio CD shows up on the root desktop without an error message, but no such luck with my account.
If your permissions are set correctly it's most likely a problem with the desktop environment either in configuration or it being broken in that regard.
I had considered that but I thought it better to first eliminate as many other potential sources as possible.

It could well be a bug in Mate. A year ago, I installed an earlier version of it on 3 different machines I have. It had an irritating quirk that sometimes prevented me from shutting down directly from my account. There was supposed to be an option window which allowed me to shut down, restart, or cancel. Sometimes I got it and the computer could be shut down without a problem. Sometimes the shutdown and, I recall, the restart buttons would be missing, so I had to first log off and then log in again as root to shut down.

It appears that this has been solved in the current version of Mate.
I haven't used MATE before so I really can't offer any help with that unfortunately, however, you should be able to play an audio CD regardless of the desktop "mounting" error you mentioned earlier with any properly installed and configured audio player software that supports playing audio CDs. Both multimedia/vlc and multimedia/mpv work for me for doing that.
I gave it one last try earlier this evening and it appears that I can indeed play an audio CD using VLC, even though the error message window appears. (The CD was some of the soundtrack music for the BBC TV series Sherlock....) The CD still doesn't appear on the desktop, so I have to look for it through VLC's menus.

I think I might have tried a few days ago, but was unsuccessful. I think that was before I set all the necessary permissions.

I also have Aqualung installed (a nice music player, by the way), but it can't find the CD. It'll play it when I'm logged in as root, though.
Just to make sure your permissions are set properly first, if you don't mind, could you post the output of ls -l /dev | grep cd on the machine?
This is what I got:
Code:
crw-rw----  1 root  wheel  0x56 Jan 11 02:54 cd0
lrwxr-xr-x  1 root  wheel  3 Jan 11 02:55 cdrom -> cd0
lrwxr-xr-x  1 root  wheel  3 Jan 11 02:55 dvd -> cd0
I'm cautiously optimistic that something is working, though not necessarily perfectly.
 
It looks like I can actually play audio CDs and DVDs using VLC as I tried it again last night. I still get the error message I mentioned earlier, so it looks like it might be a bug in Mate.

Many thanks to all who responded to my queries. Your advice, patience, and URLs were enormously helpful.
 
Glad you got things working and thanks for sticking it out. :)
You're welcome.

I could, of course, have used, say, PC-BSD but, like a lot of similar operating systems, it included a lot of stuff I didn't want. My intention was to set up a FreeBSD system that had items that I was going to use and little else.

I must admit that I pursued a number of dead ends while working on this, but I learned a few things about FreeBSD that I didn't know before, such as how to properly set permissions. That was just as valuable to me as actually accomplishing my objective.
 
Just wasted half an hour trying to solve this problem, them I remembered... Yes twenty years ago installing a CD included connecting the audio line, something a lot of people don't bother doing anymore.
 
Back
Top