From owner-freebsd-questions@FreeBSD.ORG Sun Oct 28 23:03:10 2007 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 56A7516A469 for ; Sun, 28 Oct 2007 23:03:10 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr8.xs4all.nl (smtp-vbr8.xs4all.nl [194.109.24.28]) by mx1.freebsd.org (Postfix) with ESMTP id E7A2813C4AA for ; Sun, 28 Oct 2007 23:03:09 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr8.xs4all.nl (8.13.8/8.13.8) with ESMTP id l9SN381l042715; Mon, 29 Oct 2007 00:03:08 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 52A64B82D; Mon, 29 Oct 2007 00:03:06 +0100 (CET) Date: Mon, 29 Oct 2007 00:03:06 +0100 From: Roland Smith To: Gary Kline Message-ID: <20071028230306.GD39510@slackbox.xs4all.nl> Mail-Followup-To: Gary Kline , FreeBSD Mailing List References: <20071028215454.GA52631@thought.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pZs/OQEoSSbxGlYw" Content-Disposition: inline In-Reply-To: <20071028215454.GA52631@thought.org> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Mailing List Subject: Re: slight emergency here... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2007 23:03:10 -0000 --pZs/OQEoSSbxGlYw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 28, 2007 at 01:54:54PM -0800, Gary Kline wrote: > Guys, >=20 >=20 > I think I've found the reason for the intermittent rashes. > Part of /var is bad, and fsck cannot allocate inoinfo to repair > the damage. Oops. If fsck can't fix it, that's not good. Have you tried running fsck by hand, i.e. without -p? If you run it from the console it can fix a bit more than when running in preen mode, but this may result in data loss. =20 > At any rate, how do i as root, single user, cp -rp all of /var to > elsewhere (/storage) and rmdir /var, them mkdir /var and copy > everything back?? I've forgotten the cpio magic command.=20 Make sure that the hardware isn't broken. If you have (S)ATA disks, use 'smartctl -a /dev/'. The canonical way to make backups is to use dump(8). Unmount /var and use 'dump -0 -a -f '.=20 But if the filesystem is really hosed, it might not be possible to copy everything. In that case make a copy with dd of the partition that /var is on so you can try to save any data that has not been backed up. Probably the safest way to go is to newfs the filesystem that /var is on and restore your latest backup. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --pZs/OQEoSSbxGlYw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHJRUqEnfvsMMhpyURAmcWAJ93k27NJBGgrbLMHsC9tMXgu1RtXgCeIxcD VJFgZkRkLb6XSjE5aiAqzxk= =pMwd -----END PGP SIGNATURE----- --pZs/OQEoSSbxGlYw--