How to recover lost files in linux with PhotoRec
Recover Lost Files OR Deleted Files with PhotoRec
This quick tutorial will teach you to recover your deleted files in minutes. When you delete a file from your disk, it's like were cutting only the link provided access to this file. If it went directly to see on the disk, the file would be found intact. Warning, the file remains "recoverable" when the operating system was not rewritten to new data on its location. Do not expect to find files very old. So just use software that will go "digging" the hard to find deleted files. I named PHOTORECOVERY.
Note: PHOTORECOVERY also works on Windows and Mac. You can find the archives for Windows and Mac OS on the official site.
PhotoRec is a data recovery program designed to recover lost images from digital camera memory card, hence the name Photo Recovery. It can also recover lost files many, such as video, documents and archives stored on a hard drive or a CD-ROM. PhotoRec ignores the filesystem and goes directly to the underlying data, so it should work even if the filesystem is severely damaged or formatted. PhotoRec is safe to use, it will never attempt to write to your hard drive or other storage medium that you want to retrieve. Recovered files are written to the disk drive where you run PhotoRec. PhotoRec software is totally free multi-platform distributed under the GNU General Public License . PhotoRec is an extension of the application TestDisk , which allows you to recover lost partitions on a wide variety of system files and render drives unmounted removable.
Installation and Getting Started
PhotoRec is a program designed to recover lost images on camera memory cards. Hence the name "Photo Recovery" (abbreviated as PhotoRec). PhotoRec But of course can recover files other than images such as video, text files, etc..
To install this program, nothing very complicated. Type this in console:
sudo apt-get install testdisk
Note: PHOTORECOVERY has no GUI, everything will then be in console.
To launch the program, open your favorite console and type this:
You have to enter this command in your terminal window.
Photorec can not be displayed because the window is too narrow. Just zoom in and see you then see a list of your hard drives:
Just select a disk drive where your files were deleted and press Enter.
Re: How to recover lost files in linux with PhotoRec
Finding lost files
Once the selected disk, Photorec will ask you which type is the partition:
Select [Intel] "if you use Windows or Linux.
cons If you use a Mac, select "[Mac]."
Once this is done, you will have to choose which partition Photorec will search for deleted files.
No, you selected the device (hard drive, USB, camera ...). Here's what appears on screen (you will not have the same score as me):
To access the options file, select File Opt next to options, you have that then this appears:
This is a list of all file formats that PhotoRec can recover . To not get unnecessary files, select only or the extension (s) that interest you. To "uncheck" an extension, when selected, press the right arrow.
Note: The extension list is very long, it does not stop at what appears on the screen. Remember to go until the end.
When you select which extensions you interested, please return to the previous screen with Quit and select Search to find files.
You will see this show:
If it's on a Linux partition that you search for files, select [EXT2/EXT3] , otherwise, take [ Other] .
Re: How to recover lost files in linux with PhotoRec
PhotoRec then asks whether to search only files in free disk space or it is necessary to search the entire disk for lost files. Normally, you have little chance of finding lost files in a space occupied hard disk. To speed up the search, you can leave the research done in the free areas.
PhotoRec will then ask you which directory it should place the files recovered. Select the directory you want and press Y to confirm.
PhotoRec then search all files deleted from the type (s) selected.
At the end of the process, you find one (or more, sometimes there are three) files with images that have been found.
Some additional Information
With the arrow keys, select the [Option] (bottom of the screen) and click OK.
You get this:
Paranoid : This option checks the files and saves only the whole files. The files are "broken" because other data have been rewritten over and will not be recovered.
Allow partial last cylinder : This option changes the way the disk geometry is determined. Do not touch it. The option Allow partial cylinder can change the way PhotoRec believes that the cylinders disk are arranged.
Keep corrupted files : backup files are corrupt or incomplete if you ever want to try to repair them with other methods such as Object-Zip-Fix .
xpert mode : allows to force the block size ("blocks" of Data download)
Low memory : do not enable this option if your system does not have much memory and may crash during file recovery.
- Windows NT 4/2000/XP/2003/Vista
- FreeBSD, NetBSD, OpenBSD
- Mac OS X
It can recover lost files from the following file system
- ext2/ext3 (filesystem)
As soon as it is missing a picture or a file or you have them destroyed by mistake, stop recording or any other picture file on the hard drive or memory card in question, otherwise you risk overwriting Lost. Especially when using Photorec, you should certainly not choose to store the recovered files on the partition where you extract.
|Tags: deleted files, lost files, photorec, recover|
|Thread Tools||Search this Thread|
|Similar Threads for: "How to recover lost files in linux with PhotoRec"|
|Thread||Thread Starter||Forum||Replies||Last Post|
|How can I recover lost files from ipod||rancelucifinil||Portable Devices||4||20-08-2010 05:12 PM|
|How to recover lost WPA network key?||Ocnoob||Networking & Security||5||24-02-2010 09:49 PM|
|Recover lost XP product key||NSA_CIA||Operating Systems||3||17-07-2009 12:43 PM|
|Mac OS X recover lost password||jesse||Tips & Tweaks||1||22-01-2009 09:58 PM|
|How can I recover lost data on hdd||Squibbit||Hardware Peripherals||3||11-11-2008 06:17 AM|