mkfs.nilfs2: 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:

/sbin/mkfs.nilfs2 - from package: nilfs-tools

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