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

Re: Skipping fsck during boot with systemd?



On Tue, 09 Dec 2014, Henrique de Moraes Holschuh wrote:
> On Wed, 10 Dec 2014, 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?
> 
> It was proposed that we do this sometime ago, there's a bug open somewhere
> (likely either in sysvinit, initscripts).
> 
> > That sounds like a recipe for disaster. Do you mean *before* shutdown?
> 
> It is not a disaster, but you must not do it if the platform reports it is
> on battery, or when it is doing an UPS-initiated shutdown, or any other sort
> of emergency shutdown.

Ehh, I better explain this further.

It is not a disaster if you move the "periodic" fsck on supposedly-clean
filesystems that exists only on ext2/3/4 to the shutdown path.

You must NOT, on pain of data loss, mess with the fsck on boot that detects
unclean filesystems and repair those before mounting them. NEVER SKIP THESE.

Refer to:
https://bugs.debian.org/526398

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: