grub-md5-crypt: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/sbin/grub-md5-crypt - from package: grub

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/sbin/grub-md5-crypt - from package: grub-legacy

You may install the required package with command apt-get install {package}
Error in other languages:
grub-md5-crypt: bevel nie gevind nie
grub-md5-crypt: comandă negăsită
grub-md5-crypt: comando não encontrado
grub-md5-crypt: commande introuvable
grub-md5-crypt: command not found
grub-md5-crypt: käsku ei ole
grub-md5-crypt: không tìm thấy lệnh
grub-md5-crypt: komanda nerasta
grub-md5-crypt: Kommando nicht gefunden.
grub-md5-crypt: kommandot finns inte
grub-md5-crypt: komut yok
grub-md5-crypt: nie znaleziono polecenia
grub-md5-crypt: níor aimsíodh an t-ordú
grub-md5-crypt: no se encontró la orden
grub-md5-crypt: no s'ha trobat l'ordre
grub-md5-crypt: opdracht niet gevonden
grub-md5-crypt: parancs nem található
grub-md5-crypt: perintah tidak ditemukan
grub-md5-crypt: príkaz nenájdený
grub-md5-crypt: příkaz nenalezen
grub-md5-crypt: команда не найдена
grub-md5-crypt: командата не е открита
grub-md5-crypt: 命令找不到
grub-md5-crypt: コマンドが見つかりません