This tutorial explains easy procedures to update GRUB Bootloader of GNU/Linux system after you install it to USB so it recognizes all other operating systems installed on the same computer if it didn't. For this, I practiced it on my previous Debian 10 on USB stick. You can also practice this on Deepin 15.10 or Ubuntu 19.04 or other OSes. You do not need to install additional program as we will use only command line here. Enjoy!

Subscribe to UbuntuBuzz Telegram Channel to get article updates directly.
[ USB stick installation guides: Deepin 15.10 | Ubuntu 19.04 | Debian 10 ] [ Download links: Deepin 15.10 | Ubuntu 19.04 | Debian 10 ] [ WTDAI: Debian 10 | Ubuntu 19.04 | Kubuntu 19.04]

Before


By default, my Debian on USB stick will boot like below with only 1 name of OS shown "Debian GNU/Linux". However, in fact, my computer has 4 other OSes. So I cannot boot to other OSes.



After



By running command line below, my bootloader recognizes 4 other OSes correctly as shown in this picture. They are "KDE neon", "Trisquel", "Ubuntu Yakkety", and "Ubuntu 19.04". So now I can boot to any other OSes.



Method


  • 1) Boot into your GNU/Linux system within the USB. Example here is Debian 10.
  • 2) Run command line below and let it recognizes all other OSes in your computer. 
  • 3) Reboot.
  • 4) You will see your USB bootloader to look like "After" one above. 

Command line:
$ sudo update-grub

Picture:

 (update-grub command managed to recognize 4 other OSes)

Happy working!


This article is licensed under CC BY-SA 3.0.


, , , , , , , , ,