After trawling the internet for possible solutions, I have put together a kludgey script workaround to automatically unmount a dvd when it's ejected via the dvd drive eject button.
This kludge assumes the dvd drive is /dev/sr0 and the shell script uses /bin/sh; customise according to your system configuration. It uses the utility 'dvd+rw-mediainfo'. 1. Create a udev rules file '/etc/udev/rules.d/61-sr0-change.rules' and add the line: KERNEL=="sr0", ACTION=="change", RUN+="/usr/local/bin/sr0_change.sh" and save the file. 2. Create a shell script '/usr/local/bin/sr0_change.sh'. Add the following lines: #!/bin/sh dvd+rw-mediainfo /dev/sr0 > /dev/null n=$? if [ "$n" -ne '0' ];then eject /dev/sr0;fi 3. Save the shell script file and change the file permissions to make it executable. That's it. It's ugly, but it works on my system. I hope it helps. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1168742 Title: Disks are not unmounted when physical eject button is used To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1168742/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
