Your message dated Thu, 20 Aug 2009 14:19:38 -0500
with message-id <[email protected]>
and subject line util-linux: hwclock w/o --directisa fails
has caused the Debian Bug report #542443,
regarding util-linux: hwclock w/o --directisa fails
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
542443: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542443
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: util-linux
Version: 2.16-3
Severity: normal
The hwclock command fails on my system w/o the --directisa option. What it
produces is:
hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
Cannot access the Hardware Clock via any known method.
hwclock from util-linux-ng 2.16
No usable clock interface found.
As a result the clock cannot be set nor saved. And since I use localtime,
not UTC, the system thinks the localtime is UTC time and the true localtime
5 hours earlier. When you boot with that fsck fails on all fs because the
superblock time is five hours in the future.
Severity is the highest really because you don't have a system anymore,
But with 439 bugs in package util-linux, who wants to quibble.
To fix it I ran dpkg -i util-linux_2.13.1.1-1_i386.deb and that replaced
hwclock with a version that does not need the --directisa option. Except
that it changed more things than hwclock. But produced a running system
again.
Hugo Vanwoerkom
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.30.4-hvw (PREEMPT)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15
(charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash
Versions of packages util-linux depends on:
ii libc6 2.9-24 GNU C Library: Shared libraries
ii libncurses5 5.7+20090803-1+b1 shared libraries for terminal
hand
ii libselinux1 2.0.82-1 SELinux shared libraries
ii libslang2 2.1.4-3 The S-Lang programming library
- r
ii libuuid1 2.16-3 Universally Unique ID library
ii lsb-base 3.2-23 Linux Standard Base 3.2 init
scrip
ii tzdata 2009k-3 time zone and daylight-saving
time
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
util-linux recommends no packages.
Versions of packages util-linux suggests:
ii console-tools 1:0.2.3dbs-65.1 Linux console and font
utilities
ii dosfstools 3.0.5-1 utilities for making and
checking
pn util-linux-locales <none> (no description available)
-- no debconf information
--- End Message ---
--- Begin Message ---
It turns out to be a user error: if the kernel being used does *not* have
the following:
/hda10/backup.files/fromhdThu Aug 20-14:15:09HDC3# grep -i rtc
/boot/config-$(uname -r) | grep -v ^#
CONFIG_HPET_EMULATE_RTC=y
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_DRV_CMOS=y
then hwclock from util-linux-ng 2.16 will fail while hwclock from
util-linux-ng 2.13.1.1 does not.
My homebrew kernel did not have those options set, and Device Drivers ->
Real Time Clock = Y solved that.
Hugo Vanwoerkom
--- End Message ---