From owner-freebsd-questions@FreeBSD.ORG Wed Nov 1 17:06:03 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 8487216A407 for ; Wed, 1 Nov 2006 17:06:03 +0000 (UTC) (envelope-from freebsd@orchid.homeunix.org) Received: from orchid.homeunix.org (aun248.neoplus.adsl.tpnet.pl [83.27.21.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B20543D46 for ; Wed, 1 Nov 2006 17:06:02 +0000 (GMT) (envelope-from freebsd@orchid.homeunix.org) Received: from [192.168.1.66] (blackacidevil.orchid.homeunix.org [192.168.1.66]) (authenticated bits=0) by orchid.homeunix.org (8.13.6/8.13.6) with ESMTP id kA1H5dpR091884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 1 Nov 2006 18:05:46 +0100 (CET) (envelope-from freebsd@orchid.homeunix.org) Message-ID: <4548D3DC.3060902@orchid.homeunix.org> Date: Wed, 01 Nov 2006 18:05:32 +0100 From: Karol Kwiatkowski User-Agent: Thunderbird 1.5.0.7 (X11/20061021) MIME-Version: 1.0 To: e.schuele@computer.org References: <1162399232.4866.25.camel@ugly> In-Reply-To: <1162399232.4866.25.camel@ugly> X-Enigmail-Version: 0.94.1.0 OpenPGP: id=06E09309; url=http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigD4D834DB014D32875BDA15D7" X-Virus-Scanned: ClamAV 0.88.5/2139/Wed Nov 1 15:49:50 2006 on orchid.homeunix.org X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: /var corrupted..... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@orchid.homeunix.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Nov 2006 17:06:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD4D834DB014D32875BDA15D7 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable On 01/11/2006 17:40, Eric Schuele wrote: > Hello, >=20 > [Running 6.2-PRERELEASE as of Oct 30th] >=20 > 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 t= o > 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 ar= e > 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=3D213423" many many times. So.... >=20 > I may have totally destroyed my /var filesystem at this point. So my > questions are: >=20 > 1) If not... pointers on what to do next would be *greatly* appreciated= =2E >=20 > 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? I'm not sure if option 1 is out of question (wait for other replies) but to recreate /var directory tree you can use mtree(8) on newly created partiton, something like: # /usr/sbin/mtree -du -p /var -f /etc/mtree/BSD.var.dist The downside of this (option 2) is you'll loose some important information about your system, /var/db/pkg comes first to my mind. If you don't have any backups try to recover anything you can first. Good luck! > Thanks, > Eric HTH, Karol --=20 Karol Kwiatkowski OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc --------------enigD4D834DB014D32875BDA15D7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFSNPjezeoPAwGIYsRCBXnAJ4g4Aa09artelRYMtcvrNEDEhz5RQCfct2r 31iGYDgv4lnHt/7k0r8Mdfc= =ceIV -----END PGP SIGNATURE----- --------------enigD4D834DB014D32875BDA15D7--