Nov 12, 2009 1
Recovering GRUB2 after hard-drive upgrade
I upgraded to a 500GB hard-drive and installed windows 7 on it. I then moved my current ubuntu installation from the older HDD to the newer one on another partition, but of course there was no bootloader to load it. I had GRUB2 on older hard drive. I googled about how to recover GRUB2 but couldn’t find one. All I could find was solutions to fix corrupt Grub. So, I just reinstalled grub and then upgraded it to Grub2.
Here’s how to do it:
Boot into Ubuntu Live CD.
Mount the root disk (Disk on which Ubuntu is installed).
mkdir /media/root
mount /dev/sda7 /media/root
where /dev/sda7 is your disk.

