Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 2008 11:57:09 +0200 (CEST)
From:      "John Morgan Salomon" <john@zog.net>
To:        freebsd-questions@freebsd.org
Subject:   Recover Lost Superblocks?
Message-ID:  <2385.82.120.108.188.1216634229.squirrel@www.88.net>

next in thread | raw e-mail | index | archive | help
Hi there,

bit of a tricky question:  I have an Adaptec RAID-5 array which decided to
puke recently -- the controller seems OK, as do the drives, but something
appears to have gone wrong and I had to rebuild the array.  Long story
short, my array went astray and I lost partition and filesystem info for
1.6TB of data.

Before you ask, this was the backup server.  My primary box had decided to
die shortly before.  I had no backup backup server.  Murphy strikes.

The array was formerly my boot device.  Layout before the crash was:

/dev/aac0s1a /
/dev/aac0s1b swap
/dev/aac0s1d /usr
/dev/aac0s1e /data

Using a combination of sleuthkit, autopsy, a bootable IDE drive that I
installed, gpart and a bunch of other tools, I was able to recover the
partition.  I am also able to mount / from the bootable drive (as
/dev/aac0s1c) and access everything on it.  I do not remember the
filesystem layout (sizes, start/end sectors, etc.)

Can someone recommend a way to manually scan the entire partition (either
aacd0, aacd0s1 or aacd0s1c) for formerly present filesystems?  I am 99%
sure that all the data is still present, and if I reinstall the
superblocks I'll be able to boot the array, mount the filesystems and get
the data off before I continue.  I don't know whether I've missed any
gpart options (I have the impression it only scans for lost partitions,
not ufs filesystem signatures.)

Any help, tips or pointers would be tremendously appreciated.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2385.82.120.108.188.1216634229.squirrel>