LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-14-2007, 06:19 PM   #1
Bryan Sparks
LQ Newbie
 
Registered: Apr 2006
Location: Ireland
Distribution: SuSE 9.2
Posts: 4

Rep: Reputation: 0
linux changes cmos clock back to last logon


Hi Everyone,

I Dual boot a system with Windows ME and recently with no problems until recently when Linux keeps changing the System CMOS clock winding it back to when I last logged on to linux.

I can change the Date/Time using Yast and Date --set, everythings ok until I shut down and the next day start up and boot into linux.

If I choose dos/me the date and time is correct but if I boot into Linux (which is my preferred OS) the date/time seems to go back to the time that I logged off Linux.

I did play around with the Date Command and may have upset the system???
A linux newbee...
Bryan.
 
Old 01-14-2007, 09:16 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
This kind of problem can be at the system level or at the user level. In order to determine where the problem lies I recommend that you create a new user account and log on to that account. Check to see if the time is messed up in that new user account. If it is then the problem is at the system level. If the time is correct with the new user account then you know that the problem is in the user configuration files.
 
Old 01-24-2007, 06:34 PM   #3
Bryan Sparks
LQ Newbie
 
Registered: Apr 2006
Location: Ireland
Distribution: SuSE 9.2
Posts: 4

Original Poster
Rep: Reputation: 0
My cmos problem is at systems level.
Linux sees the system time clock and starts logging the boot process:

Boot logging started on /dev/tty1(/dev/console) at Thu Jan 25 00:09:33 2007

The problem starts when the OS starts to set the system time clock
<notice>run boot scripts (boot.clock)
Setting up the CMOS clockdone
<notice>exit status of (boot.clock) is (0)
<notice>run boot scripts (boot.ldconfig)
Setting up timezone datadone
INIT: Entering runlevel: 1

Boot logging started on /dev/tty1(/dev/console) at Thu Jan 18 01:18:28 2007


the above is taken from /var/log/boot.msg.

I had set the system time by entering the cmos setup before any OS was loaded. If I booted into dos/win9x the time would remain ok!!!

I may have upset boot.clock by playing around with the date command.

Any Ideas???

Bryan.

Last edited by Bryan Sparks; 01-24-2007 at 06:36 PM.
 
Old 02-01-2007, 07:20 PM   #4
Bryan Sparks
LQ Newbie
 
Registered: Apr 2006
Location: Ireland
Distribution: SuSE 9.2
Posts: 4

Original Poster
Rep: Reputation: 0
I got my cmos clock back on track again.

The Solution is to delete the file ect/adjtime and then run the Date command to set the time and date.

This is my /etc/adjtime file now:

0.069434 1170358511 0.000000
1170358511
LOCAL


This was the "bad" file that caused all my grief.

-39546.144228 1170065107 0.000000
1170063544
LOCAL
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command for setting CMOS clock to UTC? as400 *BSD 6 04-24-2006 01:39 AM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
Gaining back the clock Swift&Smart Slackware 9 09-26-2005 12:17 AM
Suse 9.2 boot hangs at "setting up cmos clock" villinux Linux - Software 2 03-19-2005 03:02 AM
system clock vs. CMOS clock dtamajka Linux - General 7 12-11-2003 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration