{"id":1290,"date":"2013-08-25T14:50:35","date_gmt":"2013-08-25T18:50:35","guid":{"rendered":"http:\/\/pappp.net\/?p=1290"},"modified":"2013-08-25T15:30:57","modified_gmt":"2013-08-25T19:30:57","slug":"udisks2-misfeature-fix","status":"publish","type":"post","link":"https:\/\/pappp.net\/?p=1290","title":{"rendered":"Udisks2 Misfeature Fix"},"content":{"rendered":"<p>Apparently David Zeuthen committed <a href=\"http:\/\/cgit.freedesktop.org\/udisks\/commit\/?id=6ae6c19ad981801d08f3f5b59c0301ed3fe8b7b4\">a patch<\/a> back in February (appears in udisks2 >= 2.0.91, afik) that lets you single-point (or selectively) switch Udisks2 back to the nice, sane, predictable &#8220;Removable drives mount to <code>\/media<\/code>&#8221; behavior instead of the asinine &#8220;Drives are owned  by some user who happens to be logged in at a local session at the time they are plugged, mounted to <code>\/run\/media\/$USER\/$LABEL<\/code>, and ACL&#8217;d to that user&#8221; nonsense that has been a near-constant source of inconvenience lately. I&#8217;m surprised it took me this long to find it.<\/p>\n<p>Following <a href=\"http:\/\/linux.derkeiler.com\/Newsgroups\/alt.os.linux.suse\/2013-04\/msg00055.html\">these instructions<\/a>, all you have to do is create a Udev rule (ie. <code>\/etc\/udev\/rules.d\/99-correct-media-mount-point.rules)<\/code> with the line <code>ENV{ID_FS_USAGE}==\"filesystem|other|crypto\", ENV{UDISKS_FILESYSTEM_SHARED}=\"1\"<\/code>, and storage mounts to <code>\/media\/$LABEL<\/code> (You may want to leave out crypto, it actually makes sense for encrypted volumes to be obscured from other users like that) with no funky ACLs by default.  <\/p>\n<p>No more tedious <code>user,noauto,nofail<\/code> fstab entries on all my machines, for all my frequently-used discs to prevent that behavior! Hurrah!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apparently David Zeuthen committed a patch back in February (appears in udisks2 >= 2.0.91, afik) that lets you single-point (or selectively) switch Udisks2 back to the nice, sane, predictable &#8220;Removable drives mount to \/media&#8221; behavior instead of the asinine &#8220;Drives &hellip; <a href=\"https:\/\/pappp.net\/?p=1290\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8,1],"tags":[51,231],"class_list":["post-1290","post","type-post","status-publish","format-standard","hentry","category-computers","category-diy","category-general","tag-linux","tag-udisks2"],"_links":{"self":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts\/1290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1290"}],"version-history":[{"count":0,"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts\/1290\/revisions"}],"wp:attachment":[{"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}