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

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