Restore accidentally deleted files in PhotoRecLinux

Source: Internet
Author: User
Recover files accidentally deleted in PhotoRecLinux-general Linux technology-Linux technology and application information. For more information, see the following. If image files such as JPEG or HTML, PDF, ZIP, TXT, and office documents are accidentally deleted, you can use the software "PhotoRec" for restoration. The following describes how to use PhotoRec.

Note: If you use the PhotoRec tool to restore files, you must compare the differences between the disks before and after recovery. For example, if you want to restore files that are only installed on Linux's hard disk, KNOPPIX and other onmcm Linux are required when the plug-in hard disk is restored.

PhotoRec can be downloaded from, http://www.cgsecurity.org/wiki/photorec. Linux tar files or RPM files can be used (note ). The following describes how to use the RPM installation package file in Fedora Core 6 to restore a USB storage device formatted in FAT format.

Note: Since PhotoRec is designed for the disk partition restoration tool "TestDisk", its name is "testdisk-xxxx 」.

After downloading, install the software as root.

# Rpm-ihv testdisk-6.5-1.i386.rpm

Since PhotoRec is a software that uses command lines for operations, it is necessary to start the terminal for execution.

Start PhotoRec with root permission.

# Photorec

The disk device is connected. Select the file to be restored on that device, and then select [Proceed].

Select Disk/dev/sda (USB memory) here )」.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.atmarkit.co.jp/flinux/rensai/linuxtips/image/987_01.gif'); ">

Next, select the format of the restored disk partition (note ). Here, because you want to restore a USB device formatted as FAT, select [Intel].

Note: The disk partition formats such as FAT, NTFS, ext2/3, and HFS + correspond to each other and are selected.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.atmarkit.co.jp/flinux/rensai/linuxtips/image/987_02.gif'); ">

Next, select the partition to restore. In the [File Opt] at the bottom of the screen, you can select a File type to restore.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.atmarkit.co.jp/flinux/rensai/linuxtips/image/987_03.gif'); ">

Select [Search]. This screen indicates the file index recup_dir.x to be restored (note ). This index is a file made by executing the photorec command.

Note: The "x" of recup_dir.x is arranged from 1.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.atmarkit.co.jp/flinux/rensai/linuxtips/image/987_04.gif'); ">

Recup_dir.x save address selection

Press the [Y] key to start recovery.

The Recovery operation has been completed: "Recovery completed .」.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.atmarkit.co.jp/flinux/rensai/linuxtips/image/987_05.gif'); ">

Recovery completed

After recovery, select [Quit] to exit PhtoRec. The recovered file is a combination of several numbers in the recup_dir.x, and the file name is saved.

PhotoRec not only applies to HDD, USB, CD-ROM, and SD card, but also to other storage devices. Therefore, if most commonly used files are mistakenly operated, they can be used for restoration, except that they were originally created for photos.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.