{"id":39,"date":"2014-02-12T17:59:58","date_gmt":"2014-02-12T17:59:58","guid":{"rendered":"https:\/\/nitsuj.net\/blog\/?p=39"},"modified":"2018-04-17T18:01:02","modified_gmt":"2018-04-17T18:01:02","slug":"df-reports-root-fs-as-by-uuid-symlink-instead-of-actual-device","status":"publish","type":"post","link":"https:\/\/nitsuj.net\/blog\/2014\/02\/12\/df-reports-root-fs-as-by-uuid-symlink-instead-of-actual-device\/","title":{"rendered":"df reports root fs as by-uuid symlink instead of actual device"},"content":{"rendered":"<p>I recently noticed my updated debian install (7.4 Wheezy) was displaying the root file system as \/dev\/disk\/by-uuid\/aa89d2a0-12cc-4378-b3be-7788999529a2 instead of by device and partition ID (\/dev\/sda3 in my case)<\/p>\n<p>I found this solution at<br \/>\nhttp:\/\/blog.mbentley.net\/2013\/09\/df-reports-root-fs-as-by-uuid-symlink-instead-of-actual-device\/<br \/>\nWhich references a solution at<br \/>\nhttp:\/\/crunchbang.org\/forums\/viewtopic.php?id=25901<br \/>\n<!--more--><br \/>\nHere&#8217;s the solution:<\/p>\n<p>Create a file<br \/>\n\/etc\/initramfs-tools\/scripts\/local-premount\/rootdevice<\/p>\n<p>Paste the following into this file<br \/>\n#!\/bin\/sh<br \/>\n# Mimic a &#8220;normal&#8221; mount of root device by translating the device link<br \/>\n# (UUID or LABEL) to the actual device.<\/p>\n<p>set -e<\/p>\n<p>[ &#8220;$1&#8221; = prereqs ] &amp;&amp; exit 0<\/p>\n<p>REALROOT=`readlink -f ${ROOT}`<br \/>\n[ &#8220;${REALROOT}&#8221; ] &amp;&amp; echo &#8220;ROOT=${REALROOT}&#8221; &gt;&gt; \/conf\/param.conf<\/p>\n<p>exit 0<\/p>\n<p>Make the file executable<br \/>\nchmod +x \/etc\/initramfs-tools\/scripts\/local-premount\/rootdevice<br \/>\nUpdate initramfs<br \/>\nupdate-initramfs -u<\/p>\n<p>Reboot and it should reference the partition instead of the UUID<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently noticed my updated debian install (7.4 Wheezy) was displaying the root file system as \/dev\/disk\/by-uuid\/aa89d2a0-12cc-4378-b3be-7788999529a2 instead of by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Justin","author_link":"https:\/\/nitsuj.net\/blog\/author\/nitsuj_d7on06\/"},"uagb_comment_info":0,"uagb_excerpt":"I recently noticed my updated debian install (7.4 Wheezy) was displaying the root file system as \/dev\/disk\/by-uuid\/aa89d2a0-12cc-4378-b3be-7788999529a2 instead of by [&hellip;]","_links":{"self":[{"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":2,"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nitsuj.net\/blog\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}