You are not logged in.

#1 2009-04-28 10:35:35

smaxer
Member
Registered: 2008-05-24
Posts: 18

[solved] fsck: check deferred; on battery

Hi Everyone!


when i boot my arch distro i  always get from fsck the message that the check was deferred because the laptop is on battery. But it isn't - in fact there is no battery - i just remove it when i work at home...

so why does he think i'm on battery and how can i correct this?!


Thanks in advanced!
smax

Last edited by smaxer (2009-05-01 16:44:55)

Offline

#2 2009-04-28 12:32:13

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [solved] fsck: check deferred; on battery

Have a look at /etc/rc.sysinit - that's where the fsck is called from.

Offline

#3 2009-04-28 18:03:49

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [solved] fsck: check deferred; on battery

Well I took a look and tried to figure out where and how is the battery check done, and I have to idea.
However I think your problem comes from acpi, those modules are loaded before the filesystem checks and any reasonable battery checker would use them -  so maybe if you don't have the battery then the battery module isn't autoloaded, and that screws up the check?

Offline

#4 2009-04-28 21:05:44

smaxer
Member
Registered: 2008-05-24
Posts: 18

Re: [solved] fsck: check deferred; on battery

thanks for the reply

so you suggest to load the battery module?! am I right?

well i have a try..

Offline

#5 2009-05-01 08:23:17

smaxer
Member
Registered: 2008-05-24
Posts: 18

Re: [solved] fsck: check deferred; on battery

didn't work there coms still: check deferred; on battery

so somebody else a clue?!

Offline

#6 2009-05-01 16:44:35

smaxer
Member
Registered: 2008-05-24
Posts: 18

Re: [solved] fsck: check deferred; on battery

Good news everyone! - I solved the problem smile

Apparently you can specify the behaviour of fsck in /etc/e2fsck.conf. There you simply but something like that in the file:

 [options]
    allow_cancellation = 1
    defer_check_on_battery = 0

and you get your filesystem checks!

PLUS if you use the option: "allow_cancellation = 1"   you can cancel fsck with Strg+C (or Ctrl+C ^^) at boot time - very usefully because those checks always come up when you just want to boot your pc quickly..

Well have a nice day!

Offline

#7 2009-05-01 17:55:02

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: [solved] fsck: check deferred; on battery

Nice catch! I've been reading the manpage of e2fsck and there was no mention of battery... so it was puzzling be quite a bit. Even e2fsck.conf is mentioned only in "SEE ALSO" part - which means it's a really badly written manpage if it doesn't mention a config file that can affect the behavior of e2fsck in ways that cannot be achieved using switches...

Offline

#8 2009-05-01 18:17:13

smaxer
Member
Registered: 2008-05-24
Posts: 18

Re: [solved] fsck: check deferred; on battery

yeah!

i didn't even know there were a config file for e2fsck. I only noticed it when I was looking in the source code... 

pretty easy after all...

Offline

Board footer

Powered by FluxBB