mkfs.msdos: 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.msdos - from package: dosfstools

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

On Debian possible default full paths are:

/sbin/mkfs.msdos - from package: dosfstools

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