LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1598|回复: 16

时间总是走快

[复制链接]
发表于 2009-10-16 19:15:52 | 显示全部楼层 |阅读模式
在Windows没事,但是在Arch下就走快,开一天机的话能快上半个小时左右。

用了ntp,也是不行,有没有朋友知道这个怎么解决?谢谢
发表于 2009-10-16 19:39:52 | 显示全部楼层
我2个月前也是这样    实在没办法, 重装了系统 ;
回复 支持 反对

使用道具 举报

发表于 2009-10-16 20:16:21 | 显示全部楼层
rc.conf贴一下
回复 支持 反对

使用道具 举报

发表于 2009-10-16 20:17:14 | 显示全部楼层
哪位大侠能进来详细地说一说,自从前几天升级以后我的系统时间从来没有正确过

,google了一大堆方法也没有搞定。时间不正确有时导致系统无法启动(因为前次

mount的时间在本次mount时间之后)。
回复 支持 反对

使用道具 举报

发表于 2009-10-16 20:23:09 | 显示全部楼层
rc.conf一开始那段贴一下
回复 支持 反对

使用道具 举报

发表于 2009-10-16 20:59:28 | 显示全部楼层
把/var/lib/hwclock/adjtime删掉,然后调整好系统时间,重启下试试。
回复 支持 反对

使用道具 举报

发表于 2009-10-16 21:15:29 | 显示全部楼层
偶差不多几个月前也是时间走的快半个小时甚至一两个小时,只好每天开机后在线同步时间,结果后来莫名就好了,
回复 支持 反对

使用道具 举报

发表于 2009-10-16 22:04:35 | 显示全部楼层
Post by jarryson;2037173
rc.conf贴一下


#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Asia/Shanghai"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USEcolor="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="MYNEW"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 192.168.1.211 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network !netfs !crond @alsa @stbd hal gdm)
回复 支持 反对

使用道具 举报

发表于 2009-10-16 22:22:02 | 显示全部楼层
解决方法:
安装openntpd:sudo pacman -S openntpd
配置文件不用改
添加服务:
DAEMONS=(syslog-ng network @mpd netfs crond @openntpd @hal  ...)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-17 00:58:45 | 显示全部楼层
Post by socket9999;2037188
把/var/lib/hwclock/adjtime删掉,然后调整好系统时间,重启下试试。


谢谢,不过这个早就试过了,还是不行
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表