grub-mkdevicemap: 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 Debian possible default full paths are:

/usr/sbin/grub-mkdevicemap - from package: grub-common

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