0

I'm struck in a terrible terrible situation. PLEASE help me out here !!

Story

I have an Acer Nitro(intel i5 8th gen cpu) dual booted with Windows 10 and ubuntu 20.04. I have 2 disk drives- one is 128GB SSD and other is 1TB HDD. My windows was installed on the SSD with my other stuff on the HDD.My ubuntu was installed on a 300 GB partition in my HDD.At this time, both windows and ubuntu were working fine.

I decided to remove ubuntu, so I deleted the 300GB volume of ubuntu from the windows disk manager(didn't remove grub). When I restarted the computer, it directly booted on to a grub terminal where I wrote ls , found the location of my windows bootmgf.efi file. Then wrote chainloader <path to efi file>;boot. At this point it booted my system to windows but when i restarted, it again went back to the grub terminal. To solve this I followed some commands from the internet and ran them in the windows command prompt in 'troubleshoot windows mode' (with that blue screen). At this point, I did some mistake I DONT KNOW WHAT and now when i restarted my PC, it said "NO Startup application found" or something like that i.e no OS found.

I could still enter the BIOS mode though and saw that my drives were being detected.

After this I put back the pendrive I used to install ubuntu, installed ubuntu. Now here in ubuntu, I can see the disk space being used by my C drive that it used to and all the stuff is present in my D drive(which was on windows). But now whenver I restart, it automatically opens ubuntu. How can I recover my windows back.

EDIT I flashed the windows10 ISO image on a USB drive. Now how can I recover my previous windows ?

6
  • 2
    You will need to boot windows installation media in rescue mode and try to do a boot repair.
    – user10489
    Jun 13, 2021 at 15:29
  • How can I do that ? Jun 13, 2021 at 15:43
  • Have you tried the EFI menu (some function key at power-up) to select a device or Os to boot? Select Windows. Then get ubuntu/grub out of the boot list,or put Windows before ubuntu in the list.
    – ubfan1
    Jun 13, 2021 at 16:08
  • @ubfan1 I'm really sorry but I'm very new to all this. Are you asking me if I opened the BIOS mode at the startup? If yes, I did. I navigated to boot section but only Ubuntu is available there Jun 13, 2021 at 16:24
  • Since your question is how to restore Windows after it is not here, you need to go to Superuser - since you have Win10 on a USB image, you now need to seek Windows support, and that's not an Ubuntu issue.
    – Thomas Ward
    Jun 13, 2021 at 17:03

1 Answer 1

0

So the problem was that I had accidentally deleted the windows EFI modules from the first partition, so although, all my windows data was intact, grub wasn't able to boot windows.

Solution was as suggested by everyone - I plugged in the Windows USB installation media, went on to 'fix bootup' option and after that my windows started working. At this point, the scenario changed to 'Installing Windows after ubuntu', so the boot loader control was given to the windows bootloader instead of grub. I opened ubuntu using bios, deleted the UBUNTU directory from the /boot/efi/ partition, restarted, entered into windows automatically and then removed the ubuntu partitions.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .