This question already has an answer here:
I am unable to install testdisk in Ubuntu 13.10 from Live Disk.I am using USB drive to run ubuntu 13.10. I want to recover some data from Windows partition.
The testdisk package contains the testdisk tool. This tool can check and undelete partition information. It works with FAT12, FAT16, FAT32, EXT2, EXT3, BeFS, CramFS. Under MacOSX, if you are not root, TestDisk (ie testdisk-6.13/testdisk) will restart itself using sudo after confirmation on your part. Under OS/2, TestDisk doesn't handle a physical device, only a disk image.
I am unable to install testdisk. It is a tar.bz2 file. I have extracted it in a directory.
Can someone help me with the steps to install the application.
CharoThis question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
You can install testdisk with apt-get
First, you have to enable the universe repository
Then update and install:
See https://help.ubuntu.com/community/Repositories/Ubuntu#Ubuntu_Software_Tab for additional information on repositories.
Today's Best Tech Deals
Picked by PCWorld's Editors
Top Deals On Great Products
Picked by Techconnect's Editors
If you're a fan of character-based interfaces--such as DOS--and free data recovery, you're going to love TestDisk and its companion utility, PhotoRec (a brother program included in the TestDisk download). Both free programs run in a DOS box or from a command line and test, report on, fix common disk boot problems, and recover files from damaged hard drives. All this is done at low level, below the operating system.
You don't install TestDisk and PhotoRec. You simply unzip the archive to the location from which you want to run it. This may be a bit confusing for users used to installing, but it makes the apps portable, which is far more important to the techier types who are the intended audience. Simply drag the files around on your flash drive and run them from there. Being portable also makes these utilities suitable for inclusion on boot discs. Though character-based, TestDisk and PhotoRec are just as easy to use as a GUI-based program. The options are logically laid out, the language readily understandable for anyone comfortable with command-line utilities, and you simply cursor up and down, right and left to navigate. The way the cursor control is facilitated to accommodate two functions per page is actually quite clever.
I ran both programs through their paces and they worked quite well. They accurately reported the types of drives I had attached to my system and recovered all the deleted files I threw at them--regardless of an existing partition or not. There were some misfires in the recognition, but there are in every recovery program I've ever used. But I'm definitely going to give both TestDisk and PhotoRec a long hard look in future repair operations. I like character-based utilities.
Perform low-level disk repair and file recovery--from a command prompt or DOS box--with this handy pair of utilities.