From owner-freebsd-questions@FreeBSD.ORG Mon Jul 21 10:52:28 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90C37106566B for ; Mon, 21 Jul 2008 10:52:28 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1C2218FC13 for ; Mon, 21 Jul 2008 10:52:28 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-100-197.dynamic.qsc.de [92.195.100.197]) by mx01.qsc.de (Postfix) with ESMTP id 715B650AA4; Mon, 21 Jul 2008 12:52:26 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id m6LAqPHw001865; Mon, 21 Jul 2008 12:52:25 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 21 Jul 2008 12:52:25 +0200 From: Polytropon To: freebsd-questions@freebsd.org Message-Id: <20080721125225.956c3aa4.freebsd@edvax.de> In-Reply-To: <2385.82.120.108.188.1216634229.squirrel@www.88.net> References: <2385.82.120.108.188.1216634229.squirrel@www.88.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: john@zog.net Subject: Re: Recover Lost Superblocks? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2008 10:52:28 -0000 Hi! On Mon, 21 Jul 2008 11:57:09 +0200 (CEST), "John Morgan Salomon" wrote: > 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. I completely do understand you, I'm suffering from a similar problem at the moment, but much worse than yours... Buy tape drives! Buy tape drives! Buy tape drives! :-) > 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.) As far as I know - NB that I'm just starting to learn more about UFS, shame on me that I'll do this just as every piece of data is gone - there are more than one superblock present. According to "man fsck_ufs", this could be a starting point: -b Use the block specified immediately after the flag as the super block for the file system. An alternate super block is usually located at block 32 for UFS1, and block 160 for UFS2. This applies if just the first superblock is gone. Before you start experimenting, maybe it's a good idea to dd the data out of the disks and run fsck on the images? I'm not sure... > Any help, tips or pointers would be tremendously appreciated. Hope you're lucky. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0