Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
General Tofu
Nov 20, 2014

by Lowtax
Hey, SH/SC! I've got a bit of a problem and it would mean the world to me if someone could point me in the right direction. I've got a RAID 1 array with two 1TB disks in it, and the combined disk was accidentally repartitioned- with lots of data on it. Most of it's not important and can be replaced, but there's a few things in it (specifically source code) that I can't. My only resort would be to use an older backup and rewrite big parts of my program, which I obviously want to avoid.

What specifically happened is that I was installing Windows 7 to another disk on the machine, and accidentally deleted the NTFS partition on the 1TB RAID1 disk. It marked the start of the disk with a 100MB "System Reserved" partition and the rest as Free Space. I assume the System Reserved was formatted, but I did not specifically format the rest.

Is there some software I can use to recover some files from this disk and get my code back? It's in multiple places on the disk, in various forms (backup RARs, previous development snapshots, so forth.) Of course, in the future I'll be keeping duplicates of this on another disk. Somewhat ironically, I had it on a RAID1 disk to make sure the data didn't get lost. ;)

I don't mind paying for software to do the recovery myself, but I'd rather not send the disk to a recovery service (as this would take a lot longer than rewriting the code myself- as much as I do not want to do that.)

If it helps, the disks are both Western Digital 7200RPM SATA disks, neither is an SSD, and I am using the motherboard (ASrock, model upon request)'s onboard RAID capability.

Thanks very much for any help!

EDIT: I also apologize if this belongs more in Haus of Tech Support.

Adbot
ADBOT LOVES YOU

Zogo
Jul 29, 2003

I've used http://www.active-undelete.com/ with success in situations like this.

Gromit
Aug 15, 2000

I am an oppressed White Male, Asian women wont serve me! Save me Campbell Newman!!!!!!!
Take a look at TestDisk, but it's not for the faint of heart.

General Tofu
Nov 20, 2014

by Lowtax
Thanks- I will put an image on another disk and try both .. I don't want to risk anything!

curse of flubber
Mar 12, 2007
I CAN'T HELP BUT DERAIL THREADS WITH MY VERY PRESENCE

I ALSO HAVE A CLOUD OF DEDICATED IDIOTS FOLLOWING ME SHITTING UP EVERY THREAD I POST IN

IGNORE ME AND ANY DINOSAUR THAT FIGHTS WITH ME BECAUSE WE JUST CAN'T SHUT UP
Oh god, this brings back memories of me trying to install some crap linux and accidentally formatting. I just had like a pile of 16gb, and 2gb SD cards and old hard drives I still had for some reason, just to recover the data somewhere.

Anyway, just make sure you don't run or install anything on the affected hard drive and you should be hunky dory. A reformat usually will just mark all the data as overwritable, so it should still be fine as long as you don't use the hard drive at all until everything's recovered.

General Tofu
Nov 20, 2014

by Lowtax
I got a tip from a friend who works in IT to give Recuva a try, since it's free and can supposedly recover files from disks without partitions. However it seems to insist the disk be mounted anyway from within windows. I set the area I'm trying to recover from (about 900 GB) as NTFS like it used to be and let windows do a quick format so I could do a "Deep scan" with recuva, since from what I've read/been told formatting pretty much only marks the space as reusable. Looks like it's going to take a long time to scan the area, though.

Hopefully I'm on the right track? Or am I not using Recuva in the right way? Thanks. :)

Zogo
Jul 29, 2003

A deep scan could take days so that sounds plausible.

JacksLibido
Jul 21, 2004
Ftk imager is free and will do what it sounds like you want. Basically you'd take an image of your drive, then use ftk to open it and start digging around in the slack space for your files. It's definitely more labor intensive at first (you'll have to learn how to use it) but after that you'll easily be able to dig around in pretty much anything you can get an image of.

Adbot
ADBOT LOVES YOU

baka kaba
Jul 19, 2003

PLEASE ASK ME, THE SELF-PROFESSED NO #1 PAUL CATTERMOLE FAN IN THE SOMETHING AWFUL S-CLUB 7 MEGATHREAD, TO NAME A SINGLE SONG BY HIS EXCELLENT NU-METAL SIDE PROJECT, SKUA, AND IF I CAN'T PLEASE TELL ME TO
EAT SHIT

No idea about raid but I've used TestDisk for this before - it looks for actual partitions and fixes the table that describes them on the disk, so it's basically undoing the partition deletion by putting the entry back. You don't need to mess around crawling through the disk analysing it for potential files, they haven't gone anywhere. If TestDisk works it's a fix that takes like a minute, and as far as I know it can't do any damage to the filesystem since it's just messing with partition info that you've lost right now anyway (I Am Not A Partition Pro)

http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
That's the process, you can poke around and see what's going on in there without actually making any changes if you like

  • Locked thread