Recover deleted files on Ubuntu

TestDisk is powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy.

TestDisk can:
  • Fix partition table, recover deleted partition
  • Recover FAT32 boot sector from its backup
  • Rebuild FAT12/FAT16/FAT32 boot sector
  • Fix FAT tables
  • Rebuild NTFS boot sector
  • Recover NTFS boot sector from its backup
  • Fix MFT using MFT mirror
  • Locate ext2/ext3/ext4 Backup SuperBlock
  • Undelete files from FAT, exFAT, NTFS and ext2 filesystem
  • Copy files from deleted FAT, exFAT, NTFS and ext2/ext3/ext4 partitions.
Operating System:
  • DOS (either real or in a Windows 9x DOS-box),
  • Windows (NT4, 2000, XP, 2003, Vista, 2008, Windows 7 (x86 & x64),
  • Linux,
  • FreeBSD, NetBSD, OpenBSD,
  • SunOS and
  • MacOS X

Tool Used : Test Disk
OS Used : Ubuntu 12.10 64-bit

Downloading and Installing TestDisk:

Download the testdisk tool for linux from

I have downloaded testdisk zip file to desktop

     Extracting the testdisk zip file to desktop
Contents of the Testdisk folder

We are going to recovery this folder which we going to delete it

Browse through Testdisk folder in Terminal.

$ cd /home/superstar/Desktop/testdisk-6.14-WIP/

Use ./testdisk_static to start TestDisk. 

$ ~/Desktop/testdisk-6.14-WIP$ ./testdisk_static

Testdisk is Started

Select Create to create log files.

TestDisk Error

The Testdisk error is due to root permissions.

Restart Testdisk as root in Terminal and enter Password.

$ ~/Desktop/testdisk-6.14-WIP$ sudo ./testdisk_static

Disk Selection

Select the appropriate disk where your files need to be recovered, and select proceed.

Check whether the disk capacity is correctly detected.

Selecting the partition

Most of the time the partition is auto detected by Testdisk.

Recover option for Analysing disk 

Selecting Advanced for looping through filesystem 

 Selecting the partition

After selecting the partition select list to browse through file system.

 Browsing through file system

 Browsing through file system

  Browsing through file system

  Browsing through file system

  Browsing through file system where the files deleted

The deleted files will be shown in red color.

 Selecting the deleted folder t3-1.1.0

Press c to copy the selected files/folders.

  Browsing through file system where the copied files to be saved

 Select c to save the copied files, when the destination is correct

Here we are saving the recovered files in desktop.

The Home folder on the desktop is where the recovered files are saved

Browsing through the home folder where the recovered files are saved

The t3-1.1.0 folder which we deleted is been recovered.

This same procedure is used to recover files in windows and other operating systems.


Post a Comment


Flickr Photostream

Twitter Updates