Remove Windows entry in GRUB menu
Open terminal (Alt+Ctrl+T
) and follow the below procedure :
Paste the following command in terminal
sudo gedit /etc/default/grub
. It will open a file named/boot/grub/grub.cfg file
.-
Add
GRUB_DISABLE_OS_PROBER=true
at the bottom of this file.It will prevent Windows being added to your grub menu.
Now to write the change, run
sudo update-grub
You can then run
cat /boot/grub/grub.cfg
to check that your Windows entry has disappeared.Restart your device to check the same.
Note : If above one doesn't go well you can also visit the link Removing Windows entry from grub.
Happy Ubuntu :)
Related videos on Youtube
displayname
Updated on September 18, 2022Comments
-
displayname over 1 year
I used to have Windows 8.1 - Linux Mint dual boot. I succesfully removed Windows from the system but Grub still shows Windows in boot options:
I would like to configure the system the way, that on start up I directly load into Linux Mint without seeing Grub screen options at all.
What I tried so far:
sudo update-grub
-
sudo sed -i 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=0/' /etc/default/grub
sudo update-grub
-
Deleted Windows entry using efibootmgr; it was entry Boot0003, it is no more there:
BootCurrent: 0002 Timeout: 0 seconds BootOrder: 0002,0004,2003,2001,2002 Boot0000* EFI Network 0 for IPv6 (70-54-D2-8C-E9-B5) Boot0001* EFI Network 0 for IPv4 (70-54-D2-8C-E9-B5) Boot0002* ubuntu Boot0004* Ubuntu Boot2001* EFI USB Device Boot2002* EFI DVD/CDROM Boot2003* EFI Network
- 3 followed by deleting directory Microsoft from
/boot/efi/EFI
.
Currently/boot/efi/EFI
has three dirs left:Boot
toshiba
ubuntu
Is there anything else I could do?
-
displayname over 7 yearsawesome, this worked, thanx a lot!
-
Pankaj Kumar Gautam over 7 yearsit's my nature to share knowledge as much I can :)