FreeNAS 8.0 RC5 and fat fingering

10 replies [Last post]
eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

So, in attempting to upgrade my FreeNAS box to v8.0, I double tapped the Enter key. And quick formatted the primary drive.

The issue is that the primary was hosting a data partition holding around 20 years of digital photos, including the births of all 4 of my kids. It was my backup. Everything else on that drive I have somewhere on DVD, but the last backup of the photos is... missing.

So, the question is, has anyone had any luck recovering an old UFS2 partition? The new "format" occupies the exact same space as 7.3 did, just where the old data partition was is now listed as unused space. I've been trying to get TestDisk (off of GPartEd Live CD) to dig through, but the only "lost partition" it sees is an ancient NTFS with no files, which makes sense because I wiped it before this disk ended up in the server. TestDisk CAN see UFS parts, but it's not what the program was really intended for, as it is essentially made to work with FAT/NTFS/EXT parts.

I'm currently downloading Frenzy 1.3 (Live FreeBSD admin kit), to see if I can run scan_ffs off of that and see if it can recover the partition. I figured that while I'm waiting, assuming failure, I might as well get a head start on asking the question.

Nick McDermott

eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

Okay, scan_ffs sees something and then freaks out with a read error, as I expected, which is what it usually does when a partition table is written over the original partition table.

I'm back on TestDisk, but I made a newer Live CD with the latest version which is supposed to be smarter with BSD part slices.

OMG, if this was NTFS or Linux I'd be done here! All of this because I volunteered to test FreeNAS ZFS, which committed me to FreeBSD... and FreeBSD is substantially different underneath! Argh!

Nick McDermott

eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

Still on hold. The power supply (a ten year old bit) blew, and took the memory with it. Usually my problems tend to escalate, and this is what happened here!

New PSU as well as a high-speed USB flash drive (to host the OS) coming.

Nick McDermott

eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

Okay, PSU is in, USB is in with FreeNAS 8.0 RC5, booting with PLOP Boot Manager as the motherboard predates USB booting.

I've got the hard disk removed and in my rescue rig, an old PIII 550, and I am getting read errors all across the disk, usually UDMA ICRC errors, which is odd because the drive read fine on the Athlon board, but the PIII board is actually newer. Whatever.

I'm going to assume that lack of memory may be an issue for Frenzy FreeBSD, and I'm going to hit it with Parted Magic and see what we can see.

Nick McDermott

eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

Edit: running TestDisk under DrDOS works fine with no read errors. Running a heavy analyze now.

Nick McDermott

eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

Well, after all is said and done... never mess with the backup unless there is a primary to keep you safe! A lesson I've told to many, and I didn't follow it. Darn.

Now I wish I cancelled my Carbonite account.

Nick McDermott

eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

Well, found a solution. UFS Explorer Standard solved the problem, in a matter of minutes, and rebuilt the partition, and I was able to transfer all of the files to another drive. I picked up a license for version 4 for Windows; it's $65 (expensive) but it is going into my tech kit as it seems to be the only thing out there that can handle UFS data. The pro version also supports RAID volumes at the hardware level, but it's a bit more expensive.

Everything is available as shareware, but recovery features are limited until you pay for it.

Web site follows: http://www.ufsexplorer.com/

Nick McDermott

eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

Little update:

This program turns out to be worth more than what I gave it credit for. Version 4 can also handle pretty much everything, and you can specify what you want it to find (UFS, BDSUFS slices, NTFS, FAT32, EXT2, etc.) and it can dig deep into drive data and find all kinds of stuff.

Of course, don't expect it to recover anything if you have written over it, but in cases like mine where the partition table was rewritten and then quick formatted, everything survived.

Anyway, as a do it all recovery platform, I'm rather glad I shelled out for this.

UFS Explorer in action.JPG

Nick McDermott

eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

Okay, last bit! Sorry!

FreeNAS 8.0 RC installers are stupid! 8.0 is now released, and the installer is SMOOTH. Asks questions before doing anything destructive! However, be aware that you won't get a v7.x to v8 upgrade path until 8.1 is released next month. Right now, if you have complicated settings on a v7 server, wait, unless you feel like reprogramming everything.

Oh, ZFS has no problem remounting an old RAID.Z cluster, but of course it is at the OS level, not in the Python controllers.

Nick McDermott

pranali
Offline
Joined: 05/20/2011
Posts: 1
eire1274
eire1274's picture
Offline
Joined: 09/12/2003
Posts: 1209

Oh, ha ha. You saying something about me being old?

Nick McDermott