Howto fix missing operating system for grub (And Change boot order)

If install linux distro such as pop os or arch linux, although you have windows or other OS) on other partition it still missing in grub list, This is howto fix them

Tested on Pop OS! (ubuntu debian based) and arch linux

Update OS list

  • sudo apt install os-prober (for pop os)
  • sudo packman -S os-prober (for arch linux)
  • sudo os-prober
  • sudo update-grub

Change boot order

  • make a backup copy of etc/grub/default In case something goes wrong
  • sudo cp /etc/default/grub /etc/default/grub.bak
  • Open the grub file for edit
  • sudo gedit /etc/default/grub
  • Find GRUB_DEFAULT=0
    Change it to the item that you want. For example (in my case) when the grub menu pops up when I turn on my laptop I see a list which Ubuntu is the first item (index=0) and Windows 10 is the 3th item (index=2) so I need to change the default grub to 4 GRUB_DEFAULT=2
  • Then build the updated grub menu
  • sudo update-grub

Leave a Comment

Your email address will not be published. Required fields are marked *