Re: how to "decode" SG_IO: bad/missing sense data?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 15-06-16 01:05 PM, Tom Yan wrote:
When I "ATA Secure Erase" a USB Flash Drive, I got:

SG_IO: bad/missing sense data, sb[]:  f0 00 01 00 50 40 00 0a 00 00 00
00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

While the erase seems to work without bricking the device (multiple
trials with shred and hexdump), this message still bothers me a bit.
So is there anyway I could "decode" it so that I can know what it
actually means?

Hi,
Install the sg3_utils package then copy that hex sequence and place
it after the sg_decode_sense command. In this case:

$ sg_decode_sense f0 00 01 00 50 40 00 0a 00 00 00 00 00 1d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 Fixed format, current;  Sense key: Recovered Error
 Additional sense: ATA pass through information available
  error=0x0, status=0x50, device=0x40, sector_count(7:0)=0x0
  extend=0, log_index=0x0, lba_high,mid,low(7:0)=0x0,0x0,0x0

So that ATA Secure Erase command is sending a SCSI error back
through the SAT mechanism. Check the SAT standard (at www.t10.org)
for details.

Doug Gilbert



--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux