{"id":43356,"date":"2022-11-22T02:58:03","date_gmt":"2022-11-22T02:58:03","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=43356"},"modified":"2024-05-06T13:33:30","modified_gmt":"2024-05-06T13:33:30","slug":"reboot-into-another-os-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/11\/reboot-into-another-os-ubuntu\/","title":{"rendered":"How to Reboot directly into another OS from Ubuntu 24.04 | 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/grub-customizer-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-38622\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/grub-customizer-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/grub-customizer-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/grub-customizer-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/grub-customizer-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/grub-customizer-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/grub-customizer-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This simple tutorial shows how to reboot your machine into another OS or grub boot menu entry directly from Ubuntu.<\/p>\n<p>Say you have Ubuntu dual- or multi-boot with other operating systems, and want to reboot directly into a specific OS when working done in current Ubuntu. Or you want to reboot with another Kernel or maybe recovery mode without any keyboard press while booting. This tutorial may help.<\/p>\n<h3>Method 1: Single command to reboot into another OS<\/h3>\n<p>Grub, the default boot-loader for many Linux, has a command line tool <code>grub-reboot<\/code>, which allows to set the default boot-entry for ONLY next boot.<\/p>\n<p>Along with <code>reboot<\/code> command, it allows to reboot directly into another entry. For example, reboot into the <b>third<\/b> menu try with command:<\/p>\n<pre>sudo grub-reboot 2 &amp;&amp; reboot<\/pre>\n<p><b>NOTE: Grub menu entry counts from 0. Number 2 means the 3rd entry.<\/b><\/p>\n<h4>Preview Boot Menu without Reboot<\/h4>\n<p>You don&#8217;t have to reboot and count in the boot-menu for your desired number. There are <b>2<\/b> ways to preview the menu from in Ubuntu.<\/p>\n<p><b>Option 1. Preview Grub Menu via Grub-Emu<\/b><\/p>\n<p>Press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal, and run command to install grub-emu:<\/p>\n<pre>sudo apt install grub-emu<\/pre>\n<p>Then, run <code>grub-emu<\/code> command in terminal will open up a window for previewing your boot-loader. And, close the terminal will also close the preview window.<\/p>\n<p>The tool works good in Ubuntu 22.04, but NOT for Ubuntu 24.04 in my case somehow.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-emu.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43358\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-emu-600x451.webp\" alt=\"\" width=\"600\" height=\"451\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-emu-600x451.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-emu-300x225.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-emu-768x577.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/grub-emu.webp 1108w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>Option 2. Use Grub-Customizer<\/b><\/p>\n<p>Grub-Customizer is a good alternative, as the preview tool does not work good in my case. To install it, open terminal (Ctrl+Alt+T) and run 3 commands below one by one.<\/p>\n<p>The commands will add the software <a href=\"https:\/\/launchpad.net\/~danielrichter2007\/+archive\/ubuntu\/grub-customizer\" target=\"_blank\" rel=\"noopener\">developer&#8217;s PPA<\/a> repository, update cache and finally install it into your system.<\/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>After that, search for and open it from either system start menu or &#8216;Activities&#8217; overview depends on your DE.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/menu-seq.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43359\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/menu-seq-600x401.webp\" alt=\"\" width=\"600\" height=\"401\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/menu-seq-600x401.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/menu-seq-300x200.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/menu-seq.webp 761w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>As the screenshot shows you, number <b>2<\/b> is for Windows in my case. <b>1&gt;1<\/b> means recovery mode, and <b>1&gt;2<\/b> means the previous kernel entry.<\/p>\n<p>So, run the command below will <b>reboot directly into Windows<\/b> in my case:<\/p>\n<pre>sudo grub-reboot 2 &amp;&amp; reboot<\/pre>\n<p><b>To reboot into recovery mode in sub-menu entry (quotation marks required)<\/b>, use:<\/p>\n<pre>sudo grub-reboot \"1&gt;1\" &amp;&amp; reboot<\/pre>\n<p>And, if you want to use the command in script or bind with a keyboard shortcut, use command:<\/p>\n<pre>pkexec grub-reboot 2 &amp;&amp; reboot<\/pre>\n<p>So, it will pop-up an authentication dialog asks you to type user password, before performing the action.<\/p>\n<h3>Method 2: Add Reboot option in top-right system menu<\/h3>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/reboot-inoption.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43360\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/reboot-inoption-600x358.webp\" alt=\"\" width=\"600\" height=\"358\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/reboot-inoption-600x358.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/reboot-inoption-300x179.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/reboot-inoption-768x458.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/reboot-inoption.webp 1069w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>For <b>GNOME 43\/44<\/b>, meaning users of <b>Ubuntu 22.10, 23.04, Fedora 37\/38, Arch and Manjaro Linux<\/b>, there&#8217;s an extension to do the job by adding menu entries into system status menu.<\/p>\n<p>By clicking on an entry in the menu, will pop-up password authentication dialog, and then shows you the reboot dialog. When typing correct password and click restart in pop-up dialog, it reboot directly with that entry you just clicked!<\/p>\n<h4>How to Install the Extension<\/h4>\n<p>For <b>Ubuntu 22.10<\/b>, first search for and install &#8220;Extension Manager&#8221; from Ubuntu Software.<\/p>\n<div id=\"attachment_42539\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/07\/extension-manager-softwarecenter.webp\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-42539\" class=\"size-large wp-image-42539\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/07\/extension-manager-softwarecenter-600x355.webp\" alt=\"\" width=\"600\" height=\"355\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/07\/extension-manager-softwarecenter-600x355.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/07\/extension-manager-softwarecenter-300x178.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/07\/extension-manager-softwarecenter-768x454.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/07\/extension-manager-softwarecenter.webp 845w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-42539\" class=\"wp-caption-text\">Install Extension Manager in Ubuntu 22.04+<\/p><\/div>\n<p>Then press <i>Super<\/i> (the Windows Logo) key to activate overview, search for and open &#8220;Extension Manager&#8221;. Finally, use the tool to install the &#8220;Custom Reboot&#8221; extension:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/install-customreboot.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-43361\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/install-customreboot-600x470.webp\" alt=\"\" width=\"600\" height=\"470\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/install-customreboot-600x470.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/install-customreboot-300x235.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/install-customreboot-768x601.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/11\/install-customreboot.webp 922w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>For <b>Fedora 37\/38<\/b> and other Linux with GNOME 43\/44, you may go directly to the <a href=\"https:\/\/extensions.gnome.org\/extension\/5542\/custom-reboot\/\" target=\"_blank\" rel=\"noopener\">extension website<\/a> and use ON\/OFF switch to install it.<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows how to reboot your machine into another OS or grub boot menu entry directly from Ubuntu. Say you have Ubuntu dual- or multi-boot with other operating systems, and want to reboot directly into a specific OS when working done in current Ubuntu. Or you want to reboot with another Kernel or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38622,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2034],"class_list":["post-43356","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\/43356","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=43356"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43356\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/38622"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=43356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=43356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=43356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}