<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hey,<br>
<br>
I'm not sure whether I'm the right person to answer, but here is
my few attempt:<br>
<br>
It really depends on how you want to mount. Say you are using
udiskie [1], you can put a rule in the config file, to specify
your device as readonly, like this:<br>
<br>
~/.config/udiskie/config.yml:<br>
<br>
mount_options:<br>
- id_uuid: E457-0FC9<br>
options: [ro]<br>
<br>
where you have to put the UUID of your filesystem.<br>
<br>
(disclaimer, I'm the maintainer of udiskie)<br>
<br>
If you want to keep a simpler solution with an udev rule, which
tool do you use for mounting - udisksctl? In this case: `udisksctl
mount` accepts a parameter `--options=ro` to achieve the same.<br>
<br>
You could show me your current rule and script, so we can figure
out how to modify that.<br>
<br>
<br>
Best, Thomas<br>
<br>
<br>
[1]: <a class="moz-txt-link-freetext" href="https://github.com/coldfix/udiskie">https://github.com/coldfix/udiskie</a><br>
<br>
<br>
<br>
</tt><br>
<div class="moz-cite-prefix">Spork Schivago wrote on 01/21/2017
07:42 PM:<br>
</div>
<blockquote
cite="mid:CAEeNszZfBtGyWmRAa1R_8jNvtcXYEWmU8DEHq01OvvvAQQrGVQ@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello,<br>
<br>
I sent this message yesterday after signing up to the mailing
list, but I sent it before I got the Welcome to the
"devkit-devel" mailing list e-mail, so I'm not sure it actually
went through.<br>
<br>
I found this mailing list when I was searching for what I wanted
to accomplish. I saw someone was submitting a patch to
accomplish what I wanted to accomplish, however, the patch
wasn't accepted (for various reasons). I thought maybe the
fellow members could help me or point me in the right direction
so I can get help for my problem. I'm not certain that this is
the proper mailing list to ask for help, and if it's not, I
apologize. Perhaps someone could show me a more fitting
mailing list?<br>
<br>
I want a certain thumb drive to always auto-mount as read-only,
but only that thumb drive. I tried writing a custom udev rule
and I got it to the point where I inputed just that thumb drive,
it'd execute a script. When I removed it, it'd execute another
script. I tried calling mount and unmount from those scripts,
I tried using udisksctl to mount the thumb drive, but they don't
work at that stage of the process and fail.<br>
<br>
I followed a tutorial on Arch Linux's website that says how to
use mount in a udev rule, by changing MountFlags to shared in
some file called systemd-udev.service or something like that.
That didn't allow me to use the mount command. The most
important part is the thumb drive needs to mount under the
/run/media/<username>/<fs label>. I really want
that. Otherwise, I could just setup an fstab entry.<br>
<br>
Does anyone know how to accomplish what I want to accomplish?
I'm running OpenSuSE Tumbleweed and Gnome. I believe I have
udisks2 installed. I'm fairly new to this, so again, I
apologize if I'm not providing the right information.<br>
<br>
Thanks!<br>
<br>
Ken Swarthout</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
devkit-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:devkit-devel@lists.freedesktop.org">devkit-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/devkit-devel">https://lists.freedesktop.org/mailman/listinfo/devkit-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>