mtdinfo: 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/mtdinfo - from package: mtd-utils

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