{"id":1593,"date":"2022-03-19T16:14:39","date_gmt":"2022-03-19T20:14:39","guid":{"rendered":"https:\/\/www.unliterate.net\/?p=1593"},"modified":"2022-03-19T16:14:39","modified_gmt":"2022-03-19T20:14:39","slug":"grub2-for-windows-10-after-installing-rocky-8-5","status":"publish","type":"post","link":"https:\/\/www.unliterate.net\/index.php\/2022\/03\/19\/grub2-for-windows-10-after-installing-rocky-8-5\/","title":{"rendered":"grub2 for Windows 10 after installing Rocky 8.5"},"content":{"rendered":"\n<p>So, I came into a hiccup, and the amount of time it took to diagnose and resolve seemed like it should be something I documented.<\/p>\n\n\n\n<p>In doing the initial installation of Rocky 8.5 on the computer that my kids <em>sometimes use<\/em> that runs Windows 10 I wasn&#8217;t really given the opportunity to configure a multiboot. Instead, the system happily booted Rocky 8.5 and nothing else.<\/p>\n\n\n\n<p>Additionally, running os-prober didn&#8217;t really find another operating system, so I had to do some manual work.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>To even get to this point I had to free up 30gb of data on the host hard drive to make the Rocky 8.5 installation. That partition ended up being the 3rd of 4 partitions. After the resize was done the installation was started, set up, and finalized.<\/p>\n\n\n\n<p>The fix to this seemed to be fairly easy. I had to create \/etc\/grub.d\/50_windows.conf with the following contents (<a href=\"https:\/\/unix.stackexchange.com\/questions\/259069\/how-to-start-a-windows-partition-from-the-grub-command-line\" target=\"_blank\" rel=\"noreferrer noopener\">from stackexchange<\/a>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/sh\ncat &lt;&lt;EOF\nmenuentry \"Windows 10\" {\r\n  insmod chain\r\n  insmod ntfs\r\n  set root=(hd0,1)\r\n  chainloader +1\r\n  boot\r\n}\nEOF<\/code><\/pre>\n\n\n\n<p>Second, I had to generate the grub config file (<a rel=\"noreferrer noopener\" href=\"https:\/\/unix.stackexchange.com\/questions\/453124\/add-windows-10-to-grub2-bootloader\" target=\"_blank\">from stackexchange<\/a>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo grub-mkconfig -o \/boot\/grub\/grub.cfg<\/code><\/pre>\n\n\n\n<p>Once I rebooted  I had my new menu prompt.<\/p>\n\n\n\n<p>The main difficulty in this was finding information that was not grub and was specifically grub2, which is why I felt the need to document this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I came into a hiccup, and the amount of time it took to diagnose and resolve seemed like it should be something I documented. In doing the initial installation of Rocky 8.5 on the computer that my kids sometimes use that runs Windows 10 I wasn&#8217;t really given the opportunity to configure a multiboot. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,17,40],"tags":[],"class_list":["post-1593","post","type-post","status-publish","format-standard","hentry","category-geek-instructions","category-linux","category-rocky"],"_links":{"self":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/1593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/comments?post=1593"}],"version-history":[{"count":1,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/1593\/revisions"}],"predecessor-version":[{"id":1594,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/1593\/revisions\/1594"}],"wp:attachment":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/media?parent=1593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/categories?post=1593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/tags?post=1593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}