Date: Tue, 9 Feb 2016 04:15:17 +0100 From: Polytropon <freebsd@edvax.de> To: Alberto Mijares <amijaresp@gmail.com> Cc: Paul Beard <paulbeard@gmail.com>, FreeBSD-questions <questions@freebsd.org> Subject: Re: fsck is failing to clean a filesystem Message-ID: <20160209041517.93b04659.freebsd@edvax.de> In-Reply-To: <CAGZBXN9nmGm0VLQCdr_9NBivsTo8buoyJLgYX9Xqs26gy1MvcA@mail.gmail.com> References: <201B1734-C8F3-439A-B788-AC177D1280C3@gmail.com> <CAA2O=b9oPKX7yq4DaC2hdNY_dxFbqH9Twz42x64oRnhX5i0t4A@mail.gmail.com> <15664107-4DD3-4717-9E3E-128507A3434B@gmail.com> <20160209003715.86885013.freebsd@edvax.de> <CAGZBXN9nmGm0VLQCdr_9NBivsTo8buoyJLgYX9Xqs26gy1MvcA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160209041517.93b04659.freebsd>