Dell PERC 6i “Fast Initialize” – how to restore

TL;DR: Make a BartPE boot disc, with Dell RAID drivers and EASEUS Free Partition recovery. Undelete those partitions LIKE A BOSS.

Yesterday at 6PM, while installing a new drive in our Dell PowerEdge 2900, I accidentally “fast initialized” the system drive in the machine.

Yes, this is pretty much as stupid as it sounds. When you install a new drive (the guide I used), you basically turn the machine off, remove a drive bay cover panel, insert the new drive (wrapped in a $45 caddy and a $48 interposer – woo Dell!), boot up the machine, press Ctrl-R/M to get through to the RAID config, create a new “virtual disk”, add the just installed “physical drive” to it, and finally initialize the new virtual disk. Unfortunately, the Dell RAID config software is a little unclear, when you finish creating the new virtual disk, it asks you if you want to initialise it, then takes you to a selection screen – I just picked the first one. Big mistake! In 1/3rd of a second I’d effectively deleted the first and last 8MB of our main server’s boot disk, which includes the MBR, bootsector, partition map, etc, etc… You know that “oh fuck” feeling you get when you’ve done something horribly wrong?

Anyway, here’s how I restored it.

First, I figured out what a “fast initialize” actually is. An article on the Dell support website says:

A fast initialization on a virtual disk overwrites the first and last 8 MB of the virtual disk, clearing any boot records or partition information.

Great, so the data is still all there, it’s just missing the MBR and partition stuff.

So next I needed a boot CD so I could run some recovery software on the machine. At first I considered using an Ubuntu LiveCD, GParted and GNU DDRescue, because there’s a great recovery guide on the Ubuntu community site, but I was worried that I’d have to mess around with drivers to get Ubuntu to recognise the Dell’s PERC 6i RAID array.

So I settled on BartPE, which is basically a modifiable version of the Windows Preinstalled Environment akin to the Linux LiveCD concept. BartPE CDs are created using the PE Builder, which allows you to customise drivers and software, so I added the Dell PERC 6 drivers (downloadable from the Dell website) using this guide.

Now I needed a partition recovery bit of software. Unfortunately I actually tried 3 before I found one that worked just right. I first tried Runtime.org’s GetDataBack for NTFS which can be added as a plugin to Bart PE, and after a 1h40m scan I realised to my horror that GetDataBack is just a file recovery tool – it doesn’t recover partition information at all. It did find all of the data on the drive, but recovering this way would have meant an enormous copy/format/paste shuffle. No good.

So next I tried Active@ Partition Recovery, whose website is really dodgy looking. I added it to yet another BartPE disc by adding its Windows executable in PE Builder as a custom directory (the DOS version of Active@ PR does not work with BartPE’s command prompt, as it is 16-bit native). I had to open a command prompt once this BartPE disc had booted on the server and navigate to the executable to run it, but it did work. After another 1h10m “fast scan”, Active@ had detected one of the two partitions on the drive, and seemingly not the other. Fortunately it was the boot drive, so I restored it.

Now all I had to do was mark the drive as active and fix its MBR, which I did by booting from a Windows 7 disc, running the recovery console and running DISKPART, then BOOTSECT /nt52 C – there are hundreds of guides on this process out there.

Unfortunately, even after this it didn’t boot. I had no idea what was wrong. Then, after removing most of my hair I realised that because the partition information had changed, the boot.ini file would need to be updated. Being a Mac user I sort of expect this kind of stuff to “just work”, but if the boot.ini file doesn’t have a correct partition specified, it will just give up, and peace out, not bothering to display an error message of any kind.

Restart, and bingo. Server back online. Now for that second partition. Frustrated at Active@, I installed EASEUS Partition Recovery and decided to give it a shot. Literally SIX seconds later, I had the second drive recovered, mounted and back up and running.

Seriously, WTF. EASEUS Partition Recovery is black magic and totally free and awesome. I cannot recommend it highly enough. If you accidentally “quick format” a drive, EASEUS Partition Recovery is the tool you’re after. There’s even a guide on their site of how to add it as plugin to BartPE.

So at the end of the day I spent $114USD and learnt a valuable lesson – EASEUS is free and the best partition recovery software out there.

8 thoughts on “Dell PERC 6i “Fast Initialize” – how to restore”

  1. Same stupid problem. We’ve tried stuff like getdataback, raid reconstruct, partition find and mount, zair and after reading your page easeus and seems to work on a raid 5 array. First the partition scaning was taking around 10min and just 4 partitions from 5 were shown so i’ll be back after full scan (maybe some days)…

  2. I just did exactly the same thing now! ARGH! Lost a RAID5 boot disk spanned over 4 PDs. Just about to get going on this, wondering: will I be able to recover the RAID 5 partition?

  3. I thought I would tell my similar tale of woe. I fast-init’d the local raid 5 array on my Vmware 5.5 server, and the recovery was, difficult. I bought EaseUS, but it CANNOT handle VMware GPT at all.
    Then I tried Eassos PartitionGuru, and life eventually got better.

    The program is windows only, so what I did was:

    Attached a drive to the on-board SATA port with a really long SATA cable I had to my DELL R710 (had to use another PC to power it) and unplugged the RAID card from the server. Then I loaded Win2008R2 onto the drive & installed & licensed Eassos PartitionGuru. Shut down, plugged the raid back in, booted to windows, Ran a file recovery (deep scan) on the array. On a 6TB volume that was LOADED with data, it took exactly 24 hours to scan and about 38 hours of “arranging files” (very tedious time as there was NO counter, but System Monitor showed the application was reading the array constantly, so I knew the app was not hanging) when it was done, it gave me a bit of a mess to work with (it found old deleted temp files and all kinds of irrelevant stuff along with the relevant info, a little annoying) but all the data inside the .vdmk’s was there. Yippie!

    I hope this post helps someone else, I was disparate for a while, now I’m happy again.
    -Timothy cox

  4. I’m having a really hard time finding the EASEUS Partition Recovery Plugin that is mentioned in the link. I’d really love to be able to create a BartPE disk with it, but can’t seem to find ERD.cab. If you could help shed some light, that would be greatly appreciated!

    1. It looks like they’ve pulled it – I went looking for it and couldn’t find it. If I had a copy, I’d post a link, but I can only find old UBCDs I’ve burned over the years, no BartPEs. Sorry :-/

  5. EASEUS did find partition, but could not do Anyting to 15TB raid 5 partition on PERC H810. But thanks to Timothy Eassos PartitionGuru did made the trick. Well, it costs 70€, but it’s cheap price for 15TB of backup data.

  6. Ooops, I just did the same thing on a R330.

    Used the following for free!

    Create a linux boot USB stick (you may need to create with persistence) I use YUMI Multiboot. Note – linux contains the PERC RAID drivers except the on-board S100, S110, S120, S130 controllers.

    Install and run Testdisk in the distro of your choice to recover the partition https://www.cgsecurity.org/wiki/TestDisk

    Then follow the instructions to repair to boot file at the following link:
    https://www.dell.com/support/article/us/en/04/sln167714/windows-server-how-to-repair-the-boot-files-in-windows-server-2008-or-2008-r2-if-the-server-wont-boot?lang=en

    Worked well for me

Leave a Reply

Your email address will not be published. Required fields are marked *