How To Hide Windows From The Grub2 Menu

Hello Linux Geeksters. Today I am going to show you an easy trick to hide Windows from the GRUB2 Menu.

This works for all the Linux systems using GRUB2 with the configuration file /etc/default/grub, not the old GRUB, with /boot/grub/menulist.1st.

http://nfgk.files.wordpress.com/2013/06/grub2.jpg?w=435

On Ubuntu, GRUB2 has been introduces since Ubuntu 9.10 Karmic Koala. So, you can do this on Ubuntu 13.10 Saucy Salamander, Ubuntu 13.04 Raring Ringtail, Ubuntu 12.10 Quantal Quetzal, 12.04 Precise Pangolin, the latest Linux Mint versions: Linux Mint 15 Olivia, Linux Mint 14 Nadia, Linux Mint 13 Maya, Fedora 19, Fedora 18, Fedora 17, Debian Jessie, Debian Sid, Debian Wheezy, Debian Squeeze and many others.

All you have to do is to add this line at the beggining of the /etc/default/grub file: GRUB_DISABLE_OS_PROBER=true

You can either open /etc/default/grub inĀ  your text editor and type it by hand, or use this oneliner:

$ sudo sed -i '1s/^/ GRUB_DISABLE_OS_PROBER=true /' /etc/default/grub

Update Grub and you are done:

$ sudo update-grub

Liked it? Take a second to support Geekster on Patreon!
Tagged with: , , , , , , , , , , , , , , , , , , , , , , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

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

*

Support LinuxG via Patreon
Support LinuxG.net on Patreon!
Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!