0

I used to have ubuntu installed in pc hard disk but for other purposes, I can have only windows installed. Now I have uninstalled all partitions having ext4 fs, so only ntfs and bootable fs (vfat32 I think) remain. But still, when I boot I see grub bootloader (GNU GRUB version - Minimal BASH-like line editing is supported. For the first word, TAB lists possible command , …). Now I would like to remove this as well. I have tried to go to recovery mode, and from there to command prompt: bootrec.exe /fixmbr and then bootrec.exe /fixboot but access denied (I do not know why), but neither helped - I am still entering the grub. I do not have any media with full windows installation so I cannot boot from usb and make full install (I have tried although full restart which reinstalled the whole windows - still did not helped). So How can I delete/remove the grub bootloader from master boot record (or wherever it resides) to boot directly to windows?

PS: to get from the bootloader, I have to at least twice exit from the bootloader, when it finally boots windows. How to delete the bootloader?

3
  • You need to make sure Windows boot loader is default in UEFI. You should always have a Windows repair disk or installer with repair console. Also depends on whether grub is UEFI or BIOS & whether Windows is UEFI or BIOS and if system is set to boot in correct boot mode for install. If UEFI, you typically remove the UEFI boot entry and the /EFI/ubuntu or /EFI/grub or whatever Linux you had. But do not remove /EFI/Microsoft in ESP - efi system partition. Uninstall Ubuntu from menu, Really UEFI boot menu askubuntu.com/questions/63610/… &
    – oldfred
    Jul 14, 2020 at 18:50
  • Here is my answer on stackoverflow. stackoverflow.com/a/68972762/10660507 Aug 29, 2021 at 12:14
  • Just follow the steps given in this stack overflow answer by me. stackoverflow.com/a/68972762/10660507 Aug 29, 2021 at 12:15

2 Answers 2

1
1

If you are on windows then first delete the partition where ubuntu is installed from disk management. For a detailed solution, Just follow the steps given in this stack overflow answer by me. https://stackoverflow.com/a/68972762/10660507

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.