{"id":5366,"date":"2019-06-07T23:50:58","date_gmt":"2019-06-08T04:50:58","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=5366"},"modified":"2019-06-24T18:18:55","modified_gmt":"2019-06-24T23:18:55","slug":"finding-block-id","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=5366","title":{"rendered":"Finding Block ID"},"content":{"rendered":"<p>I upgraded my Fedora kernel to 5.1 and the secondary disk mounted to \/var disappeared. I use the old-school device notation in fstab;\u00a0 when a disk comes up with a different name, the partition fails to mount. I wanted to change fstab to use a UUID. But first I needed to <em>find <\/em>the UUID. Enter <strong>blkid<\/strong><\/p>\n<p>[root@linux123 ~]# <strong>blkid \/dev\/sdb1<\/strong><br \/>\n\/dev\/sdb1: LABEL=&#8221;mnt-var&#8221; UUID=&#8221;50545e50-75c5-45q5-95b5-34f5456515d5&#8243; TYPE=&#8221;ext4&#8243; PARTUUID=&#8221;m50525d5-05&#8243;<\/p>\n<p>The command output includes the device UUID which is used instead of the \/dev\/sdb# string.<\/p>\n<p>#\/dev\/sdb1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/var ext4 nodev,nosuid 0 2<br \/>\nUUID=50545e50-75c5-45q5-95b5-34f5456515d5 \/var ext4 nodev,nosuid 0 2<\/p>\n<p>Rebooted and my partition mounted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I upgraded my Fedora kernel to 5.1 and the secondary disk mounted to \/var disappeared. I use the old-school device notation in fstab;\u00a0 when a disk comes up with a different name, the partition fails to mount. I wanted to change fstab to use a UUID. But first I needed to find the UUID. Enter &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[294],"class_list":["post-5366","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5366"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5366\/revisions"}],"predecessor-version":[{"id":5367,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5366\/revisions\/5367"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}