I installed Win8 and Ubuntu13.04 on my laptop, Today I repartition my hard drive on Win8. After that I can not boot my ubuntu system and it goes to "grub rescure" mode.
First use "ls" find the partition which Ubuntu was installed. In my case,
ls (hd0,gpt10)/boot
Then I fixed the problem by the next steps which I learned from website
sudo set root=(hd0,gpt10)
sudo set prefix=(hd0,gpt10)/boot/grub
insmod normal
normal
After that ,the system boot to Ubuntu system.
Then
sudo grub-update
sudo grub-install /dev/sda