After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 304070 - dvd+rw unreadable when automounted -> need option to mount read-only
dvd+rw unreadable when automounted -> need option to mount read-only
Status: RESOLVED WONTFIX
Product: gnome-volume-manager
Classification: Deprecated
Component: general
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: Robert Love
Robert Love
Depends on:
Blocks:
 
 
Reported: 2005-05-13 15:04 UTC by jbuhl
Modified: 2005-07-20 07:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description jbuhl 2005-05-13 15:04:56 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.
Comment 1 Jeffrey Stedfast 2005-07-19 20:46:45 UTC
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.
Comment 2 jbuhl 2005-07-20 07:43:40 UTC
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.