From owner-freebsd-questions@FreeBSD.ORG Wed Nov 1 16:40:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07C1C16A416 for ; Wed, 1 Nov 2006 16:40:50 +0000 (UTC) (envelope-from e.schuele@computer.org) Received: from alnrmhc12.comcast.net (alnrmhc12.comcast.net [204.127.225.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5029043D64 for ; Wed, 1 Nov 2006 16:40:43 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from [192.168.1.110] (www.gtisd.com?[208.206.151.6]) by comcast.net (alnrmhc12) with SMTP id <20061101164041b12006u2kge>; Wed, 1 Nov 2006 16:40:41 +0000 From: Eric Schuele To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Wed, 01 Nov 2006 10:40:32 -0600 Message-Id: <1162399232.4866.25.camel@ugly> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Subject: /var corrupted..... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: e.schuele@computer.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2006 16:40:50 -0000 Hello, [Running 6.2-PRERELEASE as of Oct 30th] My /var filesystem on my laptop died this morning. I had just installed/enabled gdm. I exited my wm and the machine spontaneously rebooted. Upon coming back up it said there was a bad superblock and to try the one at offset 32. It then said that one was bad. 'newfs -N' tells me the next alt-superblock is at 160. fsck says to run 'fsck -b '. However when you do that it says -b is an unknown option. So so googling leads me to fsck_ufs. Which then says there are more "softupdate inconsistencies" than I can say yes to. Plus some other issues. I suspect something is very wrong in what I'm doing... but I'm a trooper... so I forge ahead. :) I eventually end up doing a 'fsck_ufs -y' on it... and it bails out giving me something like "-73827348927342458734 BAD I=213423" many many times. So.... I may have totally destroyed my /var filesystem at this point. So my questions are: 1) If not... pointers on what to do next would be *greatly* appreciated. 2) If I have destroyed it what can I do at this point? I have no full backup of /var. I had nothing of any real importance on there. Some MySQL data... but I've got that. My package database comes to mind. but nothing of any personal value... just stuff to keep the OS on its feet. So... if its gone... is there anyway to create a functional /var filesystem that will allow me to "get back to work as usual"? Or is my only option a complete reinstall of everything? Thanks, Eric