From owner-freebsd-questions@FreeBSD.ORG Fri Dec 13 14:56:45 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 23149673 for ; Fri, 13 Dec 2013 14:56:45 +0000 (UTC) Received: from mail-vb0-x235.google.com (mail-vb0-x235.google.com [IPv6:2607:f8b0:400c:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D4F101FEF for ; Fri, 13 Dec 2013 14:56:44 +0000 (UTC) Received: by mail-vb0-f53.google.com with SMTP id o19so1367007vbm.12 for ; Fri, 13 Dec 2013 06:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=gTnFQ0f7Jz03uQo5eZ1dFyBhhHrAffe1XNGDDMNXhb8=; b=LXKIrOoeOHbf6PerMy30DR9LqH0/5+i/WfE5NDZq+LIunNzWQNxB85fChCP3WCwGJO /GdSKTkCKw37vgkQvHzQQ/MaQzN6yfRUhFNua0kaGDDed0ndJo2OSbBhIRu1UyCwnjFu GS2/rjkyJBqaAfxIkxy2Qgn8q1LbIfo1MB3+wgP267CjS/bQSCB63j/RjkAZ04czJ5mz 0PpBdwBYnlIOoebOJeor7ol7E+ZVKcO37AF0AU3HVakphIl/BXNdyHGgdja3bRrD9Zxd ILvkJn1h+AjExH40RHJVUXmyNOYQnNw1sdm56I8qwblx1N21jKBn18b3x1yY83FAqIrx 57Dg== X-Received: by 10.221.51.206 with SMTP id vj14mr1357100vcb.17.1386946603986; Fri, 13 Dec 2013 06:56:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.231.167 with HTTP; Fri, 13 Dec 2013 06:56:23 -0800 (PST) In-Reply-To: <52AB1EFC.3020405@gmail.com> References: <52AB1791.6090508@gmail.com> <52AB1EFC.3020405@gmail.com> From: Anton Sayetsky Date: Fri, 13 Dec 2013 16:56:23 +0200 Message-ID: Subject: Re: Avoid to run `fsck` twice (and save some time during boot) To: Antonio Kless , FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2013 14:56:45 -0000 2013/12/13 Antonio Kless : > What do you mind? > > Well, first check with "-p" is exactly what I want to avoid before doing > second check without it. fsck checks limited range of errors in preen mode. This works really FAST. Logic is following: 1. Run very fast (preen) check on FS if dirty flag set. 2. If above fails, run full and slow check. Of course, you can disable preen pass. But be ready to multi-houred filesystem checks on every unclean reboot even if FS isn't damaged.