有一个工具ddrescue
(注意,还有dd_rescue
一个具有几乎相同功能的不同程序)。它使用更熟悉的语法,单破折号表示短选项,双破折号表示长选项。从手册页:
-i, --input-position=<bytes>
starting position in input file [0]
-K, --skip-size=<bytes>
initial size to skip on read error [64 KiB]
-M, --retrim
mark all failed blocks as non-trimmed
-o, --output-position=<bytes>
starting position in output file [ipos]
Run Code Online (Sandbox Code Playgroud)
dcfldd是另一种 dd 替代方案。它没有解决OP关于输入/输出寻求灵活性的问题,但可能对通过谷歌搜索到达这里的其他人有用。
它基于 gnu dd,具有以下附加功能: