{"id":3610,"date":"2015-02-02T19:37:39","date_gmt":"2015-02-02T19:37:39","guid":{"rendered":"http:\/\/really.zonky.org\/?p=3610"},"modified":"2015-02-02T19:37:39","modified_gmt":"2015-02-02T19:37:39","slug":"labelling-a-fat-filesystem","status":"publish","type":"post","link":"https:\/\/really.zonky.org\/?p=3610","title":{"rendered":"Labelling a FAT Filesystem"},"content":{"rendered":"<p>\n\tUndocumented command options&nbsp;&hellip; grrr!\n<\/p>\n<p>\n\tEvery so often I find that I have a need to put a volume label onto a FAT filesystem &#8211; usually so a digital camera SD (or CF) card can be &quot;automatically&quot; mounted (actually they don&#39;t mount automatically on my workstation and I like it like that) in the right place. And of course every time I do, I remember that the command to do so is&nbsp;<em>mlabel<\/em>&nbsp;but I cannot remember exactly how to do it.\n<\/p>\n<p>\n\tBecause&nbsp;<em>mlabel<\/em>&nbsp;(together with the other&nbsp;<em>mtools<\/em>) has some sort of weird configuration file to turn Unix\/Linux paths into&nbsp;<em>drive letters\u203d<\/em>&nbsp;And yes that was an interribang although it could just as well be some other form of punctuation to express disgust instead. As it happens&nbsp;<em>mlabel<\/em>&nbsp;has an undocumented option to specify a device path &hellip; at least it doesn&#39;t appear in the usage hints :-\n<\/p>\n<pre>\r\n&raquo; <strong>mlabel -h<\/strong>\r\nMtools version 4.0.17, dated June 29th, 2011\r\nUsage: mlabel [-vscVn] [-N serial] drive:\r\n\r\n<\/pre>\n<p>\n\tIt turns out that there is a &quot;-i&quot; option which takes a device path, but you still have to specify the drive as &quot;::&quot; just so things are less likely to go right :-\n<\/p>\n<pre>\r\n&raquo; <strong>mlabel -i \/dev\/sdi1 ::<\/strong>\r\n Volume has no label\r\nEnter the new volume label : LEICA1\r\n<\/pre>\n<p>\n\tAnd there it is!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Undocumented command options&nbsp;&hellip; grrr! Every so often I find that I have a need to put a volume label onto a FAT filesystem &#8211; usually so a digital camera SD (or CF) card can be &quot;automatically&quot; mounted (actually they don&#39;t mount automatically on my workstation and I like it like that) in the right place. <a href='https:\/\/really.zonky.org\/?p=3610' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[4,209,226],"tags":[1290,43,1289,1288],"class_list":["post-3610","post","type-post","status-publish","format-standard","hentry","category-it","category-linux-it","category-working-notes","tag-fat","tag-linux","tag-mlabel","tag-mtools","category-4-id","category-209-id","category-226-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1f2KI-We","_links":{"self":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/3610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3610"}],"version-history":[{"count":1,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/3610\/revisions"}],"predecessor-version":[{"id":3611,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/3610\/revisions\/3611"}],"wp:attachment":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}