[질문]리눅스에서 시간이 계속 안맞습니다.

visualplus의 이미지

리눅스에서 date를 쳐보면 계속 시간이 안맞습니다.
그래서 crontab에서 계속 싱크를 맞출 수 있게 해놓긴 했는데..
근본적으로 고치고 싶습니다.
계속 시간이 실제 시간보다 늦춰지는데..
무엇이 잘못되면 이런 현상이 나타나나요..?

lee3834의 이미지

제대로 설명을 못해드려서 우선 죄송하다는 말씀을 드리구요

맨처음 리눅스 설치시에 세계지도 나오고 시간대 선택할때

아래에 무슨 체크표시가 있습니다 그것을 체크표시하고 설치하면 그렇더군요

저는 그래서 그부분 체크표시를 하지 않고 설치를 합니다 그러면 시간이 제대로 나오더군요

설치하고나서 변경하는법은 몰라서 죄송합니다

lee3834의 이미지

시간에서 우클릭하시구요
날짜 및 시간 조정을 선택하시면 가장 오른쪽에 시간대가 있구요
그곳에서 하단에 "시스템의 시간을 UTC에 맞춤" 선택을 해제해보세요

ytt123의 이미지

.

jachin의 이미지

공통적으로 /usr/share/zoneinfo/ 아래에 시스템 시간 지역에 대한 파일들이 들어있습니다. 한국에 계신다면 /usr/share/zoneinfo/Asia/Seoul 파일을 /etc/localtime 으로 복사해두시고 ntp 와 같은 시간 동기화 프로그램을 실행하셔서 컴퓨터 시간을 맞추십시오. /etc/conf.d/hwclock 파일이나 환경설정 파일에서 systohc 동기화 옵션을 활성화하시면 동기화 한 시간으로 시스템 시간이 변경될 것입니다. (BIOS 시간은 UTC 시간을 기준으로 설정되기 때문에 직접 BIOS 시간을 수정하면 시간 오차가 생기지만, /etc/localtime 파일이 있으면 BIOS 시간을 UTC 시간으로 인식하지 않고, 지역 시간으로 인식하기 때문에 듀얼부팅에서 사용하실 때 편리합니다.)
====
하나는 전부, 전부는 하나

ysy05의 이미지

시간이 점점 느려지는 것이면, 마더보드의 배터리를 교체 해야할듯 합니다.

shei77의 이미지

제가 좀 궁금한 거에여

1. 메인보드에 있는 수은 베터리가 이상한지
2. 혹시 썸머타임하고는 상관이 있는건가요?
3. 제어판 쪽에서 시간 설정이 제대로 되어 있는지를 볼꺼 같습니다.

도움이 되었으면 하네요 ;;;

----------------------------------------------------------
It's feasible to make an inspiration on your own.

----------------------------------------------------------
It's feasible to make an inspiration on your own.

ytt123의 이미지

질문하신 분께서 시간을 맞추어도 다시 느려진다고 하신거 보면
기계적인 문제 같지 않나요? 잘 모르지만, 대충 메인보드 건전지 같은거겠죠..
설정 변경해서 해결될 문제는 아닌거 같은데요...

lee3834의 이미지

윈XP 리눅스 듀얼부팅하는데

리눅스 설치시 시간설정에 UTC 사용 체크를 해놓으면 시간이 항상 이상하더라구요

bushi의 이미지

/etc/adjtime 파일에 대한 설명입니다.

       It works like this: hwclock keeps a file, /etc/adjtime, that keeps some historical information.  This  is  called  the
       adjtime file.
 
       Suppose  you start with no adjtime file.  You issue a hwclock --set command to set the Hardware Clock to the true cur-
       rent time.  Hwclock creates the adjtime file and records in it the current time as the last time the clock  was  cali-
       brated.   5  days later, the clock has gained 10 seconds, so you issue another hwclock --set command to set it back 10
       seconds.  Hwclock updates the adjtime file to show the current time as the last time the  clock  was  calibrated,  and
       records  2  seconds  per day as the systematic drift rate.  24 hours go by, and then you issue a hwclock --adjust com-
       mand.  Hwclock consults the adjtime file and sees that the clock gains 2 seconds per day when left alone and  that  it
       has been left alone for exactly one day.  So it subtracts 2 seconds from the Hardware Clock.  It then records the cur-
       rent time as the last time the clock was adjusted.  Another 24 hours goes by and you issue another  hwclock  --adjust.
       Hwclock  does  the same thing: subtracts 2 seconds and updates the adjtime file with the current time as the last time
       the clock was adjusted.
 
       Every time you calibrate (set) the clock (using --set or --systohc ), hwclock recalculates the systematic  drift  rate
       based  on  how long it has been since the last calibration, how long it has been since the last adjustment, what drift
       rate was assumed in any intervening adjustments, and the amount by which the clock is presently off.
 
       A small amount of error creeps in any time hwclock sets the clock, so it refrains from making an adjustment that would
       be less than 1 second.  Later on, when you request an adjustment again, the accumulated drift will be more than a sec-
       ond and hwclock will do the adjustment then.
 
       It is good to do a hwclock --adjust just before the hwclock --hctosys at system startup time, and  maybe  periodically
       while the system is running via cron.
 
       The  adjtime  file,  while  named  for its historical purpose of controlling adjustments only, actually contains other
       information for use by hwclock in remembering information from one invocation to the next.
 
       The format of the adjtime file is, in ASCII:
 
       Line 1: 3 numbers, separated by blanks: 1) systematic drift rate in  seconds  per  day,  floating  point  decimal;  2)
       Resulting  number  of  seconds  since 1969 UTC of most recent adjustment or calibration, decimal integer; 3) zero (for
       compatibility with clock(8)) as a decimal integer.
 
       Line 2: 1 number: Resulting number of seconds since 1969 UTC of most recent calibration.  Zero if there  has  been  no
       calibration yet or it is known that any previous calibration is moot (for example, because the Hardware Clock has been
       found, since that calibration, not to contain a valid time).  This is a decimal integer.
 
       Line 3: "UTC" or "LOCAL".  Tells whether the Hardware Clock is set to Coordinated Universal Time or local  time.   You
       can always override this value with options on the hwclock command line.

어느 분이 이미 삽질을 하시고 그 과정을 kldp 에 올려주신 적이 있는데, 찾질 못하겠네요.
UTC/Localtime 선택을 잘못한 채로 windows 와 듀얼부팅을 하는 와중에 /etc/adjtime 에 오차가 계속 누적되어 결국 듣보잡 시각으로 바뀌는 증상을 하소연 한 글이었습니다.

OTL

xyhan의 이미지

그 PC는 리눅스만 깔려 있었는데..
웨 이런일이 생기나 궁금하네요..

============================================================

선한 인간이냐 악한 인간이냐는 그사람의 의지에 달렸다. -에픽테토스-
의지 노력 기다림은 성공의 주춧돌이다. -파스퇴르-

============================================================

============================================================

선한 인간이냐 악한 인간이냐는 그사람의 의지에 달렸다. -에픽테토스-
의지 노력 기다림은 성공의 주춧돌이다. -파스퇴르-

============================================================

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.