From owner-freebsd-stable@FreeBSD.ORG Mon Oct 10 16:39:18 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 9A11216A41F for ; Mon, 10 Oct 2005 16:39:18 +0000 (GMT) (envelope-from darren780@yahoo.com) Received: from web34712.mail.mud.yahoo.com (web34712.mail.mud.yahoo.com [209.191.68.161]) by mx1.FreeBSD.org (Postfix) with SMTP id 8C59243D70 for ; Mon, 10 Oct 2005 16:39:15 +0000 (GMT) (envelope-from darren780@yahoo.com) Received: (qmail 23803 invoked by uid 60001); 10 Oct 2005 16:39:14 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bg9nQPe+CPQqf3lqBSXSxVQ1Imr8cTSiz0huZUmxkYBvy0xqb9tt0HORwMjPSfeFxj5w/5RW/8TtsRnGmkTCBiENmJJ/Etjq00z9UaApEq5YFa+gohJXbISSTjdMuN3QAJPSBU++4iHOo0XxxxCeeOgNQD/hK6t+rLBeG5juk4c= ; Message-ID: <20051010163914.23801.qmail@web34712.mail.mud.yahoo.com> Received: from [68.150.129.204] by web34712.mail.mud.yahoo.com via HTTP; Mon, 10 Oct 2005 09:39:14 PDT Date: Mon, 10 Oct 2005 09:39:14 -0700 (PDT) From: "Mr. Darren" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: harddrive won't mount/boot, superblock can't be fixed. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 16:39:18 -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 Thanks, this did the trick. The only odd thing I could say is that newfs -N didn't list 32 as a superblock(fsck told me it was the one being used), I first tried 92640 which was listed after 144. The 32 block worked and the others didn't.. odd.. Thanks a million =) -Darren __________________________________ Yahoo! Music Unlimited Access over 1 million songs. Try it free. http://music.yahoo.com/unlimited/