On 10/16/06, <b class="gmail_sendername">Leighton Brough</b> <<a href="mailto:brough@baremetalsoft.com">brough@baremetalsoft.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I can see from the logs that the Eject option on the DVD menu performs a<br>umount command. This does unmount the disk and makes it possible for me<br>to manually eject it, but it doesn't actually automatically eject. What
<br>do I need to do to make this work?<br><br>The relevant lines from /etc/fstab look like this:<br><br>/dev/cdrom /mnt/cd iso9660 user,noauto,unhide 0 0<br>/dev/dvd /mnt/dvd udf user,noauto,unhide 0 0
<br><br>I've got the monitor CD/DVD setting checked, as this is the only way I<br>can see to get MythGallery to view a DVD or CD containing images or<br>video files. This is something else I'd like to know more about: is it
<br>possible to get the gallery into this mode from the main menu, or does<br>it only happen in response to inserting a disk (or on detection of a<br>disk at startup of the frontend)?<br><br>Thanks,<br>Leighton<br>_______________________________________________
<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br></blockquote></div><br>I had a similar problem and I was able to resolve it by adding my "mythtv" user to the sudoers list and allowing the mythtv user to use the command eject. I also made an eject script so that I could easily map it to my remote using irexec. The following is the line that I use in my /etc/sudoers file to allow access to eject.
<br><br>mythtv,%mythtv ALL=NOPASSWD:/usr/bin/eject,/sbin/mount /cdrom,/sbin/umount /cdrom<br><br>And the eject script that I use is super simple<br>eject.sh:<br><br>#!/bin/sh<br>sudo /usr/bin/eject /dev/dvd-sr0<br><br>I do not call my optical drives out in my fstab either. I hope that this helps.
<br><br>JP<br><br><br><br>