Chinaunix首页 | 论坛 | 博客
  • 博客访问: 379909
  • 博文数量: 120
  • 博客积分: 5051
  • 博客等级: 大校
  • 技术积分: 1255
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-03 01:25
文章分类

全部博文(120)

文章存档

2011年(2)

2010年(11)

2009年(28)

2008年(26)

2007年(53)

我的朋友

分类:

2007-09-26 10:45:07

在设置系统时间的时候遇到以下问题 :
hwclock --show
select() to /dev/rtc to wait for clock tick timed out
解决办法:
vi /etc/init.d/hwclock.sh
HWCLOCKPARS=--directisa

或者在命令行:
hwclock --show --directisa (在hwclock命令中加上参数--directisa即可)

hwclock命令的用法
hwclock --help
hwclock - query and set the hardware clock (RTC)

Usage: hwclock [function] [options...]

Functions:
  --help        show this help
  --show        read hardware clock and print result
  --set         set the rtc to the time given with --date
  --hctosys     set the system time from the hardware clock
  --systohc     set the hardware clock to the current system time
  --adjust      adjust the rtc to account for systematic drift since
                the clock was last set or adjusted
  --getepoch    print out the kernel's hardware clock epoch value
  --setepoch    set the kernel's hardware clock epoch value to the
                value given with --epoch
  --version     print out the version of hwclock to stdout

Options:
  --utc         the hardware clock is kept in coordinated universal time
  --localtime   the hardware clock is kept in local time
  --directisa   access the ISA bus directly instead of /dev/rtc
  --badyear     ignore rtc's year because the bios is broken
  --date        specifies the time to which to set the hardware clock
  --epoch=year  specifies the year which is the beginning of the
                hardware clock's epoch value
  --noadjfile   do not access /etc/adjtime. Requires the use of
                either --utc or --localtime

阅读(1516) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~