Try this:
sudo -s mount /dev/md1 /target for f in proc sys dev dev/pts ; do mount --bind /$f /target/$f ; done chroot /target grub-install /dev/sda
I assumed here that /dev/md1 is your root partition; if it is not, change it accordingly.
Try this:
sudo -s
mount /dev/md1 /target
for f in proc sys dev dev/pts ; do mount --bind /$f /target/$f ; done
chroot /target
grub-install /dev/sda
I assumed here that /dev/md1 is your root partition; if it is not, change it accordingly.