{"id":168,"date":"2021-07-26T05:52:44","date_gmt":"2021-07-26T05:52:44","guid":{"rendered":"https:\/\/wp.sheepchen.net\/?p=168"},"modified":"2021-09-10T05:35:18","modified_gmt":"2021-09-10T05:35:18","slug":"repair-grub2-on-software-raid-system","status":"publish","type":"post","link":"https:\/\/wp.sheepchen.net\/?p=168","title":{"rendered":"repair grub2 on software-raid system"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Assumptions:<br>&#8211; fs \/ is on \/dev\/md2<br>&#8211; fs boot is on \/dev\/md1<br>&#8211; you are using 2 harddisks (sda, sdb)<br>&#8211; you are using grub2<br>&#8211; grub2 is nor working (fe: error: symbol &#8216;grub_calloc&#8217; not found.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First boot your system with a rescue-disk\/livecd. Then:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># mount \/dev\/md2 \/mnt\n# mount \/dev\/md1 \/mnt\/boot\nmount --bind \/proc \/mnt\/proc\/ ; mount --bind \/dev \/mnt\/dev\/ ; mount --bind \/sys \/mnt\/sys\/\n# chroot \/mnt\n# grub2-install \/dev\/sda   # or \/dev\/nvme1n1 - depends on your disks :)\n# grub2-install \/dev\/sdb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">you should see &#8220;Installing for i386-pc platform. Installation finished. No error reported.&#8221;<br><br>reboot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assumptions:&#8211; fs \/ is on \/dev\/md2&#8211; fs boot is on \/dev\/md1&#8211; you are using 2 harddisks (sda, sdb)&#8211; you are using grub2&#8211; grub2 is nor working (fe: error: symbol &#8216;grub_calloc&#8217; not found.) First boot your system with a rescue-disk\/livecd. Then: you should see &#8220;Installing for i386-pc platform. Installation finished. No error reported.&#8221; reboot.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[9,8],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-grub","tag-linux"],"_links":{"self":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168"}],"version-history":[{"count":3,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions"}],"predecessor-version":[{"id":174,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions\/174"}],"wp:attachment":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}