root@ubuntu:~# grub-install --root-directory=/media/sda7 /dev/sda
Installation finished. No error reported.
This is the contents of the device map ~/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.