I need some help with grub bootloader. I have ubuntu installed and Windows 10, Grub used to load automatically but I messed some partitions and now it is not (automatically boots into windows). I have booted from flash and I can see my files are there partitions, the 457Gb is the ubuntu and the 230Gb is the windows (not sure what the third one is from image). Anyway I would like to restore grub (so I can manually choose which OS to load). I tried
fdisk -l
sudo update-grub
but got this error /usr/sbin/grub-probe: error: failed to get canonical path of
/cow'.`
terminal ubuntu, I really hope there is a solution for this withot me losing the data (specially the data on ubuntu)