{"id":43362,"date":"2022-11-24T06:06:25","date_gmt":"2022-11-24T06:06:25","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=43362"},"modified":"2024-05-04T12:55:47","modified_gmt":"2024-05-04T12:55:47","slug":"dual-boot-os-disappear-after-ubuntu-22-10","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/11\/dual-boot-os-disappear-after-ubuntu-22-10\/","title":{"rendered":"[Quick Fix] Dual-boot OS disappeared after installing Ubuntu 24.04 Updated"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/gpu-grub-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"size-thumbnail wp-image-43363\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/gpu-grub-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/gpu-grub-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/gpu-grub-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/gpu-grub-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/gpu-grub-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/gpu-grub-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>After installing Ubuntu since 22.10 and higher, the dual-boot Windows 10 and other OSes may be disappeared from the startup boot menu. If you run into that issue, here&#8217;s the quick tip to fix it.<\/p>\n<p>This is <b><i>definitely not bug, but a policy change<\/i><\/b> since GNU Grub 2.06. The default boot-loader uses external <code>os-prober<\/code> tool to discover other operating systems on the same machine. However, the feature is disabled now for security reason due to <a href=\"https:\/\/www.gnu.org\/software\/grub\/manual\/grub\/grub.html\" target=\"_blank\" rel=\"noopener\">the manual<\/a>:<\/p>\n<blockquote><p><i>It is disabled by default since automatic and silent execution of os-prober, and creating boot entries based on that data, is a potential attack vector. Set this option to \u2018false\u2019 to enable this feature in the grub-mkconfig command.<\/i><\/p><\/blockquote>\n<p>By reloading the config will prompt your that &#8220;<i>Warning: os-prober will not be executed to detect other bootable pertitions<\/i>&#8220;.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-enabled.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43364\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-enabled-600x316.webp\" alt=\"\" width=\"600\" height=\"316\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-enabled-600x316.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-enabled-300x158.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-enabled-768x405.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-enabled.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>Ubuntu 22.04<\/b> is the first release uses GRUB 2.06, which however not affected in my case. So I didn&#8217;t encounter this issue until trying Ubuntu 22.10 today on dual-boot machine. And, here&#8217;s how to fix the the &#8216;issue&#8217; in 2 ways.<\/p>\n<h3>Option 1: Manually re-enable OS-PROBER<\/h3>\n<p>As mentioned in the manual, just set the &#8216;GRUB_DISABLE_OS_PROBER&#8217; option to &#8216;false&#8217; in Grub configuration will do the trick.<\/p>\n<p>1. First, press <b>Ctrl+Alt+T<\/b> on keyboard to open a terminal window. When it opens, run command to edit the Grub config file:<\/p>\n<pre>sudo nano \/etc\/default\/grub<\/pre>\n<p><i>Ubuntu 22.10 and higher switched to gnome-text-editor <del datetime=\"2023-11-12T08:33:00+00:00\">which however does not work along-with <code>sudo<\/code> from command line.<\/del> So here I use <code>nano<\/code> command line text editor instead.<\/i><\/p>\n<p>2. When the file opens in terminal window, scroll down and add the new line (or <em>change the value if the line already exists<\/em>):<\/p>\n<p><b>GRUB_DISABLE_OS_PROBER=false<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/os-proberdisable.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43365\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/os-proberdisable-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/os-proberdisable-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/os-proberdisable-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/os-proberdisable-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/os-proberdisable.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>After that, save changes by pressing <b>Ctrl+X<\/b>, type <b>y<\/b> and hit Enter.<\/p>\n<p>3. Finally, run <code>sudo update-grub<\/code> to reload the change.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-disabled.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43366\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-disabled-600x329.webp\" alt=\"\" width=\"600\" height=\"329\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-disabled-600x329.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-disabled-300x165.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-disabled-768x421.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-osprober-disabled.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Don&#8217;t know why, but Windows OS appears in boot-menu again after I did restart computer twice in my case.<\/p>\n<h3>Option 2: Use Grub-Customizer (graphical tool)<\/h3>\n<p>For those who prefer using a graphical configuration tool, there&#8217;s a third-party Grub-Customizer app available for choice.<\/p>\n<p>1. First, you still need to open terminal (<b>Ctrl+Alt+T<\/b>) and run 3 commands one by one to install the tool from <a href=\"https:\/\/launchpad.net\/~danielrichter2007\/+archive\/ubuntu\/grub-customizer\" target=\"_blank\" rel=\"noopener\">developer&#8217;s PPA<\/a>:<\/p>\n<pre>sudo add-apt-repository ppa:danielrichter2007\/grub-customizer<\/pre>\n<pre>sudo apt update<\/pre>\n<pre>sudo apt install grub-customizer<\/pre>\n<p>2. Search for and launch grub customizer from system start menu or &#8216;Activities&#8217; overview.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-grubcustomizer.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-38626\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-grubcustomizer.png\" alt=\"\" width=\"502\" height=\"267\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-grubcustomizer.png 502w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/open-grubcustomizer-300x160.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/a><\/p>\n<p>3. When the app opens, navigate to &#8216;<b>General Settings<\/b>&#8216; page, then do:<\/p>\n<ul>\n<li>click on bottom right <b>advanced settings<\/b> option.<\/li>\n<li>in next pop-up dialog, click &#8220;<b>Add<\/b>&#8221; (or edit if exists) and type:\n<ul>\n<li>name: GRUB_DISABLE_OS_PROBER<\/li>\n<li>value: false<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Close advanced settings dialog, and finally click &#8220;Save&#8221; button in the app to apply change.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-disableosprober.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43367\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-disableosprober-600x487.webp\" alt=\"\" width=\"600\" height=\"487\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-disableosprober-600x487.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-disableosprober-300x243.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-disableosprober-768x623.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-disableosprober.webp 954w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>After installing Ubuntu since 22.10 and higher, the dual-boot Windows 10 and other OSes may be disappeared from the startup boot menu. If you run into that issue, here&#8217;s the quick tip to fix it. This is definitely not bug, but a policy change since GNU Grub 2.06. The default boot-loader uses external os-prober tool [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":43363,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2034],"class_list":["post-43362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-grub"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=43362"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43362\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/43363"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=43362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=43362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=43362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}