LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 27
Disable hardware clock syncronisation by kernel


hi
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

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

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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
ilvista
Member
 
Registered: Nov 2010
Location: Ghazaouet
Distribution: Fedora OpenSuse
Posts: 153

Original Poster
Rep: Reputation: 27
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
Code:
[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 !!
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 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
Open Source Consulting | Domain Registration