Hi there,
You can give this a try:
1. At grub rescue> type root.
if
If it does not come up with any output which is quite rare
{
then the boot partition is gone or there is something terribly wrong with the boot partition. In that case you have use Ubuntu 11.04 live CD to re-create the boot partition. Just re-create the boot partition, use this documentation for reference:
https://help.ubuntu.com/community/Cr...onAfterInstall make sure you create it on the same partition as it was before and make sure that you use less space this time for creating boot partition just to make sure that you do not over write any existing partition boundries.
}
else
{
2. If it show you any output say hd(0,0) or something like that it means your boot partition does exist.
3. At grub rescue> type root (hd0,0) (I have taken this from above output if the above output says hd(0,1) then use root (hd0,1) ). In short you have to use the output from the above command accordingly.
So your command will at grub rescue> root (hd0,0)
4. Type linux /boot/vmlinuz and then hit a tab it should auto complete the line then put a space and type root=/dev/hda1 (Here I am just giving an example where the root partition is located. You should know where your / partition is located and you have to put it accordingly. Suppose your root partition is on /dev/sdb2 then you have to use root=/dev/sdb2)
So you above line should look like this at the end:
grub rescue> linux /boot/vmlinuz-kernelversion root=/dev/hda1 ro quiet splash
5. Type initrd /boot/initrd and then hit a tab it should auto complete the line and should look like this:
grub rescue> initrd /boot/initrd.img-kernelversion-generic
6. Type boot at grub rescue.
grub rescue> boot
}
The above mentioned command should complete successfully if the information related to boot partition and root partitions are provided correctly.