I installed ubuntu over windows a while ago on a laptop. I haven't needed windows for the past 6 months but I finally need to boot into it. In grub, I selected the Windows 10 option, and windows went through its bootloader and eventually hung. On restarting the machine grub went into rescue mode, and I went to a live CD to rescue.
/boot is completely broken. I can't even rm it, here's what it looks like:
ls -l /
lrwxrwxrwx 1 root root 7 Dev 27 13:15 bin -> usr/bin
d????????? ? ? ? ? ? boot
....
rm /boot
gives me cannot remove 'boot': Bad message
. grub-install can't find the /boot directory to fix grub.
Is there any way out of this? Fortunately it looks like the rest of the filesystem is intact so worst case I can backup and restore, but I would like to avoid if possible