• Issuing all 0's to a drive

    From rain_vvp@21:1/5 to All on Fri Oct 16 04:44:54 2015
    Hi,

    I am a newbie and want to know how can I issue SCSI_WRITE & SCSI_WRITE_SAME to the drive with all 0s to erase the contents on the drive. This is going to be a scsi command directly through the drive and not through the host application.

    Thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Baeuerle@21:1/5 to All on Fri Oct 16 10:41:03 2015
    rain_vvp wrote:

    I am a newbie and want to know how can I issue SCSI_WRITE &
    SCSI_WRITE_SAME to the drive with all 0s to erase the contents on the
    drive. This is going to be a scsi command directly through the drive
    and not through the host application.

    On Linux you can use the SCSI generic interface for this purpose.
    If you don't want to write the code yourself, look at the sg3_utils
    package. There are tools like sgm_dd(8) and sg_write_same(8) for this
    purpose.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)