Ubuntu Intrepid Ibex : How to repair GRUB Error 17

Recently, I had to upgrade my hard disk from 120GB to 250GB, with the help of Gparted Live CD. As it turns out, that my new hard drive can’t boot from my laptop and give me this horror message:

GRUB Error 17

So, with the help of “grub-install” tool, this is what I did:

1. Boot you system with any Ubuntu CD. In my case, I’m using Ubuntu 8.10 LiveCD.

2. Determine your hard disk device name. In my system, it’s /dev/sda

3. Determine your current boot type. In my system, my boot block is in MBR

4. Execute “grub-install” with the following syntax:

grub-install [OPTION] device name

in my system it would be like this:

sudo grub-install –recheck /dev/sda

Then reboot