Tuesday, November 1, 2011

Restore Data From Formatted HDD With TESTDISK

Did you accidentally reformat your hard drive?
Or you accidentally format the partitions on your hard drive?

To restore your data, it is possible to do is write back partition. Free tools that can be used is testdisk. Program can be downloaded here. This freeware can be used to write the partition with various specifications as follows:

DOS / Windows FAT12, FAT16 and FAT32
NTFS (Windows NT/2K/XP)
Linux Ext2 and Ext3
BeFS (BeOS)
BSD disklabel (FreeBSD / OpenBSD / NetBSD)
CramFS (Compressed File System)
HFS and HFS +, Hierarchical File System
JFS, IBM's Journaled File System
Linux Raid
Linux Swap (versions 1 and 2)
LVM and LVM2, Linux Logical Volume Manager
Netware NSS
ReiserFS 3.5, 3.6 and 4
Sun Solaris i386 disklabel
UFS and UFS2 (Sun / BSD / ...)
XFS, SGI's Journaled File System
To use TestDisk, things you should do is boot your computer. You can just use a linux live CD, or use traditional live usb with a flash.

To facilitate, for example you have a live CD boot Ubuntu receipts. Then, select the language and select the menu

"Try Ubuntu without any change to your computer".

After booting, open Terminal.

Login as root.

ubuntu@ubuntu:~$sudo su
root@ubuntu:/home/ubuntu#

TestDisk Copy the installer file to your computer, for example through the flash and extracts files. Because using ubuntu live CD, mount the flash was too itself.
Extract the files in my pendrive (CICA) to the folder / opt


root@ubuntu:/home/ubuntu#tar -xjf /media/CICA -C/opt

go to the folder / opt/testdisk-6.10/linux
then run testdisk_static


root@ubuntu:/home/ubuntu#cd /opt/testdisk-6.10/linux
root@ubuntu:/home/ubuntu#./testdisk_static

Choose  “Create…”

Then, select the device's hard drive, and "Proceed"


Select the partition type, eg "Intel"


Select "Analyse"


Then, select “Quick Search”

Then came the partitions that you created earlier. Select the partition, by pressing the left / right. Partition the selected green. For example, the partition which I will write again is the first and second partition ... Press enter

If you still have not found your partition, or you doubt whether that partition is the correct partition, you can search again by selecting "Deeper Search".

If already established, choose "Write"

Reboot your computer, and your partition will be read again ...

0 comments:

Post a Comment