Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100Ab0DDTfb (ORCPT ); Sun, 4 Apr 2010 15:35:31 -0400 Received: from THUNK.ORG ([69.25.196.29]:57404 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751104Ab0DDTfX (ORCPT ); Sun, 4 Apr 2010 15:35:23 -0400 Date: Sun, 4 Apr 2010 15:35:02 -0400 From: tytso@mit.edu To: Pavel Machek Cc: Rob Landley , Ric Wheeler , Krzysztof Halasa , Christoph Hellwig , Mark Lord , Michael Tokarev , david@lang.hm, NeilBrown , Florian Weimer , Goswin von Brederlow , kernel list , Andrew Morton , mtk.manpages@gmail.com, rdunlap@xenotime.net, linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, corbet@lwn.net Subject: Re: fsck more often when powerfail is detected (was Re: wishful thinking about atomic, multi-sector or full MD stripe width, writes in storage) Message-ID: <20100404193502.GI18524@thunk.org> Mail-Followup-To: tytso@mit.edu, Pavel Machek , Rob Landley , Ric Wheeler , Krzysztof Halasa , Christoph Hellwig , Mark Lord , Michael Tokarev , david@lang.hm, NeilBrown , Florian Weimer , Goswin von Brederlow , kernel list , Andrew Morton , mtk.manpages@gmail.com, rdunlap@xenotime.net, linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, corbet@lwn.net References: <20090831132139.GA5425@infradead.org> <20090907131026.GC32427@mit.edu> <20100404134729.GA1388@ucw.cz> <201004041259.18741.rob@landley.net> <20100404184546.GA18873@elf.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100404184546.GA18873@elf.ucw.cz> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2039 Lines: 45 On Sun, Apr 04, 2010 at 08:45:46PM +0200, Pavel Machek wrote: > > I'm not sure of what right intervals between check are for you, but > I'd say that fsck once a year or every 100 mounts or every 10 power > failures is probably good idea for everybody... For people using e2croncheck, where you can check it when the system is idle and without needing to do a power cycle, I'd recommend once a week, actually. > > hours of downtime due to the system deciding to fsck itself, and I > > don't know a Linux laptop user anywhere who would be happy to fire > > up their laptop and suddenly be told "oh, you can't do anything > > with it for two hours, and you can't power it down either". > > On laptop situation is easy. Pull the plug, hit reset, wait for fsck, > plug AC back in. Done that, too :-). Some distributions will allow you to cancel an fsck; either by using ^C, or hitting escape. That's a matter for the boot scripts, which are distribution specific. Ubuntu has a way of doing this, for example, if I recall correctly --- although since I've started using e2croncheck, I've never had an issue with an e2fsck taking place on bootup. Also, ext4, fscks are so much much faster that even before I upgraded to using an SSD, it's never been an issue for me. It's certainly not hours any more.... > Yep, it would be nice if fsck had "escape" button. Complain to your distribution. :-) Or this is Linux and open source; fix it yourself, and submit the patches back to your distribution. If all you want to do is whine, then maybe Rob's choice is the best way, go switch to the velvet-lined closed system/jail which is the Macintosh. :-) (I created e2croncheck to solve my problem; if that isn't good enough for you, I encourage you to find/create your own fixes.) - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/