From owner-freebsd-questions@FreeBSD.ORG Wed Dec 22 14:06:20 2004 Return-Path: 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 9225516A4CE for ; Wed, 22 Dec 2004 14:06:20 +0000 (GMT) Received: from mailgate2.zdv.Uni-Mainz.DE (mailgate2.zdv.Uni-Mainz.DE [134.93.178.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1772B43D1D for ; Wed, 22 Dec 2004 14:06:20 +0000 (GMT) (envelope-from ohartman@uni-mainz.de) Received: from [134.93.183.16] (edda.Geo.Uni-Mainz.DE [134.93.183.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailgate2.zdv.Uni-Mainz.DE (Postfix) with ESMTP id 445C83000487; Wed, 22 Dec 2004 15:06:19 +0100 (CET) Message-ID: <41C97F72.4030409@uni-mainz.de> Date: Wed, 22 Dec 2004 15:06:42 +0100 From: "O. Hartmann" Organization: Institut =?ISO-8859-1?Q?f=FCr_Geophysik?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-AT; rv:1.7.3) Gecko/20041113 X-Accept-Language: de-de, en MIME-Version: 1.0 To: Marco Beishuizen References: <41C974EF.8020002@uni-mainz.de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at uni-mainz.de cc: FreeBSD questions mailing list Subject: Re: fsck locks up SMP system (5.3-REL) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 14:06:20 -0000 Marco Beishuizen schrieb: > On stardate Wed, 22 Dec 2004, the wise O. Hartmann entered: > >> Please try to boot your system in single user mode (type '4' in the >> start screen, where the countdown can be watched) >> an do a 'fsck -y'. Then watch whether your box gets stuck or. >> If it also get stuck in single user mode, please report again. I'm >> very interestes in this! > > > Thanks for the reply, > > In single user mode it didn't get stuck and it looks like it repaired > some things. In the /usr, /home and /var filesystems "lost+found" > directories were created with some files in them. Also a > "fsck_snapshot"-file was created in /home/.snap/ > > Now I'm curious what to do with the files in the lost+found > directories; can I delete them safely or do I have to do something > with it? Are the filesystems really repaired and ok again or will the > system crash some day because some files are still broken? > > The system works again but I'm not very confident it stays this way. > I'm thinking of installing 4.10-R again. > > Marco > Dear Marco. Thanks. In my case, FreeBSD 5.3 dies in single user mode on nearly each disk activity (it is obviously a FreeBSD 5.3-issue with my ASUS CUR-DLS based system). Please take a look at fsck_ffs(8) man page. There is at the end of the description of the options an explanation of the lost+find facility. Obviously orphaned files and directories (and in most cases those which are expected to be some of them) are gathered and reconnected in lost+found. My 'periodic' cron-job deletes the contents of lost+found every 7 days. Oliver