How to disable or enable OS Prober from the Grub?

Linux has an OS Prober feature that allows us to choose other operating systems installed in the system using Grub.

By default on the latest version of Linux, it’s disabled; on the earlier versions, it’s enabled. In this article, I’ll show you how to disable or enable OS Prober from the Grub in Linux (Debian/Ubuntu).

What file to edit?

You need to edit the Grub configuration file which is located on:

sudo nano /etc/default/grub

Make sure that you are a root or root privileged user who can edit.

What to edit?

To disable the OS Prober, use the following command.


To enable the OS Prober, use the following command.


Once you have set the instruction you can save and exit the file.

Now just update the Grub so it can take effects.

sudo update-grub

This is it, just reboot (restart) the system and check it.

Published by Atul Kumar Pandey

Atul Kumar Pandey is a creator of atulhost. Being a business management graduate, he has a flair for business writing but also likes to dabble in technological trends. He is a voracious reader and an avid tech tester and loves to try new things.

    Comments and feedback

Leave a reply

Required fields are asterisked and email address will not be shared.