浏览代码

photorec, ddrescue: add page (#3625)

jspickard 5 年之前
父节点
当前提交
59185a7ec9
共有 2 个文件被更改,包括 25 次插入0 次删除
  1. 12 0
      pages/linux/ddrescue.md
  2. 13 0
      pages/linux/photorec.md

+ 12 - 0
pages/linux/ddrescue.md

@@ -0,0 +1,12 @@
+# ddrescue
+
+> Data recovery tool that reads data from damaged block devices.
+> More information: <https://www.gnu.org/software/ddrescue/>.
+
+- Take an image of a device, creating a log file:
+
+`sudo ddrescue {{/dev/sdb}} {{path/to/image.dd}} {{path/to/log.txt}}`
+
+- Clone Disk A to Disk B, creating a log file:
+
+`sudo ddrescue --force --no-scrape {{/dev/sda}} {{/dev/sdb}} {{path/to/log.txt}}`

+ 13 - 0
pages/linux/photorec.md

@@ -0,0 +1,13 @@
+# photorec
+
+> Deleted file recovery tool.
+> It is recommended to write recovered files to a disk separate to the one being recovered from.
+> More information: <https://www.cgsecurity.org/wiki/PhotoRec>.
+
+- Run PhotoRec on a specific device:
+
+`sudo photorec {{/dev/sdb}}`
+
+- Run PhotoRec on a disk image (image.dd):
+
+`sudo photorec {{path/to/image.dd}}`