数字取证中的磁盘镜像与错误处理
1. 取证工具的错误处理
在数字取证过程中,磁盘可能存在错误,不同的取证工具对错误的处理和报告方式各有不同。以下是几种常见取证工具的错误处理情况:
1.1 dcfldd
当 dcfldd 工具遇到磁盘错误时,会将错误的位置(块偏移)报告到标准输出,并记录到指定的文件中。例如:
# dcfldd if=/dev/mapper/errdisk of=errdisk.raw conv=noerror,sync errlog=error.log # cat error.log dcfldd:/dev/mapper/errdisk: Input/output error (null)+15 records in (null)+16 records out dcfldd:/dev/mapper/errdisk: Input/output error (null)+29 records in (null)+32 records out (null)+62496 records in (null)+62501 records out不过,在 Debian Linux 下测试 dcfldd 时遇到了一些问题,即使指定了 512 字节的块大小,填充使用的块大小仍保持为 4K(dd 也有相同的行为)。在某些错误情况下,dcfldd 会进入无限循环,需要手动终止。
1.2 dc3dd
dc3dd 工具会提供非常详细的错误概述。错误会发送到标准输出,并保存到指定的日志文件中。示例如下:
<