You are not logged in.

#1 2005-05-05 04:40:17

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,431
Website

Avoiding bootup fsck when in battery mode

I'm not certain that this can/has actually happen/ed anyway but I imagine it's a bit depressing to turn on your laptop and watch it do an fsck of a 40gig partition on your battery!

I'm sure it's simple to check the ACPI state and skip the check

if [ -z $(cat /proc/acpi/battery/BAT*/state | grep "discharging") ] ; then

would do you guys reckon?

Offline

#2 2005-06-26 14:53:29

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 481

Re: Avoiding bootup fsck when in battery mode

I like it... see about putting that in the official init scripts!

Offline

#3 2005-06-26 15:30:35

CyberTron
Member
From: Gotland ,Sweden
Registered: 2005-03-17
Posts: 645
Website

Re: Avoiding bootup fsck when in battery mode

i too like it, it is not very pleasant to do have your entire harddrive searched through on battery (especially when the batterytime is limited sad

very nice idea dibblethewrecker big_smile


http://www.linuxportalen.com  -> Linux Help portal for Linux and ArchLinux (in swedish)

Dell Inspiron 8500
Kernel 2.6.14-archck1  (selfcompiled)
Enlightenment 17

Offline

#4 2005-06-26 22:33:03

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Avoiding bootup fsck when in battery mode

Good idea, dibble.

Ubuntu does this, it detects if you're on battery and doesnt fsck.

Chuck it on the mailing list or make a patch and put it on the bugtracker, im sure they'll merge it.

iphitus

Offline

#5 2005-06-26 22:37:50

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,431
Website

Re: Avoiding bootup fsck when in battery mode

ok - how about people using apm?  i need an -o for them smile

Offline

Board footer

Powered by FluxBB