From owner-freebsd-questions@freebsd.org Tue Feb 9 03:15:22 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E4F7AA21DE for ; Tue, 9 Feb 2016 03:15:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 88677FC5 for ; Tue, 9 Feb 2016 03:15:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: by mailman.ysv.freebsd.org (Postfix) id 88576AA21DD; Tue, 9 Feb 2016 03:15:22 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87F1CAA21DC for ; Tue, 9 Feb 2016 03:15:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4EF5FFC4 for ; Tue, 9 Feb 2016 03:15:21 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-44-23.dynamic.qsc.de [92.195.44.23]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 984183CDA0; Tue, 9 Feb 2016 04:15:18 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u193FHA6008605; Tue, 9 Feb 2016 04:15:17 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 9 Feb 2016 04:15:17 +0100 From: Polytropon To: Alberto Mijares Cc: Paul Beard , FreeBSD-questions Subject: Re: fsck is failing to clean a filesystem Message-Id: <20160209041517.93b04659.freebsd@edvax.de> In-Reply-To: References: <201B1734-C8F3-439A-B788-AC177D1280C3@gmail.com> <15664107-4DD3-4717-9E3E-128507A3434B@gmail.com> <20160209003715.86885013.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2016 03:15:22 -0000 On Mon, 8 Feb 2016 22:32:24 -0430, Alberto Mijares wrote: > > However, the fsck output indicates a quite heavy file system > > inconsistency problem. In worst case, mount -o ro, copy all > > files, re-initialize the filesystem with newfs, and then copy > > the files back. Use tar or rsync or cpio to make sure all the > > file attributes are properly transferred. This should be possible > > in case you cannot resolve the filesystem problem. > > > > And check if /usr/lost+found does already contain something. > > Just in case. > > > > I wonder if mounting an external disk on /usr/lost+found can help. > Don't know, just guessing ;-) It _might_ be possible, but the lost+found/ subdirectory should be empty in order to work as a proper mountpoint. On the other hand, fsck does operate on a "lower" filesystem level, so when an external filesystem is mounted, it could stop working as intended. The "lost+found mechanism" usually reconnects files or directories in a manner where an i-node is not connected to a file or directory entry, but also not marked as free. In this case, it will be assigned a new name (usually #1234567890 for the i-node number 1234567890) and established inside lost+found. All the "appended" content, being a file or a directory full of files, will then be available by this new name. The i-node now will be properly marked as in use. Filesystem consistency can be re-established this way. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...