{"id":169,"date":"2010-06-30T14:49:36","date_gmt":"2010-06-30T19:49:36","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=169"},"modified":"2010-06-30T14:49:36","modified_gmt":"2010-06-30T19:49:36","slug":"how-to-add-entries-by-uuid-to-etcfstab","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2010\/06\/30\/how-to-add-entries-by-uuid-to-etcfstab\/","title":{"rendered":"How to add entries by UUID to \/etc\/fstab"},"content":{"rendered":"<p>Normally in Linux, one would be able to add entries to the \/etc\/fstab file by using the standard \/dev\/xdx notation. However, what happens when we add or remove some partitions and hard disks? In this case, it would completely throw off the entries resulting in you not being able to access your partition. As a result, it is also possible to mount using <a href=\"http:\/\/en.wikipedia.org\/wiki\/Universally_Unique_Identifier\">UUID (<strong>U<\/strong>niversally <strong>U<\/strong>nique <strong>Id<\/strong>entifier)s<\/a>. This way you will still be able to access your partitions even if they are shuffled around.<\/p>\n<p>To get the UUID of a partition:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">blkid \/dev\/&lt;em&gt;xxxx&lt;\/em&gt; -s UUID<\/pre>\n<p>and it will output something like this:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/dev\/&lt;em&gt;xxxx&lt;\/em&gt;: UUID=&quot;1fa6e8df-f05a-4c7c-b30a-cd3c1b2bcebd&quot;<\/pre>\n<p>and then you can use the UUID to add a line in \/etc\/fstab:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">UUID=1fa6e8df-f05a-4c7c-b30a-cd3c1b2bcebd\t\/media\/mountpoint\text4\tdefaults\t0\t1<\/pre>","protected":false},"excerpt":{"rendered":"<p>Normally in Linux, one would be able to add entries to the \/etc\/fstab file by using the standard \/dev\/xdx notation. However, what happens when we add or remove some partitions and hard disks? In this case, it would completely throw off the entries resulting in you not being able to access your partition. As a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[676,678,679,279,677],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/169"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}