This are grub fixes to servers that are not booting up due to improper entries in the grub menu.
grub --batch <<END root (hd0,0) setup (hd0,0) quit END # sed -i 's/dev\/sda/dev\/hda/' /boot/grub/device.map sed -i 's/(hd0)/(hd0,0)/' /boot/grub/menu.lst |
The fix includes replacing (hd0) with (hd0,0) and /dev/sda with /dev/hda.