Booting windows from Grub rescue

I'm trying to fix a friends Asus laptop with windows 10 and it did have Ubuntu installed.
Grub was playing up so we took the hdd out of the laptop and put it in my desktop (accidental booted of it once) and deleted all the partitions to do with Linux, hoping that it would now just boot windows as if Linux had never been installed.
But instead it went to the grub rescue command line. I have been following this guide to try fix it: https://superuser.com/questions/1013739/deleted-linux-partition-and-now-grub-rescue-shows-up
But the command "insmod ntfs" returns a partition not found error

extra Info:
When I type "ls" it gives me this:
"(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)"
and if I do "ls (hd0,gpt3)" or any other it give me this:
"(hd0,gpt3): Filesystem is unknown."
and I cant get into the bios, I have tried every combination of keys i can find on the internet but they all do nothing.

also i don't know if this sort of stuff needs to go under "Linux - Helpdesk" or "Linux - Other"

depends, you want to remove the boot loader I assume? then its a "How do I reinstall the windows boot loader" question, not Linux.

that said, you might want to have a look at ?q="Windows 10 grub command line"

try boot rescue disk. i had the same problem. i deleted a shitty os distro that was wasting space on my ssd improperly and i had 2 days of heavy research to get it fixed. while you can fix the pathing to point to the os, and which disk its stored on. theres a chance you'll mess it up even further. just boot into boot rescue disk and fix the windows boot loader. it should remove the grub boot loader and restore the windows boot loader. afterwhich you just have to point to the boot disk in bios

1 Like

I would like to fix grub so I can dual boot windows and Linux. I deleted Linux because grub was not working properly and I though that it would then start windows normal, then i could reinstall Linux.