Remember to change the (hd0,5) param for your configuration, this line shows the grub loader where it can find the image on the physical disk. Because the partitions has not yet mounted we must give the physical address by saying the bootloader the hd0 and partition number 5. You can learn your linux partition number by looking at the similar line
title Ubuntu, kernel 2.6.12-9-386
in your grub config.