You are not logged in.
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
Have a look at /etc/rc.sysinit - that's where the fsck is called from.
Offline
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
thanks for the reply
so you suggest to load the battery module?! am I right?
well i have a try..
Offline
didn't work there coms still: check deferred; on battery
so somebody else a clue?!
Offline
Good news everyone! - I solved the problem
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
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
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