0

I have both Windows and Ubuntu on my machine with dual boot. Windows is on the SSD, and Ubuntu is on a normal hard drive. I've tried the most common solution online, which is booting from a Windows repair USB stick and typing bootrec.exe /fixmbr. But that doesn't work. I've read somewhere that that only works for adjacent Windows and Linux partitions. So, how should I uninstall Ubuntu without any traces?

1 Answers1

1
  1. set your ssd as the first boot option in the bios/uefi
  2. if it doesent automatically boot to windows use the windows repair usb stick to restore the windows boot loader. if you have an mbr installation:
bootrec /FixMbr
bootrec /FixBoot
bootrec /ScanOs
bootrec /RebuildBcd

for uefi use this guide if you are not sure try mbr first and if it fails try uefi method.

  1. delete tour linux partition using windows disk management(right click on your start menu and select disk management)

    (4.) OPTIONAL for efi installation only mount the efi partition as mentioned here and delete the ubuntu folder.

Nukleari
  • 43
  • 8
  • I already automatically boot to Windows as I have it as my first choice on the BIOS. So is it as simple as just deleting the Linux partition? – SlayerGames44 Aug 17 '19 at 23:45
  • yes, it as simple as just deleting the Linux partition. – Nukleari Aug 18 '19 at 09:10
  • I deleted the Linux partition, but there's a 512 MB EFI part in the way of me expanding my partition. I'm pretty sure it's just Dell junk that was installed when I installed Linux. – SlayerGames44 Aug 21 '19 at 23:42
  • Also I tried formatting the Linux partition I deleted and it gives an error message. – SlayerGames44 Aug 21 '19 at 23:51
  • The error is "not enough space on disk(s) to complete this operation". – SlayerGames44 Aug 22 '19 at 00:26
  • An Efi partition isnt dell junk, its a boot partition for uefi systems. Can you make a screenshot of your partitions so I can better understand your situation? – Nukleari Aug 22 '19 at 14:16
  • https://imgur.com/a/oIvz5gt – SlayerGames44 Aug 22 '19 at 21:14
  • Since you have another efi partition on the C drive this was most likely created by linux and unnecessary now. You can delete it. In case the system has any problems to boot after, you can use the windows installer to fix any boot problems. – Nukleari Aug 23 '19 at 00:15
  • Do you mean the D drive? There's only one EFI partition in the C drive and it's for Windows. Also I can't delete the partition at all, even using diskpart. – SlayerGames44 Aug 25 '19 at 21:04