Recover deleted files in linux with Photorec
PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures (thus, its ‘Photo Recovery’ name) from digital camera memory. PhotoRec ignores the filesystem and goes after the underlying data, so it will still work even if your media’s filesystem has been severely damaged or re-formatted.
PhotoRec runs under
- Windows NT 4/2000/XP/2003/Vista
- FreeBSD, NetBSD, OpenBSD
- Sun Solaris
- Mac OS X
1- Photorec installation (Linux) :
To install Photorec on ubuntu simply type :
sudo apt-get install testdisk
For fedora/CetOS :
yum install testdisk
For other linux distribution please visit the download page of Photorec
2- Recover deleted file usingPhotorec :
For example, Let`s assume that i deleted accidently a photo( unixmen.jpg) from a partition with filesystem NTFS ,to recover the deleted photo i will have to follow the steps bellow as described on the screenshots.
First, open the terminal and type :
Shoose your hard disk
Choose intel and type enter
Choose the partition from where you deleted the file, you can set File Opt to choose the file extension you want to recover (see next screenshot)
choose type of deleted file extension, in my case is a photo with extension .jpg and then type enter (you can select extension by using space in your keyboard)
Now choose the type of the filesystem, in my case is a NTFS (shared partition) so i will choose Other.
You will got a message if you want to save the recovred file on your home directory , in my case is /home/zinovsky type yes and then enter
Now you have to select [free] if you diden`t write the the partition after deleting the file, otherwise choose [whole ]
Now photorec start to recover, the operation will take some time so be patient.
When the program will finish recovering, go and check the folder where the file will be recovred, your document or photo will be there :).
Important (From the website) :
For more safety, PhotoRec uses read-only access to handle the drive or memory support you are about to recover lost data from. Important: As soon as a pic or file is accidentally deleted, or you discover any missing, do NOT save any more pics or files to that memory device or hard disk drive; otherwise you may overwrite your lost data. This means that even using PhotoRec, you must not choose to write the recovered files to the same partition they were stored on.
Like us on Facebook
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update : Canonical has released security updates for Ubuntu 12.04 LTS and advices to update your system as so...0 comments |
- TeamViewer 9 Final Has Been Released! : TeamViewer is a commercial all-in-one software that can be used for remote control, desktop sharing,...0 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint : Tor, The Onion Router, is a network of Virtual Tunnels that allows users to communicate securely and...1 comment |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- TeamViewer 9 Final Has Been Released!
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6
- Install LibreOffice 4.1.3 in Elementary OS ‘Luna’
- How To Install Simple Scan in Crunchbang ‘Waldorf’
- Selene Media Encoder: Convert Audio, Video Files To Most Popular Formats
- Linux Kernel 3.12.2 Is Available For Download! Install / Upgrade Instructions
- CentOS 6.5 Has Been Officially Released!
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .