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

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

On Debian possible default full paths are:

/sbin/mkfs.ext4 - from package: e2fsprogs

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