How to Remove Windows 10 from Grub

Hello. I had a dual boot system where I dual booted Manjaro Cinnamon and Windows 10 because of the need to use LogMeIn for work. Windows had been weird and unable to update, so I deleted Windows and reinstalled. When doing so, rather than dual boot, I had Windows install on a separate hard drive with its own boot partition installed and now I don’t have a dual boot system, per se. However, now I have annoying grub entries left behind for Windows 10 that points to a deleted os partition. I’d love to remove these entries from the grub, but it’s proving to be more difficult than a thought it would be. I see a lot of suggestions online to use grub-customizer, and I can even see it in pamac in the official repositories, but it won’t install because it conflicts with grub.
This seems like such a simple task: Delete an outdated grub entry, but I’m not seeing a simple solution. How do I get rid of outdated grub entries in Manjaro?

sudo update-grub
Generating grub configuration file …
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.9-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.9-x86_64.img
Found initrd fallback image: /boot/initramfs-5.9-x86_64-fallback.img
Found Windows 10 on /dev/sda1
Found Windows 10 on /dev/sdc1
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

Format that partition so you really remove any trace of Windows.

sudo os-prober && sudo update-grub

Or you can try a different approach by editing/creating the file /etc/grub.d/40_custom like this:

menuentry "Windows" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
chainloader +1
}

Add the following line to your /etc/default/grub :

GRUB_DISABLE_OS_PROBER=true

Run:

sudo update-grub
3 Likes

You can uninstall os-prober, so grub is not checking for other OSs.

1 Like

sudo update-grub
Generating grub configuration file …
Found theme: /boot/grub/themes/openbox/theme.txt
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.9-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.9-x86_64.img
Found initrd fallback image: /boot/initramfs-5.9-x86_64-fallback.img
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
:+1:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.