Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-08-2012, 07:19 AM   #1
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Rep: Reputation: 21
Disable hardware clock syncronisation by kernel

I 've a problem disabling the hardware clock syncronisation by the kernel.
now when i change the date from the gnome desktop,the bios clock changes also .is there anyway to disable this syncro.

i tried hwclock with all possible options and still get the same result.

i'm running Centos 6.2

Old 05-08-2012, 07:25 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
I don't believe the kernel is doing such a sync.

At boot the hwclock is read to set the system time.

At shutdown the system time is written to the hwclock to sync them.

If you do "grep hwclock /etc/init.d/*" you'll see the scripts that are running the hwclock command. You might try commenting out the lines there.

The question is why wouldn't you want hwclock and system time to be the same?
1 members found this post helpful.
Old 05-08-2012, 08:23 AM   #3
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 150

Original Poster
Rep: Reputation: 21
thx for the fast reply

well my company has a lot of databases servers ,and sometimes they need to change the system date to insert some old records , so they have to change the date (this a database migration) .sometimes employees forget to change the date back ,so the next boot the server wont boot up because of fsck check (the date of last modified is in the future) .

anyway ,i tried what you told me
[root@srv2115 ilvista]# grep hwclock /etc/init.d/*
/etc/init.d/halt:[ -x /sbin/hwclock -a -e /dev/rtc ] && action $"Syncing hardware clock to system time" /sbin/hwclock --hctosys
/etc/init.d/ntpdate:		#    /sbin/hwclock --systohc

I tried to comment the /sbin/hwclock --systohc but the hardware clock is still changing whenever i change the gnome destop date.

thx a lot ,I think i'm gettin closer !!


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
Why system clock runs faster than hardware clock? DavidLiu Linux - Software 2 01-23-2011 07:38 AM
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
Failed to set system clock to hardware clock jrtayloriv Linux - Newbie 2 09-25-2008 07:06 AM
Slow system clock and stray hardware clock, pleas help! Epox Linux - General 6 01-02-2007 02:43 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 AM.

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