sg_write_same: 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_write_same - 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_write_same - from package: sg3-utils

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