I had to install windows alongside endeavour and during that process i accidentally deleted the boot partition of linux. Now when i restart my pc, it just stays at the splash screen. I had to manually go to boot menu and select the windows boot manager or the other option “yes”. Both of them boote into windows directly. I cannot access endeavour os anymore.
How do i restore grub bootloader and the os selection screen to come up automatically without having to go to boot menu everytime?
My root file system is is of btrfs with timeshift snapshots enabled.
In addition to @flyingcakes post, perhaps if you could boot from your live usb and post the output of the following commands, we would have a better picture of your setup:
sudo parted -l
efibootmgr -v
In case of UEFI system, and if you by this mean that you deleted the EFI system partiton of your EnOS and now you have a new one, then you would need to edit your /etc/fstab an change the UUID of your EFI to match that of the new partition.
Also for chrooting into a system on BTRFS the following post by @dalto should give you some idea:
I mean everything in my /dev/sda1 partition, which was configured with boot flag and /boot/efi as mount point, was deleted (not the partition but the contents of it).
Alright, then the solution is as mentioned before in the thread to mount your root/system and efi partitions, chroot into your system and re-install the booyloader.
I am not sure how an elementary live usb would work in this situation.
I would make a bootable EnOS/Arch live usb and do the following: