sg_raw: 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_raw - 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_raw - from package: sg3-utils

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