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

Re: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended



Hallo Jörg

Am 05. May 2008 um 00:38 CEST schrieb Jörg Sommer:
> Stefan Luetje <nur-fuer-spam@t-online.de> wrote:
> > ,----[ /var/log/boot ]
> 
> >| Sun May  4 19:20:05 2008: + do_start
> >| Sun May  4 19:20:05 2008: + which on_ac_power
> >| Sun May  4 19:20:05 2008: + on_ac_power
> >| Sun May  4 19:20:05 2008: + '[' 255 -eq 1 ']'
> 
> … das sieht nicht gut aus. Warum gibt on_ac_power hier 255 (aka -1)
> zurück. Kannst Du mal in der manpage nachsehen? Schau doch mal, ob dieses
> on_ac_power ein Shell‐Skript ist. Wenn ja, dann rufe es mit sh -x auf.
> Auf alle Fälle solltest Du mal das Zeug dahinter wegnehmen. Das frisst
> nur nützliche Informationen.

on_ac_power ist ein Skript[1]

Die manpage dazu ist ziemlich kurz und hier ist der wichtige Teil:

,----[ man on_ac_power ]
| EXIT STATUS
|        0 (true)  System is on mains power
|        1 (false) System is not on mains power
|        255 (false)    Power status could not be determined
`----
 
> sh -x on_ac_power

Im Akkubetrieb ausgeführt:
,----
| + set -e
| + /sbin/acpi_available
| + '[' -d /proc/acpi/ac_adapter ']'
| + OFF_LINE_P=no
| + for FN in '/proc/acpi/ac_adapter/*'
| + '[' -d /proc/acpi/ac_adapter/AC ']'
| + '[' -r /proc/acpi/ac_adapter/AC/state ']'
| + grep --quiet on-line /proc/acpi/ac_adapter/AC/state
| + grep --quiet off-line /proc/acpi/ac_adapter/AC/state
| + OFF_LINE_P=yes
| + '[' yes = yes ']'
| + exit 1
`----

[1] <http://rafb.net/p/Hl9l6014.html>

-- 
,-----------------------------------------------------------------------------.
|        Stefan Lütje       | "Business ist'n Talent...wie Geige spielen   |
| stefan.luetje@t-online.de |  oder die Brustgröße bei Frauen." Stromberg  |
`----Key fingerprint = BCB2 48E4 9211 C975 5A3F  B192 9B6E CCCF 99CC 44FA-----'

Attachment: signature.asc
Description: Digital signature


Reply to: