{"id":1138,"date":"2020-07-19T12:23:16","date_gmt":"2020-07-19T18:23:16","guid":{"rendered":"https:\/\/wmbuck.net\/blog\/?p=1138"},"modified":"2020-07-20T18:20:56","modified_gmt":"2020-07-21T00:20:56","slug":"libmtp-udev-rules","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=1138","title":{"rendered":"libmtp udev rules"},"content":{"rendered":"\n<p>After updating Arch today I found I could no longer mount usb storage devices &#8211; usb sticks. The log shows the device coming up, but then messages from MTP saying: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mtp-probe: bus: 2, device: 5 was not an MTP device<\/pre>\n\n\n\n<p>I have seen this before. It is irritating, I am doing something else, my head full of whatever it is, and suddenly usb sticks won&#8217;t mount. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Did some reading, some people reported that old udev rules for the libmtp library could be a problem. Libmtp is about the Media Transfer Protocol, which I believe to be involved with automatically recognizing when you plug in your phone that maybe you want to transfer stuff from it (pictures). I&#8217;m not sure. I don&#8217;t do it. <\/p>\n\n\n\n<p>I removed from \/lib\/udev\/rules.d the 69-libmtp.rules and squirreled them away somewhere I am sure I will forget, and rebooted, and now once again I can recognize usb devices. <\/p>\n\n\n\n<p>When I do the pacman updates, sometimes it claims I have local changes to config files which I don&#8217;t remember changing. It is vaguely possible that today when I did the pacman update, that it mentioned finding libmtp rules and asked if I wanted to replace them or keep them. I don&#8217;t remember doing that, at all, nor do I ever remember modifying the libmtp rules. Doesn&#8217;t mean I never did. And my practice, usually, when pacman asks is to leave in place any config that I already have there, so I would have answered to leave it in place. <\/p>\n\n\n\n<p>So it could be my fault. <\/p>\n\n\n\n<p>But at least now I know what to do. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>After updating Arch today I found I could no longer mount usb storage devices &#8211; usb sticks. The log shows the device coming up, but then messages from MTP saying: mtp-probe: bus: 2, device: 5 was not an MTP device I have seen this before. It is irritating, I am doing something else, my head &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=1138\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">libmtp udev rules<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,4],"tags":[],"class_list":["post-1138","post","type-post","status-publish","format-standard","hentry","category-arch-linux","category-linux"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1138"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1138"}],"version-history":[{"count":2,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions"}],"predecessor-version":[{"id":1148,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1138\/revisions\/1148"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}