LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 01-25-2006, 08:18 AM   #1
fulvio
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
Mine linux it runs too much.


I have a system linux to which I cannot connect no type of NTP Serveur that goes ahead in the time. With adjtime command I have not had large successes. The system is one RH8.0 kernel 2.4.18-14. From which version of kernel it has been improved the management of date and hour. You have some suggestion in order to resolve in the meantime this problem.
Thanks.
Fulvio
 
Old 01-26-2006, 01:54 AM   #2
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
If you can't set up the time propperly via NTP try using a clock as reference and set
the time via BIOS. Adjtimex will do the same, but it's easier from the BIOS and you can also watch if the CMOS time is correct.

If the clock gets resetted every time you boot, then the problem is that your battery is empty. I'm talking about the button-type bat in your motherboard.
In case you still have problems with the CMOS clocl the problem is probably hardware related or you have done weird things with adjtimex (setting it via init-script or the like?).

If you have internet access, try setting up a ntp client anyway. I have been running some years with one just because I was too lazy to change the battery
 
Old 01-26-2006, 10:41 AM   #3
fulvio
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
My system linux works 24 on 24! It does not have never to be extinguished. To cron every day I copy the hour of system in that hardware. If you want I could enclose the output to you of dmesg! Mine linux it earns also fifteen second ones to the day!

I can't have internet connection on this system ( security!). J haven't graphical desktop; only character tty and commands by bash!

Ciao,
Fulvio
 
Old 01-26-2006, 03:22 PM   #4
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Yo can use hwclock

First issue

Code:
hwclock --set --date=XXXXXXX (same as the date command)
After 24h or so you should set the date again with the same command and the correct time taken from a clock or the like.

You can also adjust it some times more to get an accurate idea of the systematic drift.

Once done with this you can insert the commands:


Code:
hwclock --adjust
hwclock --hctosys
to adjust the time (at startup or periodically via cronjob) and copy the adjusted time to the system time.

Hope it helps, and take a look at man 8 hwclock

Nota, that you can get very accurate results using this command propperly.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a dll that runs in linux code learner Linux - Software 3 01-20-2006 01:53 PM
A Linux Distro that runs off of CD????? darkone66669 Linux - Distributions 13 05-01-2004 10:18 PM
Bootable Linux runs from CD... linux_nubee Linux - General 4 09-26-2003 01:38 PM
SCO still runs... linux? carrja99 General 3 08-03-2003 01:21 PM
NASA runs on linux!!! :D shot_baker General 10 10-08-2002 08:33 AM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration