{"id":1489,"date":"2013-02-26T16:16:13","date_gmt":"2013-02-26T14:16:13","guid":{"rendered":"http:\/\/raftaman.net\/?p=1489"},"modified":"2021-05-15T11:46:38","modified_gmt":"2021-05-15T09:46:38","slug":"how-to-label-a-partition","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=1489","title":{"rendered":"How to label a partition"},"content":{"rendered":"<p>Labelling a partition can be quite handy, especially for partitions on usb drives that usually get auto-mounted to a folder that corresponds to their label.<\/p>\n<p>Usually the label is set when the partition is created. If the label is not explicitly specified, it is usually auto-generated. To change the label, there are a couple of tools available:<\/p>\n<h2>ext2\/ext3\/ext4 partitions<\/h2>\n<p>You can either use <a href=\"http:\/\/linux.about.com\/library\/cmd\/blcmdl8_e2label.htm\"><code>e2label<\/code><\/a><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# e2label device &#x5B;newlabel]\r\n<\/pre>\n<p>or <a href=\"http:\/\/www.cyberciti.biz\/faq\/linux-partition-howto-set-labels\/\"><code>tune2fs<\/code><\/a><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# tune2fs -L &#x5B;newlabel] device\r\n<\/pre>\n<h2>FAT\/FAT16\/FAT32 partitions<\/h2>\n<p>Again, there are multiple tools available, from simple perl scripts to <a href=\"http:\/\/www.gnu.org\/software\/mtools\/\">mtools<\/a>, but the easiest to use is probably <code>dosfslabel<\/code> from the <a href=\"http:\/\/www.daniel-baumann.ch\/software\/dosfstools\/\"><code>dosfstools<\/code> package<\/a><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# yum install dosfstools\r\n&#x5B;...]\r\n# dosfslabel device &#x5B;newlabel]\r\n<\/pre>\n<h2>NTFS partitions<\/h2>\n<p><code>ntfslabel<\/code> is available as part of the <a href=\"http:\/\/www.ntfs-3g.org\/\"><code>ntfsprogs<\/code> package<\/a><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# yum install ntfsprogs\r\n&#x5B;...]\r\n# ntfslabel device &#x5B;newlabel]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Labelling a partition can be quite handy, especially for partitions on usb drives that usually get auto-mounted to a folder that corresponds to their label. Usually the label is set when the partition is created. If the label is not explicitly specified, it is usually auto-generated. To change the label, there are a couple of tools available: ext2\/ext3\/ext4 partitions You&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=1489\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[39,7],"class_list":["post-1489","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ext4","tag-fedora"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1489"}],"version-history":[{"count":3,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1489\/revisions"}],"predecessor-version":[{"id":1504,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/1489\/revisions\/1504"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}