Yesterday I had to install a Windows with its Grub override.
Well, it's not the first time I had to fix Grub, so I used LiveCD, mounted the root partition (I don't have boot, just
home) and ran
grub-install --root-directory=/mnt/ /dev/sda. However, it didn't work.
After Googling a while I found a tutorial in which instead of just mounting the Linux partition, he also did
mount --bind /mnt/dev /dev and
mount --bind /mnt/proc /proc/. After that
/mnt and then installed Grub, and using this method, it worked.
What are the
mount --bind commands for? I'm familiar with the usage of
--bind used (man page) but I do not know why it was used on this example.