Files
tldr/pages.zh/linux/ddrescue.md

12 lines
402 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ddrescue
> 数据恢复工具,用于从损坏的块设备中读取数据。
> 更多信息:<https://www.gnu.org/software/ddrescue/>.
- 创建设备的镜像,并生成日志文件:
`sudo ddrescue {{/dev/sdb}} {{path/to/image.dd}} {{path/to/log.txt}}`
- 将磁盘A克隆到磁盘B并生成日志文件
`sudo ddrescue --force --no-scrape {{/dev/sdX}} {{/dev/sdY}} {{path/to/log.txt}}`