GNOME Bugzilla – Bug 304070
dvd+rw unreadable when automounted -> need option to mount read-only
Last modified: 2005-07-20 07:43:40 UTC
Distribution/Version: Debian When gnome-volume-manager automounts a dvd+rw containing an fs in my dvd burner on my system, the volume is unreadable, since it gets pmounted rw, and blocks get changed. unmounting the volume reports a dirty dvd+rw. the same volume is readable if mounted by hand with the read-only flag. gnome-volume-manager itself has pmount hardcoded into it: josh@spleen:~$ strings /usr/bin/gnome-volume-manager | grep pmount /usr/bin/pmount-hal %h josh@spleen:~$ gnome-volume-manager should accept additional options to be passed to pmount, and the dialog gnome-volume-properties needs a checkbox to mark volumes to be mounted read-only.
do you have a proposal of how to do this? the mount command can already be specified at configure time. I don't see how it would be possible for g-v-m to know what options to pass for read-only/etc command-line arguments to the build-specified mount command. My suggestion to you would be to write a pmount wrapper script and have g-v-m use that instead. Your script could pass the appropriate options based on your own hal queries.
Well, how about if the gnome-volume-properties dialog had a text field for user specified flags to be passed to the mount command? You could hide this text field behind an "advanced options" button or something. Also, the executable /usr/bin/gnome-volume-manager should pass all options it doesn't know itself on to the mount command.