9

I was installing ubuntu 12.04 on my system. There were 4 partitions on my system and I selected one of the four partition for the installation and chose the option of resizing the partition. Initially my partition was of size 100+GB and i created another partition out of it of size 15GB (EXT4). Now the moment I changed this partition structure my original partition got lost along with its data and I am left with 50GB partition and 50GB unallocated free space.

Now the data that I have lost is meant a lot to me and I want to recover that data. So is there any way I can recover it? And I haven't checked "format" option while resizing the partition.

bain
  • 11,260
  • thanks for all the hints. I've had a similar issue and the above mentioned Testdisk utility did a great job for me, recovering exactly the state as it was before erasing the partition, thus I have lost no data. More precisely, I have: 1. booted from the Ubuntu-Rescue-Remix DVD (mentioned above) into live mode 2. used the testdisk utility (available right away, no need for internet connection and/or apt-get install testdisk). I have followed the steps from http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step –  Mar 14 '14 at 13:05
  • 1
    See also https://help.ubuntu.com/community/DataRecovery and further info by the author of Testdisc, Christoffe Grenier: http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step not to mention the ubuntu manpage for testdisk – methuzla Nov 24 '12 at 15:57
  • For the sake of completion, there's also an old thread at the Ubuntu Forum explaining how to recover deleted partitions using gpart. – Luís de Sousa Dec 10 '13 at 09:59
  • 3

2 Answers2

6

Warning: If you follow these instructions you must install testdisk on a different Ubuntu system than the one you're trying to recover (for example, you could install it in a live environment, or you could put the hard disk into another computer that has Ubuntu on it). If you install anything on a disk from which you wish to recover data, or save anything to it, it becomes far harder to recover anything because more data are overwritten.

You can try testdisk to recover it. I hope you can recover it, because you didn't formatted the space it. Only the partition table is changed.

Install it via Software center testdisk Install testdisk

or by using sudo apt-get install testdisk command in the terminal.

Then run it with sudo command, i.e sudo testdisk. Please Don't forget to read the manual of it. manpage for the testdisk command Manpage icon

Anwar
  • 76,649
3

You can use Ubuntu-Rescue-Remix

Ubuntu-Rescue-Remix provides a robust yet lean system for data recovery and forensics. No graphical interface is used; the live system can boot and function normally on machines with very little memory or processor power. Following Ubuntu's six-month release schedule, all the software is up-to-date, stable and supported.

Ubuntu-Rescue-Remix features a full command-line environment with the newest versions of the most powerful free/libre open-source data recovery software including GNU ddrescue, Photorec, The Sleuth Kit, Gnu-fdisk and Clamav.1

To download click Here

See this link for details about how to burn the ISO image to make a bootable CD.

1Source:Ubuntu Rescue Remix

Mitch
  • 107,631