From owner-freebsd-questions@FreeBSD.ORG Mon Oct 29 16:52:29 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 4D8E416A420 for ; Mon, 29 Oct 2007 16:52:29 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id B068F13C4A5 for ; Mon, 29 Oct 2007 16:52:28 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l9TGdWG9002696; Mon, 29 Oct 2007 08:39:32 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l9TGdVAZ002695; Mon, 29 Oct 2007 08:39:31 -0800 (PST) (envelope-from kline) Date: Mon, 29 Oct 2007 08:39:31 -0800 From: Gary Kline To: Gary Kline , FreeBSD Mailing List Message-ID: <20071029163931.GB3874@thought.org> References: <20071028215454.GA52631@thought.org> <20071028230306.GD39510@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071028230306.GD39510@slackbox.xs4all.nl> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 21 of service to the Unix community. Cc: 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: Mon, 29 Oct 2007 16:52:29 -0000 On Mon, Oct 29, 2007 at 12:03:06AM +0100, Roland Smith wrote: > On Sun, Oct 28, 2007 at 01:54:54PM -0800, Gary Kline wrote: > > Guys, > > > > > > 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. > > > 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. > > 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 '. > > 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 Thanks, all of you. This started as a way to keep rsync to work from tihs "tao" to my new tao[2]. tao2 has /usr/home/kline rather htan /home/kline. ... I was hacking a script when things suddenly locked up tight. Then the panic and reboot, but this time, fsck stumbled on allocating 2.3G of inoinfo. Long story short, I tar'd /var into a huge /store file. Finally was ble to remove /var/empty/ .... I'm still madly typing at shtuff. Forgot about the -p preen swing in fsck even tho I'e ported fsck many times. I'd like peoples' thought on whether the in-ability to write in /var could be what's been causing the Dell to spontaneously reboot at least weekly. Or is it more likely heat and I need to have new fans installed? UPDATE: (I thought I had mailed this last night). I have successfully moved /usr/home to /home, newfs /dev/<[home], and tar'd everything to, fro. Now gnome fails. thanks again, gary > -- > 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) -- Gary Kline kline@thought.org www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org