How can I recover my data after formatting ubuntu with ubuntu?

prayagupd

I blew up everything while installing ubuntu 13.04 in a machine with ubuntu 12.04 installed in it. I erased the whole data accidentally. I had a separate space called backup in older OS.

Having ubuntu 13.04 currently installed, I want my previous data with ubuntu 12.04 back. I came through How can I recover my data after replacing Windows with Ubuntu? [duplicate], but in my case it's ubuntu 13 replaced by ubuntu 12.

In a live mode of ubuntu 13.04, I downloaded and run testdisk.

STEP 1 : I proceeded with a media(/dev/sda) from list

Select a media (use Arrow keys, then press Enter):
>Disk /dev/sda - 640 GB / 596 GiB - WDC WD6400BEVT-22A0RT0
 Disk /dev/sdb - 4022 MB / 3835 MiB - SanDisk U3 Cruzer Micro

STEP 2 : Then I selected Intel as partition and then Analyse category

STEP 3 : I only see following partitions

Disk /dev/sda - 640 GB / 596 GiB - CHS 77825 255 63
Current partition structure:
 Partition                  Start        End    Size in sectors

 1 * Linux                    0  32 33 77345  77 44 1242550272
 2 E extended             77345 110 12 77825  70  5    7708674
 5 L Linux Swap           77345 110 14 77825  70  5    7708672

STEP 4 : I chose to go Quick search

Disk /dev/sda - 640 GB / 596 GiB - CHS 77825 255 63
 Partition               Start        End    Size in sectors
>* Linux                    0  32 33 77345  77 44 1242550272
 P Linux Swap           77345 110 14 77825  70  5    7708672

STEP 5 : In first partition of the list (Linux), I only see currently installed files. (As 'm looking for older backup folder there.)

>drwxr-xr-x     0     0      4096 15-Mar-2014 23:59 .
 drwxr-xr-x     0     0      4096 15-Mar-2014 23:59 ..
 drwx------     0     0     16384 15-Mar-2014 23:55 lost+found
 drwxr-xr-x     0     0     12288 18-Mar-2014 22:59 etc
 drwxr-xr-x     0     0      4096 18-Mar-2014 22:41 media
 drwxr-xr-x     0     0      4096 16-Mar-2014 00:01 bin
 drwxr-xr-x     0     0      4096 16-Mar-2014 00:02 boot
 drwxr-xr-x     0     0      4096 24-Apr-2013 22:51 dev
 drwxr-xr-x     0     0      4096 15-Mar-2014 23:58 home
 drwxr-xr-x     0     0      4096 16-Mar-2014 00:01 lib
 drwxr-xr-x     0     0      4096 24-Apr-2013 22:47 lib64
 drwxr-xr-x     0     0      4096 19-Apr-2013 14:48 mnt
 drwxr-xr-x     0     0      4096 24-Apr-2013 22:46 opt
 drwxr-xr-x     0     0      4096 19-Apr-2013 14:48 proc
 drwx------     0     0      4096 16-Mar-2014 00:11 root
 drwxr-xr-x     0     0      4096 24-Apr-2013 22:51 run
 drwxr-xr-x     0     0     12288 16-Mar-2014 00:02 sbin
 drwxr-xr-x     0     0      4096 12-Jun-2012 00:21 selinux
 drwxr-xr-x     0     0      4096 24-Apr-2013 22:46 srv
 drwxr-xr-x     0     0      4096 30-Jan-2013 18:43 sys
 drwxrwxrwt     0     0      4096 18-Mar-2014 22:59 tmp
 drwxr-xr-x     0     0      4096 24-Apr-2013 22:46 usr
 drwxr-xr-x     0     0      4096 18-Mar-2014 22:59 var
 lrwxrwxrwx     0     0        29 15-Mar-2014 23:59 vmlinuz
 lrwxrwxrwx     0     0        33 15-Mar-2014 23:55 initrd.img.old
 lrwxrwxrwx     0     0        32 15-Mar-2014 23:59 initrd.img
 drwxr-xr-x     0     0      4096 15-Mar-2014 23:58 cdrom

STEP 6 : In a Deeper search,

Analyse Cylinder 2041/77824 02%
Linux                    0  32 33 77345  77 44 1242550272
Linux                    0  32 31    60 206 16     974848
Linux                    0  32 31    60 206 16     974848
Linux                    0  32 31    60 206 16     974848
Linux                    0  32 33 77345  77 44 1242550272
Linux                    0  32 33 77345  77 44 1242550272
Linux                    0  32 33 77345  77 44 1242550272
Linux                    0  32 33 77345  77 44 1242550272
Linux                   60 238 51 12218 100 42  195309568
Linux                    0  32 33 77345  77 44 1242550272
Linux                   60 238 51 12218 100 42  195309568
Linux                   60 238 51 12218 100 42  195309568
Linux                    0  32 33 77345  77 44 1242550272
Linux                    0  32 33 77345  77 44 1242550272
Linux                   60 238 51 12218 100 42  195309568
Linux                   60 238 51 12218 100 42  195309568
Linux                    0  32 33 77345  77 44 1242550272
Linux                   60 238 51 12218 100 42  195309568
Linux                  854  98 13   924 127 35    1126400
Linux                    0  32 33 77345  77 44 1242550272

When I press Enter, I get something like following in the list

Disk /dev/sda - 640 GB / 596 GiB - CHS 77825 255 63
Partition               Start        End    Size in sectors
>  Linux                    0  32 31    60 206 16     974848
Linux                    0  32 33 77345  77 44 1242550272
Linux                   60 238 51 12218 100 42  195309568
Linux                  854  98 13   924 127 35    1126400
Linux                 1596 214 27  1666 243 49    1126400
* Linux Swap           77345 110 14 77825  70  5    7708672

When I list files for the same partition, I get following message,

Linux                    0  32 31    60 206 16     974848
Can't open filesystem. Filesystem seems damaged.

I Want experienced answers.

References

Test Disk - How to Recover Files from a Faulty Hard-Drive

prayagupd

Finally, most of data is recovered properly using R-studio, a paid tool.

How it works

Why R-Studio

R-Data Recovery Studio Guide: How To Recover Data, youtube video

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I recover my Ubuntu OS after a failed upgrade?

How can I recover my Ubuntu 20.04 system after ubuntu-drivers-comon dist-upgrade?

Can I recover my Windows product key from Ubuntu?

Can I recover a Windows key after installing Ubuntu?

I reset Ubuntu on WSL with "Setting > Apps > Ubuntu > Reset". Now all my files in WSL filesystem is lost. How can I recover it?

How can I install Ubuntu on my Nexus 7 while being able to recover from an Nandroid backup?

I deleted a folder in Ubuntu, how can I recover it?

How to recover data after a failed Ubuntu update from 14.04 to 15.04

How do I recover ubuntu 12.04 after failed hardware update?

How to recover data I lost while installing Ubuntu 18.01?

How to recover my var folder in Ubuntu

How to recover (rescue) my Ubuntu (grub rescue>)?

ubuntu 14.04 not working after kernel update how can I save my ubuntu system?

How to recover after deleting Ubuntu partition?

How to recover a USB stick after Ubuntu installation?

How to recover NTFS partitions after Installing Ubuntu

Recover data in ubuntu

Can I use Ubuntu on my Mac to recover a FAT32 drive?

Can I save the working status of Ubuntu before reboot, and recover it after reboot?

How can I make a script autostart after I log into my computer on Ubuntu Mate 15.10?

how do i recover my data

How can I recover after Kate crashes?

How can I save my data in my HDD from a Ubuntu Flash Disk?

How to recover data & partition lost during installation of Ubuntu12.04LTS. please help .I have lost my work place data.URGENT

How to recover Ubuntu GUI?

Is it possible to recover data after reinstalling ubuntu on same drive

Recover Windows after reinstalling Ubuntu

How can I get my Airport Extreme network printer working after upgrading to (K)ubuntu 13.10?

How can I encrypt my home folder after a Ubuntu Server 13.10 install?