Un-delete partition

9 views
Skip to first unread message

Elon G. ("Matt") Matthews

unread,
Aug 11, 2011, 11:04:19 AM8/11/11
to linuxus...@googlegroups.com
In the process of showing off to my grandson I was installing Ubuntu
on his laptop and repartitioned his hard drive, as I have done several
times before. However, this time I had either a finger check or a
brain cramp and (using gparted) deleted his Windows 7 ntfs partition
where all of his personal files are located. I am not a hero any
more! Since the partition has not been accessed since the deletion I
have to believe that the original information is still there. Can
anyone recommend a utility that might recover the partition at least
to the point where I can retrieve the personal files? In order of
importance I need a utility that: 1. recovers the files, 2. runs as a
bootable standalone utility or under Ubuntu, 3. is free or of minimal
cost, 4. makes me a hero.


Any and all help or suggestions will be deeply appreciated.

Matt

--
Elon G. ("Matt") Matthews
4263 Vega Course
Liverpool, NY 13090
(315) 652-6256
Emat...@Gmail.com

Jeremiah Bess

unread,
Aug 11, 2011, 11:18:02 AM8/11/11
to linuxus...@googlegroups.com
Lesson to be learned: Backup before showing off. =) 

I used a program years ago (can't remember the name now), but it was on an existing NTFS partition. I am not sure how well any program will work on a partition formatted as something else. I searched for open source data recovery, and found http://www.cgsecurity.org/wiki/TestDisk. Worth a try. If it doesn't work how the disk is partitioned now, consider changing the partition type back to NTFS, and try it again. 

Good luck. Go spend some serious money on your grandson to reclaim your hero status!

Jeremiah E. Bess
Network Ninja, Penguin Geek, Father of four



--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to linuxus...@googlegroups.com
To unsubscribe, send email to linuxusersgro...@googlegroups.com
For more options, visit our group at http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or http://cdn.fsdev.net/List-Rules.pdf)

Daniel Eggleston

unread,
Aug 11, 2011, 11:46:09 AM8/11/11
to linuxus...@googlegroups.com
If you've not reformatted, you can use gpart to recover it:

http://oss.sgi.com/LDP/HOWTO/LILO-crash-rescue-HOWTO/disk_partition_rescue.html

Basically, gpart /dev/sda will auto detect all the partitions that may or may not be on sda (without partition table entries).  gpart -W /dev/sda /dev/sda will perform the detection & write out a new partition table with the detected entries.
--

           Daniel

Scott Vargovich

unread,
Aug 11, 2011, 12:17:47 PM8/11/11
to linuxus...@googlegroups.com
Having never done this, take my opinion for what it's worth.  Here is a link to a small list of Linux LiveCDs that are geared toward forensic recovery of deleted files:

http://www.livecdlist.com/purpose/forensics

Caution:  I wouldn't try any of these without getting opinions from others.  It would probably be very easy to make the info unrecoverable.
<><  Scott Vargovich  <><
------------------------------------------
OpenPGP Key ID: F8F5DC7E
------------------------------------------

Ken Muller

unread,
Aug 11, 2011, 11:08:38 AM8/11/11
to linuxus...@googlegroups.com
Question similar to this came up on another forum. Someone mentioned this - http://www.cgsecurity.org/wiki/TestDisk

I have never used it, so I can say whether it works or not.

cat.s

unread,
Aug 11, 2011, 11:23:20 AM8/11/11
to linuxus...@googlegroups.com
because i am Chinese, i always use DiskGeniusto rebuild the partition table . it's Chinese , and it's really a good helper.


Any software which can rebuild partition table can help you to solve this problem. Anyway ,I searched the Internet and find DiskGenius has it's English version.

the link is:http://www.diskgenius.net/ , I didn't verify that.

hope it can help u.

----- 原邮件 -----
发件人: "Elon G. ("Matt") Matthews" <emat...@gmail.com>
收件人: linuxus...@googlegroups.com
抄送:
发送日期: 2011年8月11日, 星期四, 下午 11:04
主题: [lug:17572] Un-delete partition

Matt

--

cat.s

unread,
Aug 11, 2011, 11:31:32 AM8/11/11
to linuxus...@googlegroups.com
I'm not sure why it's not free... but the Chinese version is free to download.

this program is not based on Linux , download a image and burn it to a CD is suggested.

----- 原邮件 -----
发件人: cat.s <llz9...@yahoo.com.cn>
收件人: "linuxus...@googlegroups.com" <linuxus...@googlegroups.com>
抄送:
发送日期: 2011年8月11日, 星期四, 下午 11:23
主题: 回复: [lug:17572] Un-delete partition

Andy Linde

unread,
Aug 11, 2011, 11:46:44 AM8/11/11
to linuxus...@googlegroups.com

TestDisk is good, but it's SLOW, because it's recovering *every* file from the partition (you can filter by extension, but not folder), and it recovers everything to a stack of folders--the original file names and hierarchy are lost.
It'll recover anything you throw at it, but it's messy.

From within windows (AFAIK, only), Piriform's recuva works really well, and lets you restore by folder/file name. It isn't quite as through as TestDisk, but if you have access to a windows box you may want to give that a look.

Neil

unread,
Aug 12, 2011, 1:30:56 AM8/12/11
to linuxus...@googlegroups.com
gparted (or is it now partedmagic, or something?) and TestDisk are both on UBCD:

http://www.ultimatebootcd.com/

burn it to a CD, boot it up, choose your weapon.

Ematthe1

unread,
Aug 28, 2011, 9:31:03 AM8/28/11
to Linux Users Group
To follow up on my undelete problem: I used TestDisk which is on the
Knoppix boot disk. It does an amazing job of discovering partitions
as they existed, and can reset the partition to a usable primary
partition where I could recover the data. I suspect that with a
little more effort I could have made the partition bootable and
recovered the OS, but I didn't need to go that far. One quirk with
TestDisk is that it seems to reset all of the partitions to whatever
is shown when the write is done. I expected it to only reset the one
partition that I changed, but it deleted all of the other
partitions. That was not a problem since it could also reset them to
available. It is a good tool to keep around for heavy-handed guys
like me. Thanks for the help and suggestions. Matt

On Aug 11, 11:23 am, "cat.s" <llz916...@yahoo.com.cn> wrote:
> because i am Chinese, i always use DiskGeniusto rebuild the partition table . it's Chinese , and it's really a good helper.
>
> Any software which can rebuild partition table can help you to solve this problem. Anyway ,I searched the Internet and find DiskGenius has it's English version.
>
> the link is:http://www.diskgenius.net/, I didn't verify that.
>
> hope it can help u.
>
> ----- 原邮件 -----
> 发件人: "Elon G. ("Matt") Matthews" <ematt...@gmail.com>
> 收件人: linuxus...@googlegroups.com
> 抄送:
> 发送日期: 2011年8月11日, 星期四, 下午 11:04
> 主题: [lug:17572] Un-delete partition
>
> In the process of showing off to my grandson I was installing Ubuntu
> on his laptop and repartitioned his hard drive, as I have done several
> times before.  However, this time I had either a finger check or a
> brain cramp and (using gparted) deleted his Windows 7 ntfs partition
> where all of his personal files are located.  I am not a hero any
> more!  Since the partition has not been accessed since the deletion I
> have to believe that the original information is still there.  Can
> anyone recommend a utility that might recover the partition at least
> to the point where I can retrieve the personal files?  In order of
> importance I need a utility that: 1. recovers the files, 2. runs as a
> bootable standalone utility or under Ubuntu, 3. is free or of minimal
> cost, 4. makes me a hero.
>
> Any and all help or suggestions will be deeply appreciated.
>
> Matt
>
> --
> Elon G. ("Matt") Matthews
> 4263 Vega Course
> Liverpool, NY 13090
> (315) 652-6256
> Ematt...@Gmail.com
>
> --
> You received this message because you are subscribed to the Linux Users Group.
> To post a message, send email to linuxus...@googlegroups.com
> To unsubscribe, send email to linuxusersgro...@googlegroups.com
> For more options, visit our group athttp://groups.google.com/group/linuxusersgroup

Jeremiah Bess

unread,
Aug 30, 2011, 8:10:19 AM8/30/11
to linuxus...@googlegroups.com
Awesome, thanks for the update!


Jeremiah E. Bess
Network Ninja, Penguin Geek, Father of four


2011/8/28 Ematthe1 <emat...@gmail.com>
For more options, visit our group at http://groups.google.com/group/linuxusersgroup
Reply all
Reply to author
Forward
0 new messages