Re: On battery power, so skipping file system check when in AC power
On Sat, 21 Feb 2009 23:19:12 +1300, Chris Bannister mockingb...@earthlight.co.nz wrote: And you know this from skipping filesystem check cos on battery message? No, but I did modify checkroot.sh script to report on_ac_power result to screen for debug purposes. And it's 1. But when computer is started up, then it is 0. -- Virgo Pärna virgo.pa...@mail.ee -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On battery power, so skipping file system check when in AC power
On Tue, Feb 17, 2009 at 06:57:55AM +, Virgo Pärna wrote: On Mon, 16 Feb 2009 19:32:25 +1300, Chris Bannister mockingb...@earthlight.co.nz wrote: IOW, does apt-get install powermgmt-base fix it? Nope, I had powermgmt-base already installed and it is in latest version. Anyway - it seems, that it takes too long for system to figure out, that it is running on AC power. During that phase of startup it actually thinks, that it is running on battery. But when system is up, it thinks that it is running on AC power. And you know this from skipping filesystem check cos on battery message? Have a look at less /etc/init.d/checkroot.sh especially: === # See if we're on AC Power. If not, we're not gonna run our # check. If on_ac_power (in /usr/) is unavailable, behave as # before and check all file systems needing it. if which on_ac_power /dev/null 21 [ $rootcheck = yes ] then on_ac_power /dev/null 21 if [ $? -eq 1 ] then log_warning_msg On battery power, so skipping file system check. rootcheck=no fi fi === r...@box:~# which on_ac_power /usr/bin/on_ac_power r...@box:~# dpkg -S /usr/bin/on_ac_power powermgmt-base: /usr/bin/on_ac_power Did you read the bug report to see if there was anything related? How do you know the bug was actually fixed? (considering the error in the changelog.gz file.) -- Chris. == I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours. -- Stephen F Roberts -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On battery power, so skipping file system check when in AC power
On Sat, 14 Feb 2009, Clifford W. Hansen wrote: On Saturday 14 February 2009 09:15:46 Virgo Pärna wrote: Does anyone else also receives On battery power, so skipping file system check warning, when starting up a laptop with AC power connected? Especially in Lenny. -- Virgo Pärna virgo.pa...@mail.ee I also get this when on battery power, and it works fine when on AC power. I believe this is actually a good thing cause if you checking your disks and then run out of battery bad things(tm) can happen... It is actually a FUBAR piece of crap, it skips the fscks even when the filesystems are dirty (which is guaranteed to cause a much worse data loss if the filesystem is corrupt), and it causes /forcefsck to be ignored (which is unacceptable). There's a bug open about it, and we're going to fix it one way or the other. We just don't know what would be the best way yet, since fsck can't be told to ignore the fsck after N mounts or M days without a check right now. IMO, we may have to dump the whole idea entirely, and tell people how to tune their filesystems to drop the N mounts or M days stuff. When that is done, the system will fsck only when required. We may keep the battery check as an optional thing that must be explicitly enabled, since it can make a data loss episode a lot worse. And we can certainly provide an alternative way to do rolling fscks after some time has passed if fsck can't be fixed to let us do it the easy way. -- 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 -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On battery power, so skipping file system check when in AC power
On Mon, 16 Feb 2009 19:32:25 +1300, Chris Bannister mockingb...@earthlight.co.nz wrote: IOW, does apt-get install powermgmt-base fix it? Nope, I had powermgmt-base already installed and it is in latest version. Anyway - it seems, that it takes too long for system to figure out, that it is running on AC power. During that phase of startup it actually thinks, that it is running on battery. But when system is up, it thinks that it is running on AC power. -- Virgo Pärna virgo.pa...@mail.ee -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On battery power, so skipping file system check when in AC power
Sorry Virgo for not replying to your OP, as I've already deleted it. On Sat, Feb 14, 2009 at 12:03:56PM +0100, Johannes Wiedersich wrote: Virgo Pärna wrote: Does anyone else also receives On battery power, so skipping file system check warning, when starting up a laptop with AC power connected? Especially in Lenny. fine on Thinkpad T60p. johannes r...@box:~# zless /usr/share/doc/powermgmt-base/changelog.gz powermgmt-base (1.30+nmu1) unstable; urgency=low * NMU * on_ac_power: Use /sys/class/power_supply on 2.6.25+ systems where /proc/acpi/ac_adaptor is no longer present. Closes: #473629 (Patch by Vefa Bicakci.) -- Joey Hess jo...@debian.org Mon, 01 Sep 2008 13:27:22 -0400 Ooops, a typo in the changelog.gz!!! It *should* be /proc/acpi/ac_adapter, at least on this system it is. Hopefully, that error hasn't propagated into the code, or the patch is useless!!! r...@box:~# apt-cache policy powermgmt-base powermgmt-base: Installed: 1.30+nmu1 Candidate: 1.30+nmu1 Version table: *** 1.30+nmu1 0 990 http://debian.attica.net.nz lenny/main Packages 100 /var/lib/dpkg/status IOW, does apt-get install powermgmt-base fix it? If not bug #473629 may need to be reopened, but alas, maybe to late for Lenny. -- Chris. == I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours. -- Stephen F Roberts -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On battery power, so skipping file system check when in AC power
Virgo Pärna wrote: Does anyone else also receives On battery power, so skipping file system check warning, when starting up a laptop with AC power connected? Especially in Lenny. fine on Thinkpad T60p. johannes -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On battery power, so skipping file system check when in AC power
On Saturday 14 February 2009 09:15:46 Virgo Pärna wrote: Does anyone else also receives On battery power, so skipping file system check warning, when starting up a laptop with AC power connected? Especially in Lenny. -- Virgo Pärna virgo.pa...@mail.ee I also get this when on battery power, and it works fine when on AC power. I believe this is actually a good thing cause if you checking your disks and then run out of battery bad things(tm) can happen... -- Thank you, Clifford W. Hansen PHP Developer / Linux Administrator (Mobile/SMS) +27 82 883 8677 (Fax) +27 86 503 0634 (E-Mail/Jabber/GMail) cliff...@nighthawk.co.za (GPG) 0x936D6C19 (Web) http://nighthawk.co.za/ We have seen strange things today! () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On battery power, so skipping file system check when in AC power
On Sat, 14 Feb 2009 14:48:27 +0200, Clifford W. Hansen cliff...@nighthawk.co.za wrote: I also get this when on battery power, and it works fine when on AC power. I believe this is actually a good thing cause if you checking your disks and then run out of battery bad things(tm) can happen... The problem is, that my Acer Travelmate 2355XC reports this also, when on AC power. And if I added debug checks /etc/init.d/checkroot.sh file, then I discovered, that the ac module is loaded, but system really thinks, that it is running on battery. But when system if fully started, it thinks that it works on AC power. -- Virgo Pärna virgo.pa...@mail.ee -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: On battery power, so skipping file system check when in AC power
On Sat, Feb 14, 2009 at 07:15:46AM +, Virgo Pärna wrote: Does anyone else also receives On battery power, so skipping file system check warning, when starting up a laptop with AC power connected? Especially in Lenny. Is your ACPI working properly? There may be an ACPI problem that causes the computer to not be able to tell the OS if it's on AC power or not. -- http://pobega.wordpress.com http://identica/pobega signature.asc Description: Digital signature
Re: On battery power, so skipping file system check when in AC power
2009/2/14 Virgo Pärna virgo.pa...@mail.ee: Does anyone else also receives On battery power, so skipping file system check warning, when starting up a laptop with AC power connected? Especially in Lenny. No, fine here on acer aspire. Adrian -- 24x7x365 != 24x7x52 Stupid or bad maths? erno hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org