hwclock superblock mounted in future
来源:互联网 发布:java web spring 搭建 编辑:程序博客网 时间:2024/05/16 09:09
在使用linux的过程中,可能遇到系统时候和硬件时钟不一致,即date,hwclock --show看到的时钟不一致。
Linux时钟分为系统时钟(System Clock)和
硬件
(Real Time Clock,简称RTC)时钟。系统时钟是指当前Linux Kernel中的时钟,而硬件时钟则是
主板
上由电池供电的时钟,这个硬件时钟可以在BIOS中进行设置。当Linux启动时,硬件时钟会去读取系统时钟的设置,然后系统时钟就会独立于硬件运作。
Linux中的所有命令(包括函数)都是采用的系统时钟设置。在Linux中,用于时钟查看和设置的命令主要有date、hwclock和clock。其中,clock和hwclock用法相近,只用一个就行,只不过clock命令除了支持x86硬件体系外,还支持Alpha硬件体系。
如果调整BIOS的时间 ,也就是硬件时钟。不用重启机器,在linux系统中就能完成。
# hwclock --set --date="4/28/05 11:10:05"(月/日/年 时:分:秒)
# clock --set --date="07/07/06 10:19" (月/日/年 时:分:秒)
如果让系统时间与硬件时钟同步,则用
# hwclock --hctosys (hc代表硬件时间,sys代表系统时间)
# clock --systohc 系统时钟和硬件时钟同步:
时区的设置
# tzselect
或者
如果不用tzselect命令,可以修改文件变更时区。
# vi /etc/sysconfig/clock
ZONE=Asia/Shanghai(查/usr/share/zoneinfo下面的文件)
UTC=false
ARC=false
# rm /etc/localtime
# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
重新启动即可。
现在我们再来看系统时间和硬件时间是不是一样了??
# date ;hwclock
还要知道几个命令,比如 timeconfig
时间的东西还有好多,最好看一下 /etc/目录中的配置文件。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5740/showart_1073797.html
Linux时钟分为系统时钟(System Clock)和
硬件
(Real Time Clock,简称RTC)时钟。系统时钟是指当前Linux Kernel中的时钟,而硬件时钟则是
主板
上由电池供电的时钟,这个硬件时钟可以在BIOS中进行设置。当Linux启动时,硬件时钟会去读取系统时钟的设置,然后系统时钟就会独立于硬件运作。
Linux中的所有命令(包括函数)都是采用的系统时钟设置。在Linux中,用于时钟查看和设置的命令主要有date、hwclock和clock。其中,clock和hwclock用法相近,只用一个就行,只不过clock命令除了支持x86硬件体系外,还支持Alpha硬件体系。
如果调整BIOS的时间 ,也就是硬件时钟。不用重启机器,在linux系统中就能完成。
# hwclock --set --date="4/28/05 11:10:05"(月/日/年 时:分:秒)
# clock --set --date="07/07/06 10:19" (月/日/年 时:分:秒)
如果让系统时间与硬件时钟同步,则用
# hwclock --hctosys (hc代表硬件时间,sys代表系统时间)
# clock --systohc 系统时钟和硬件时钟同步:
时区的设置
# tzselect
或者
如果不用tzselect命令,可以修改文件变更时区。
# vi /etc/sysconfig/clock
ZONE=Asia/Shanghai(查/usr/share/zoneinfo下面的文件)
UTC=false
ARC=false
# rm /etc/localtime
# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
重新启动即可。
现在我们再来看系统时间和硬件时间是不是一样了??
# date ;hwclock
还要知道几个命令,比如 timeconfig
时间的东西还有好多,最好看一下 /etc/目录中的配置文件。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5740/showart_1073797.html
- hwclock superblock mounted in future
- Superblock mount time is in the future
- linux:Superblock mount time is in the future
- Superblock last mount time is in the future.
- hwclock
- hwclock
- hwclock
- hwclock
- Hot Tech in Future
- Modified in the future
- the root filesystem is currently mounted in read-only mode
- in future 和 in the future用法的区别
- Operating System in the future
- warning modified in the future
- Future of threading in Ogre
- Future与Promise in Scala
- InnoDB: is in the future!
- vue--mounted
- kmalloc kfree学习笔记
- js逻辑运算符==与===
- FreeBSD 安裝vim
- model,dal,DataHelp
- SUPEclipse安装问题
- hwclock superblock mounted in future
- 自己的os---boot.s引导扇区运行在bochs上
- 在web下的 sun.net.ftp.FtpClient 的ftp上传与下载
- android:设置密码隐藏与显示
- Linux的Shell Script学习
- keil c51 不能使用:Go to Definition of....的解决方法
- Javascipt, that you do not know yet——Data Type
- Qt事件机制
- Tomcat開發技術之與HTTP服務器的集成