mkfs.ext4dev: 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/mkfs.ext4dev - from package: e2fsprogs

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

On Debian possible default full paths are:

/sbin/mkfs.ext4dev - from package: e2fsprogs

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