While trying to install grub2 manually from a LIVEOS terminal. Windows got removed from Bios Boot option

Viewed 13

I was trying to dual boot Fedora 37 beta with windows 11. It always fails and shows "Failed to set new efi boot target". While I was on LIVEOS I executed some commands from this post [I was following first answer from this post][1] [1]: https://stackoverflow.com/questions/60861161/fedora-failed-to-set-new-efi-boot-target

. After that I came back to windows and deleted the partitions used for dual booting. And format my USB Flash drive and created another bootable media elementary os with Rufus. After that when I went to BIOS settings i saw windows got removed from Boot options. I can only see TS******(SSD where windows installed) and WD******(HDD). I'M unable to boot windows it shows Error: unknown file system Grub rescue. I can access my SSD and HDD from Liveos elementary 6.1 that i flashed to my USB drive. Those commamds messed up everything because of my fault. I was doing without knowledge. Now how can I get back to windows?? Commands that I have executed in LIVEOS terminal : # mount the new Fedora installation at /mnt sudo mount /dev/sda3 /mnt # sda3 is root partition sudo mount /dev/sda1 /mnt/boot/efi # sda1 is efi partition for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done

change the root to /mnt

sudo chroot /mnt

create grub2 configuration

sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

sudo reboot

0 Answers
Related