Re: Calcuting smartctl output to recovery bad-sector on FreeBSD ZFS
Dan Lukes <[email protected]> Sat, 13 Mar 2021 23:27:42 +0100
| Newsgroups | gmane.linux.utilities.smartmontools |
|---|---|
| Message-ID | <[email protected]> |
>> On 11.3.2021 13:44, Budi Janto wrote: >>> Mar 11 18:45:42 BEC-STG-P1 kernel: (ada2:ahcich5:0:0:0): >>> READ_FPDMA_QUEUED. ACB: 60 20 28 1f 90 40 b8 01 00 00 00 00 I should correct myself. The string above is printed by (FreeBSD, sys/cam/ata/ata_all.c, ata_cmd_sbuf() ): > sbuf_printf(sb, "%02x %02x %02x %02x " > "%02x %02x %02x %02x %02x %02x %02x %02x", > cmd->command, cmd->features, > cmd->lba_low, cmd->lba_mid, cmd->lba_high, cmd->device, > cmd->lba_low_exp, cmd->lba_mid_exp, cmd->lba_high_exp, > cmd->features_exp, cmd->sector_count, cmd->sector_count_exp); Address of sector is 0x01B8901F28 not 0x01B840901F as I misclaimed previously. Dan