This question already has an answer here:
- Failed to get canonical path of /cow 5 answers
I'm trying to fix my grub but I can't manage to do it alone apparently...
I'm using a dual boot ubuntu 14.04 and windows7. I needed to shrink the partition size of the windows and used easyus for that. Problem, it apparently shot the Grub when shrinking the partition...
I can't boot any session anymore (unknown filesystem error which left me with a grub rescue prompt)
I tried to boot on a live cd (v14.04) to fix the grub using these lines:
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt /dev/sda Installing for i386-pc platform. Installation finished. No error reported.
But then the update doesn't pass:
ubuntu@ubuntu:~$ sudo update-grub2 /usr/sbin/grub-probe: error: failed to get canonical path of `/cow'
I tried this
sudo mount /dev/sda1 /mnt sudo chroot /mnt sudo update-grub2
but got the same response...
ubuntu@ubuntu:~$ df Filesystem 1K-blocks Used Available Use% Mounted on udev 16422596 8 16422588 1% /dev tmpfs 3286932 1552 3285380 1% /run /dev/sdd1 31113360 3208464 27904896 11% /cdrom /dev/loop0 1031296 1031296 0 100% /rofs /cow 16434640 73072 16361568 1% /