Tried to delete some files and used something close to the following command.
rm -r ./*
Unfortunately, the Ubuntu crashed instantaneously. Did a forced reboot and it showed the GRUB RESCUE. Followed this tutorial but the (hd0,gptX)/boot directory was without files.
So I booted through a flash drive, and tried to run BootRepair. It gave the message
GPT detected. Please create a BIOS-Boot partition (>1MB, unformatted filesystem, bios_grub flag). This can be performed via tools such as Gparted. Then try again.
Then, created the partition with GParted, unformatted with the flag and gave the same error.
Tried another tutorial and it failed in the following command:
sudo chmod /mnt chroot: failed to run command ‘/bin/bash’: No such file or directory
So the bash is missing and I have no idea how to fix it. Any ideas?