From owner-freebsd-stable@FreeBSD.ORG Mon Oct 10 11:20:10 2005 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2752F16A41F for ; Mon, 10 Oct 2005 11:20:10 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7693543D46 for ; Mon, 10 Oct 2005 11:20:09 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (wnetwv@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.1/8.13.1) with ESMTP id j9ABK6gK047305 for ; Mon, 10 Oct 2005 13:20:06 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.1/8.13.1/Submit) id j9ABK6F6047304; Mon, 10 Oct 2005 13:20:06 +0200 (CEST) (envelope-from olli) Date: Mon, 10 Oct 2005 13:20:06 +0200 (CEST) Message-Id: <200510101120.j9ABK6F6047304@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG In-Reply-To: <20051010045825.48065.qmail@web34710.mail.mud.yahoo.com> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.11-RELEASE (i386)) Cc: Subject: Re: harddrive won't mount/boot, superblock can't be fixed. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 11:20:10 -0000 Mr. Darren wrote: > I had a bad ide cable which I have now replaced. on > bootup the filesystem produced a lot of errors and I > lost my first superblock. I since fsck'd and repaired > the superblock at sector 32. At no time does fsck > create, fix, or transfer the sector 32 superblock to > the front of the drive. mount won't accept the drive > in the condition it's in(says no superblock, or bad > superblock.. different programs, different errors). > If anyone knows how I could get my data off and format > my /var drive, or possibly repair my damaged > superblock at the front of the drive with anyone of > the 50-some backups that exist throughout the drive. How about copying the fixed superblock with dd(1)? Something like this: dd if=/dev/ad0s1d of=/tmp/sb skip=32 count=16 dd if=/tmp/sb of=/dev/ad0s1d seek=16 count=16 fsck /dev/ad0s1d Those commands are just off the top of my head -- I haven't tested it, no guarantees, you're doing it at your own risk and you should have a backup. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Being really good at C++ is like being really good at using rocks to sharpen sticks." -- Thant Tessman