1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:22:09 +02:00

photorec, ddrescue: add page (#3625)

This commit is contained in:
jspickard 2019-12-06 08:56:04 -05:00 committed by Zlatan Vasović
parent 0bb2e25c70
commit 59185a7ec9
2 changed files with 25 additions and 0 deletions

12
pages/linux/ddrescue.md Normal file
View file

@ -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
pages/linux/photorec.md Normal file
View file

@ -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}}`