From: Edward S. <ejs...@gm...> - 2012-12-28 09:48:43
|
A bit more digging, and I think a different second command is needed to retrieve the ATA output registers with the PL3507, e.g. to do a SMART health check with 2 sg_raw commands: # sg_raw -v -v -r 512 /dev/sdb df 10 00 00 01 da 00 00 4f c2 a0 b0 06 7b ; sg_raw -v -v -r 512 /dev/sdb de 00 06 7b 00 00 open /dev/sdb with flags=0x802 cdb to send: df 10 00 00 01 da 00 00 4f c2 a0 b0 06 7b SCSI Status: Good No data received open /dev/sdb with flags=0x802 cdb to send: de 00 06 7b 00 00 SCSI Status: Good Received 12 bytes of data: 00 50 00 00 00 4f c2 a0 50 17 00 00 00 P...O..P.... |