sg_format: 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:

/usr/bin/sg_format - from package: sg3_utils

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

On Debian possible default full paths are:

/usr/bin/sg_format - from package: sg3-utils

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