{"id":308,"date":"2020-05-20T20:00:15","date_gmt":"2020-05-20T18:00:15","guid":{"rendered":"https:\/\/binaryvikings.io\/?p=308"},"modified":"2020-05-20T20:00:16","modified_gmt":"2020-05-20T18:00:16","slug":"mount-cant-read-superblock","status":"publish","type":"post","link":"https:\/\/binaryvikings.io\/?p=308","title":{"rendered":"Mount: can&#8217;t read superblock"},"content":{"rendered":"\n<p>We recently had a power outage in the building, which lasted longer than my UPS could handle. When I booted up my server, I could no longer mount my drive, getting the following error:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-\"><code>root@Eir:~# mount \/dev\/md0 \/mnt\/EirStorage\/\nmount: \/dev\/md0: can&#39;t read superblock<\/code><\/pre><\/div>\n\n\n\n<p>After fiddling about with <strong>mdadm<\/strong> as that&#8217;s what I used to create my <strong>\/dev\/md0<\/strong> raid, I realized that everything was correct with the raid, still, but the issue was with the drive not being properly unmounted&#8230; Yes, exactly&#8230; Like when you pull out a USB before asking Windows nicely.<\/p>\n\n\n\n<p>I proceeded to run the command <strong>fsck -p \/dev\/md0<\/strong> (<strong>-p<\/strong> stands for &#8220;automatic repairs, no questions asked&#8221;). After which it ran the lines below:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plane\"><code>root@Eir:~# fsck -p \/dev\/md0\nfsck from util-linux 2.29.2\n\/dev\/md0: recovering journal\nJournal checksum error found in \/dev\/md0\n\/dev\/md0 was not cleanly unmounted, check forced.\n\/dev\/md0: Inode 3145732 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 3145734 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 3145736 extent tree (at level 1) could be narrower.  IGNORED.\n\/dev\/md0: Inode 6619138 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 6619147 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 6619149 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 6619152 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 6619154 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 6619156 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 6619158 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 6619160 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 6619197 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 12582924 extent tree (at level 1) could be narrower.  IGNORED.\n\/dev\/md0: Inode 12582927 extent tree (at level 1) could be narrower.  IGNORED.\n\/dev\/md0: Inode 12582940 extent tree (at level 1) could be narrower.  IGNORED.\n\/dev\/md0: Inode 12582947 extent tree (at level 1) could be narrower.  IGNORED.\n\/dev\/md0: Inode 12582958 extent tree (at level 1) could be narrower.  IGNORED.\n\/dev\/md0: Inode 12582961 extent tree (at level 1) could be narrower.  IGNORED.\n\/dev\/md0: Inode 32178178 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 32243715 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 32243717 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 32243719 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 32243721 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: Inode 32243723 extent tree (at level 2) could be narrower.  IGNORED.\n\/dev\/md0: \/lost+found not found.  CREATED.\n\/dev\/md0: 5460\/301441024 files (0.8% non-contiguous), 418130124\/2411526528 blocks\n<\/code><\/pre><\/div>\n\n\n\n<p>Indeed it told me that the drive was not cleanly unmounted, and on top, solved a little extra issue.<\/p>\n\n\n\n<p>I could then run <strong>mount \/dev\/md0 \/mnt\/EirStorage<\/strong> without issues.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>I hope this helps you too!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We recently had a power outage in the building, which lasted longer than my UPS could handle. When I booted up my server, I could<\/p>\n","protected":false},"author":1,"featured_media":258,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[12,19,13],"tags":[],"class_list":["post-308","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","category-linux","category-support"],"_links":{"self":[{"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/posts\/308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=308"}],"version-history":[{"count":2,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/posts\/308\/revisions"}],"predecessor-version":[{"id":310,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/posts\/308\/revisions\/310"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=\/wp\/v2\/media\/258"}],"wp:attachment":[{"href":"https:\/\/binaryvikings.io\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/binaryvikings.io\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}