hwclock: Open of /dev/rtc failed, errno=19: No such device.
今早一台服务器故障,后来有空上来查看故障日志,未果,发现时间不对,如下:
[root@cache06 ~]# hwclock -w
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
[root@cache06 ~]# hwclock --debug
hwclock from util-linux-2.13-pre7
hwclock: Open of /dev/rtc failed, errno=19: No such device.
No usable clock interface found.
Cannot access the Hardware Clock via any known method.
[root@cache06 ~]# ls -l /dev/rtc
rtc rtc0
通过查找资料发现是因为升级内核是没有加载相应的时间模块导致,可用升级hwclock的方式解决,于是如下:
wget http://ftp.sjtu.edu.cn/sites/ftp.kernel.org/pub/linux/utils/util-linux-ng/v2.18/util-linux-ng-2.18.tar.gz
tar xzvf util-linux-ng-2.18.tar.gz
cd util-linux-ng-2.18
./configure
make
[root@cache06 util-linux-ng-2.18]# cd hwclock/
[root@cache06 hwclock]# ls
clock.h cmos.o hwclock.c kd.o Makefile.in rtc.o
clock-ppc.c hwclock hwclock.o Makefile README.hwclock
cmos.c hwclock.8 kd.c Makefile.am rtc.c
[root@cache06 hwclock]# ./hwclock
Mon 30 Jan 2012 04:52:54 PM CST -0.780277 seconds
[root@cache06 hwclock]# ./hwclock --show
Mon 30 Jan 2012 04:53:25 PM CST -0.333056 seconds
[root@cache06 hwclock]# date
Mon Jan 30 16:53:31 CST 2012
[root@cache06 util-linux-ng-2.18]#\cp hwclock/hwclock /sbin/
转载于:https://blog.51cto.com/gaizaoren/768989
hwclock: Open of /dev/rtc failed, errno=19: No such device.相关推荐
- 在双系统之一Ubuntu下安装YaH3C并解决 [Errno 19] No such device成功连上校园网
前言:今天要给自己一个大大的拥抱,从6.7点到晚上一点多的奋战终于让自己刚刚安好的优麒麟(Ubuntu Kylin)-- Ubuntu 中国定制版本连上了校园网,希望自己的经验能帮到大家 我为什么不用 ...
- sphinx error connection to 127.0.0.1:9312 failed (errno=0, msg=)
通过一键安装lnmp环境,运行sphinx时,提示sphinx error connection to 127.0.0.1:9312 failed (errno=0, msg=) 是因为lnmpa服务 ...
- 应用程序 /dev/rtc 编程 获取时间 2011-12-13 01:01:06【转】
本文转载自:http://blog.chinaunix.net/uid-16785183-id-3040310.html 分类: 原文地址:应用程序 /dev/rtc 编程 获取时间 作者:yuwei ...
- GPG key retrieval failed: [Errno 14]
环境:CentOS 6.5 x64 今天yum安装的时候,报出如下错误: warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key I ...
- NFS服务启动:rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
nfs重启时提示: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused) 解决办法: 1 #service rpc ...
- 安装Linux时grub2安装失败,尝试安装Ubuntu作为计算机唯一的操作系统时,我收到错误'grub-install/dev/sda failed'。 - Ubuntu问答...
问题描述 我试图在以前运行Windows 7的盒子上安装Ubuntu. 我也遇到了可怕的"无法安装GRUB"错误. 我没有尝试双启动.我之前运行过Windows启动盘并删除了所有现 ...
- Failed to install *.apk on device *: timeout
可能项目越做越大吧(其实是图片多^-^),到了后面每次调试安装时都出现Failed to install *.apk on device *: timeout 现在将这个问题整理出来,以便以后查阅. ...
- Failed to install .apk on device 'emulator-5554': timeout解决方法
我们开发android app的时候,run 在模拟器上,控制台报出: Failed to install .apk on device 'emulator-5554': timeout的错误,解决方 ...
- Android异常总结---3.Failed to install *.apk on device 'emulator-5554': timeout 错误提示:
3.Failed to install *.apk on device 'emulator-5554': timeout 错误提示: Failed to install helloworld.apk ...
最新文章
- 关于求N个无序数中第K大的数。
- reactjs jsx语法规则
- ubuntu18.04下利用deepin-wine-wechat安装微信显示问题
- 依赖注入:一个Mini版的依赖注入框架
- 共享锁和排它锁---C++17 多线程
- Windows系统端口转发
- 多线程启动定时器 会等待上一次执行完成?_Java多线程
- springboot 事务_Spring Boot中的事务是如何实现的?懂吗?
- Python实战从入门到精通第五讲——数据结构与算法3之序列中出现最多的元素
- 【安卓笔记】是否执行测试服务
- ValueError:Tensor(dense_1/Softmax:0, shape=(?, 3), dtype=float32) is not an element of this graph
- 简单的方法完成项目上传到github
- 使用python调用shell判断当前进程是否存在
- ext4文件系统制作 - make_ext4fs 参数介绍【转】
- 嵌入式软件工程师笔试面试指南目录
- 辛苦编码好几年,一朝栽在算法前
- 看完这篇文章APP关键词覆盖增加70000|互联网行业公会
- 和女友做完后.......她说.....
- 作品集十(平面设计)
- 如何去除Discuz标题栏中的Powered by Discuz!
热门文章
- 开始入坑深度学习(DeepLearning)
- C++基础学习(01)--(介绍,环境配置,基本语法,注释)
- 制作作品图片_不懂人文后期制作流程?来,大师手把手教你
- python子类继承父类属性实例_python – 从子类内的父类访问属性
- Python学习8 函数 匿名函数 内置函数
- 2014年广州科目三道路驾驶技能考试/广汕路科目三路考系统操作和评判指南
- 学开车不能急于求成,心急上路
- RTP Payload Format for H.264 Video
- 无符号哥伦布指数编码
- 日期格式不符合要求:Unparseable date: quot;3e8a4d83533744c698216535a65850c0quot;