sg_wr_mode: 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_wr_mode - 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_wr_mode - from package: sg3-utils

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