Linux command
photorec 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo photorec /dev/sdb
Example
sudo photorec [path/to/image.dd]
Example
sudo photorec /log /d [path/to/recovery] /dev/sdb
说明
photorec recovers deleted files from hard disks, memory cards, and other storage media by scanning for file signatures (file carving). It ignores the filesystem and works even on severely damaged or reformatted media. The tool recognizes over 480 file formats including images, videos, documents, and archives. It operates in a text-based interactive mode, guiding users through partition selection and recovery options.
参数
- /log
- Create a photorec.log file
- /debug
- Add debug information to log
- /d _directory_
- Destination directory for recovered files
FAQ
What is the photorec command used for?
photorec recovers deleted files from hard disks, memory cards, and other storage media by scanning for file signatures (file carving). It ignores the filesystem and works even on severely damaged or reformatted media. The tool recognizes over 480 file formats including images, videos, documents, and archives. It operates in a text-based interactive mode, guiding users through partition selection and recovery options.
How do I run a basic photorec example?
Run `sudo photorec /dev/sdb` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does /log do in photorec?
Create a photorec.log file