我知道,在旧的 ATA 标准中有这样的可能性:“READ LONG”命令产生 LBA 扇区 + ECC 有效载荷。sg_read_long
在 linux 中支持,但该命令已经过时了很长时间,所以我并不感到惊讶,我的硬盘没有实现它。
root@ubuntu:~# sg_read_long --lba=2118229 /dev/sdc
sg_read_long: issue read long (10) to device /dev/sdc
xfer_len=520 (0x208), lba=2118229 (0x205255), correct=0
SCSI READ LONG (10) command not supported
root@ubuntu:~# sg_read_long -v --16 --lba=2118229 /dev/sdc
sg_read_long: issue read long (16) to device /dev/sdc
xfer_len=520 (0x208), lba=2118229 (0x205255), correct=0
Read Long (16) cmd: 9e 11 00 00 00 00 00 20 52 55 00 00 02 08 00 00
read long (16): Fixed …
Run Code Online (Sandbox Code Playgroud)