[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Skipping fsck during boot with systemd?

Le Wednesday 10 December 2014 08:05:49, tv.debian@googlemail.com a écrit :
> On 10/12/2014 09:30, Frédéric Marchal wrote:
> > Le Tuesday 09 December 2014 16:36:53, The Wanderer a écrit :
> >> On 12/09/2014 at 10:09 AM, Chris Bannister wrote:
> >>> On Tue, Dec 09, 2014 at 09:48:58AM +0100, Frédéric Marchal wrote:
> >>>> Now, is it possible to run fsck during shutdown? Users have been
> >>>> asking for this for at least 10 years. Is it now acceptable,
> >>>> possible, tolerated?
> > 
> > 2) is it wise to run fsck at that time? I have seen strong opposition in
> > the past. Mostly turning around the risk that the user would switch the
> > power off or the power supply would fail resulting in a damaged
> > partition. As the risk seems as high during the boot sequence, I don't
> > understand the opposition.
> In the case of regularly failing power it would probably be more often
> inconvenient to run fsck at shutdown.

Power failures are as likely to occur during boot, don't they?

As suggested in another post, a computer running on battery (whether a laptop 
or a computer running on UPS) must not run fsck anyway.

> In general when we choose to
> shutdown it is for good reasons I guess, so a long wait may has more
> risk to be a nuisance then than during boot?

You are right. I hadn't thought about that.

When I shutdown the computer it means I don't need it anymore and, with ACPI 
power supply, the power supply is turned off without me standing around. I 
don't have to wait until fsck completes.

But I sometimes need the computer to quickly turn off when it is a laptop I 
must take away. with me. I'd hate to stay late one full hour at the office while 
fsck is running :-)

Maybe unplugging the power cable before shutting down the OS would take care 
of that. It doesn't look very professional though.

No matter what, running fsck without the user's consent looks like a bad idea.

> But I don't see why we couldn't get a nagging prompt to run fsck at any
> of boot or shutdown time when it's due, with option to cancel it. After
> all I think even Windows gives you this control and allow the user to
> opt-out of a disk check for a short time before starting it (at least
> it's what I remember from the Windows 7 I have used).

Instead of a nagging prompt, I prefer to have an entry in the desktop 
environment shutdown menu. Along with Shutdown, Reboot, Logout, and the like.

A standalone software to be executed explicitly to run fsck and then turn the 
computer off  would do too.

> In the long run better file-systems and online check may relegate all
> this to the museum of horrors, but in the meantime being able to
> interrupt fsck seems like the best and only option covering all use cases.

Whoa! A file system that never need to be checked! Thanks for sharing your 
dream :-)


Reply to: