In this article, we are going to learn How to install Testdisk data recovery in Ubuntu Linux. testdisk is an open-source easy recovery application used to recover corrupted data due to a virus, accidentally deleted data from harddisk. This application was initially developed by Christophe Grenier using the C programming language and released under GNU GPLv2 License. Testdisk data recovery is a nice lightweight application that comes with various applications mentioned below :
- Testdisk data recovery is a cross-platform application available for major operating systems i.e. Linux, Microsoft Windows, macOS.
- You can use this application to recover data over so many file systems like ext2, ext3, ext4, fat32, NTFS, and so on.
- Testdisk capable to recover deleted partition.
- In the case of the ext2, ext3 & ext4 file system this application recovers data by finding the superblocks.
- You can rebuild the windows corrupted file systems i.e. FAT32, NTFS.
Caution : This tutorial is just for learning purpose. We are not forcing any one to use/implement this application on any live server/systems and we are not Responsible for any data loss or corruption of any data/file system/partition/anything else during installation/implementation/configuration of this application by following this article.
Follow the below steps to install Testdisk data recovery in Ubuntu Linux – A Easyrecovery tool for Linux:
Before starting the installation of the Testdisk data recovery application let’s update the packages & repositories of Ubuntu Linux using the below command.
itsmarttricks@ubuntu:~$ sudo apt-get update # Update Packages & Repositories Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease Reading package lists... Done
After the update the packages & repositories now we are ready to install the Testdisk Easyrecovery application. To install so we don’t have to install any 3rd party PPA repository as it’s a part of the default repository of Ubuntu Linux. So to install the same use the below command.
itsmarttricks@ubuntu:~$ sudo apt-get install testdisk # Install the Testdisk data recovery Package Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: testdisk 0 upgraded, 1 newly installed, 0 to remove and 440 not upgraded. Need to get 324 kB of archives. After this operation, 1,241 kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 testdisk amd64 7.0-1 [324 kB] Fetched 324 kB in 1s (179 kB/s) Selecting previously unselected package testdisk. (Reading database ... 174262 files and directories currently installed.) Preparing to unpack .../testdisk_7.0-1_amd64.deb ... Unpacking testdisk (7.0-1) ... Processing triggers for man-db (2.7.5-1) ... Setting up testdisk (7.0-1) ...
As you can see above we have successfully installed the Testdisk data recovery package. To confirm the same refer the below command.
itsmarttricks@ubuntu:~$ sudo dpkg -l testdisk # Confirm the installed Package Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-====================================-=======================-=======================-============================================================================= ii testdisk 7.0-1 amd64 Partition scanner and disk recovery tool, and PhotoRec file recovery tool
Now to open the application just type the command testdisk on the shell prompt. Refer to the command below.
itsmarttricks@ubuntu:~$ testdisk # Open the Testdisk Easyrecovery application
To uninstall the Testdisk data recovery application use the below command.
itsmarttricks@ubuntu:~$ sudo dpkg -r testdisk # Uninstall the Testdisk Easyrecovery application (Reading database ... 174482 files and directories currently installed.) Removing testdisk (7.0-1) ... Processing triggers for man-db (2.7.5-1) ...
Also Read – How to Recover Data from a SQL Server Temporal Table
That’s all, In this article, we have explained the How to Install Testdisk Data Recovery In Ubuntu Linux– A Best Easyrecovery Tool For Linux. I hope you enjoy this article. If you like this article, then just share it. If you have any questions about this article, please comment.