{"id":2268,"date":"2019-01-02T19:07:46","date_gmt":"2019-01-02T19:07:46","guid":{"rendered":"http:\/\/hauweele.net\/~gawen\/blog\/?p=2268"},"modified":"2019-01-02T19:07:46","modified_gmt":"2019-01-02T19:07:46","slug":"automount-not-working-with-freebsd-12","status":"publish","type":"post","link":"https:\/\/hauweele.net\/~gawen\/blog\/?p=2268","title":{"rendered":"Automount  not working with FreeBSD 12"},"content":{"rendered":"<p>FreeBSD 12 is out. This is great! However I had the surprise to find that the automount feature didn&#8217;t work in KDE, probably also Gnome, XFCE and any other desktop environment that provide such a feature.<\/p>\n<p>The culprit was easy to find, the <a href=\"http:\/\/www.freedesktop.org\/wiki\/Software\/hal\">Hardware Abstraction Layer<\/a> has not yet updated to the peculiarities of the latest FreeBSD release.<\/p>\n<p>See, when HAL tries to mount a vfat filesystem on FreeBSD, it adds by default the <i>large<\/i> option which according to <a href=\"https:\/\/www.freebsd.org\/cgi\/man.cgi?query=mount_msdosfs&amp;apropos=0&amp;sektion=8&amp;manpath=FreeBSD+11.2-RELEASE&amp;arch=default&amp;format=html\">FreeBSD 11.2 mount_msdosfs&#8217;s manpage<\/a> provide support for very large files (&gt;128GB). This option, however, was removed in FreeBSD 12. Thus automount fails.<\/p>\n<p>To temporarily fix this, edit <code> \/usr\/local\/share\/hal\/fdi\/policy\/10osvendor\/20-storage-methods.fdi<\/code>. Then remove the <i>large<\/i> option in the <i>vfat<\/i> match for FreeBSD. That is:<\/p>\n<pre>\r\n  &lt;match key=\"volume.fstype\" string=\"vfat\"&gt;\r\n    &lt;match key=\"\/org\/freedesktop\/Hal\/devices\/computer:system.kernel.name\" string=\"Linux\"&gt;\r\n      ...\r\n  &lt;\/match&gt;\r\n  &lt;match key=\"\/org\/freedesktop\/Hal\/devices\/computer:system.kernel.name\" string=\"FreeBSD\"&gt;\r\n    ...\r\n    &lt;!-- &lt;append key=\"volume.mount.valid_options\" type=\"strlist\"&gt;large&lt;\/append&gt; --&gt;\r\n  &lt;\/match&gt;\r\n<\/pre>\n<p>This was already reported in <a href=\"https:\/\/bugs.freebsd.org\/bugzilla\/show_bug.cgi?id=221709\">#221709<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD 12 is out. This is great! However I had the surprise to find that the automount feature didn&#8217;t work in KDE, probably also Gnome, XFCE and any other desktop environment that provide such a feature. The culprit was easy &hellip; <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=2268\">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":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[1039,641,389,1040,834],"class_list":["post-2268","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-12-0-release","tag-automount","tag-freebsd","tag-hal","tag-kde"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2268"}],"version-history":[{"count":0,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2268\/revisions"}],"wp:attachment":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}