If you use computers extensively there is a good chance that eventually you will be faced with a situation involving data loss. In cases where the data is important, you may be forced to attempt a recovery. In addition to relying on backups that you have taken to protect your system, there are a variety of data recovery tools available that can help you resolve the issue.
What is TestDisk?
TestDisk is a freeware data recovery tool developed and maintained by Christophe Grenier. It is fully Open-Source software and is distributed under the terms of the GNU General Public License. The application’s main purpose is to recover lost disk partitions and fix bootable disks that are no longer booting correctly. You can also use TestDisk to generate information concerning a corrupted drive which can be used for troubleshooting by technical support specialists.
A companion program called PhotoRec is more suited to recovering individual files, although that can be accomplished with TestDisk. It is included as a separate application in the TestDisk download.
One of the strengths of TestDisk is the wide range of filesystems that are recognized by the tool. It can recover lost partitions that employ these diverse filesystems on the Windows, Mac, Unix and Linux platforms. The software also recognizes multiple disk partitioning schemes including:
- Intel Partition Table (master boot record);
- Apple Partition Map;
- Sun Solaris Slice;
- GUID Partition Table.
Pros and Cons of TestDisk
Let’s take a closer look at the features of this data recovery software and highlight some of its pros and cons.
How to Download TestDisk
TestDisk and PhotoRec can both be downloaded from this site. There are a number of different downloads for various operating systems. Downloading the program should be fairly straightforward based on the OS that you are using.
For this article, the software was downloaded to a MacBook Air running macOS Mojave 10.14.5.
- Obtain TestDisk for the Mac. Clicking on the big green button offering TestDisk 7.1 resulted in a file named
testdisk-7.1-WIP.mac_intel.tar.bz2being saved to my Mac’s download folder.
- Click on the file to uncompress it which created a folder titled
testdisk-7.1-WIP. Expanding that folder revealed a number of files including the executable files for TestDisk and PhotoRec.
A note on running these programs on macOS computers. The first time you attempt to start the application you may need to modify your security settings if you are restricting apps from unknown developers from running. I had to perform this task for both TestDisk and PhotoRec, but only for their initial execution.
A Step-by-Step TestDisk Tutorial
We will perform this TestDisk tutorial using a MacBook Air circa 2015 running Mojave. The disk we will use to test the software on is a Wilk USB disk with a capacity of 16GB. The disk is partitioned into two 8GB partitions named, aptly enough,
Each partition had about 50% of its capacity used as I simply copied over the contents of my current Download folder to each partition so there was something to test. Then I put on my “bad user” hat and acted out a typical scenario that can lead to the need for data recovery software.
While trying to learn more about the Disk Utility application I “inadvertently” erased
partition2, losing close to 4GB of data in the process. Human error in action.
We will use TestDisk in an attempt to recover partition2 and the data it contained.
These are the steps used in this data recovery exercise:
- Start TestDisk.
"Create"to create a new log file.
- Enter your administrator’s password when prompted. When you are returned to the program you see a message indicating that there is no warranty with this freeware.
- Select the disk to be recovered. No partition on the disk can be mounted. In my case, I needed to go into Disk Utility and unmount the partitions.
- Select the partition table type. EFI GPT was pre-selected as TestDisk had detected that type of partition.
"Analyze"to see the disk structure.
- When the disk analysis is complete your disk structure is available for review.
- Perform a
"Quick Search"for the missing partition. This was unsuccessful.
- Follow-up with a
"Deeper Search"to find the missing partition.
- Select the partition that will be recovered and press
- Proceed with the recovery by following the prompts. As a result, your lost partition will be written to the source disk and you will be able to access it in Finder.
Despite having to refer to the TestDisk Guide webpage numerous times, I was eventually able to navigate through the command-line structure to perform the partition recovery. It was certainly not an enjoyable experience and I suspect that many users would have given up and searched for another alternative to fix their lost partition. Luckily, such an alternative exists.
Best TestDisk Alternative – Disk Drill
You may like the free command line tools TestDisk and PhotoRec for your data recovery needs. It certainly can be useful in certain situations. We believe that Disk Drill offers a superior solution for data recovery needs on macOS and Windows machines.
Here are some of Disk Drill’s features that led us to this conclusion
Recovering the Deleted Partition with Disk Drill
In comparison with my struggle attempting to recover the lost partition with TestDisk, the recovery process using Disk Drill was quick and painless. Here is the simple procedure that I followed.
- Download and install Disk Drill on my computer.
- Launch the app.
- Select the disk to be recovered from the list of disks displayed by the application.
"Recover"to start the scanning process.
- Review the recoverable files and select the files to be restored.
"Recover"again to recover the files.
As we saw, Testdisk can help you recover your lost data, and best of all, at zero cost. However, that comes with some caveats. Testdisk doesn’t come with a GUI. It’s a tool primarily for medium to advanced users, with options that might seem cryptic to novices and utterly non-existing “presentation”.
Long story short, TestDisk can get the job done. However, most people would be better off with a more modern and user-friendly option, like CleverFiles’ Disk Drill, EaseUS’ Data Recovery Wizard, or any of their peers.
Still, if your utmost priority is the cost of the recovery solution you’ll use to get your lost data back, it’s worth trying out.