Page 1 of 1
How to disable NTP synchronization and set hwclock to UTC
Posted: 03 Oct 2023, 15:42
by baloontravel
1) I want to have hwclock set to UTC and
2) system clock to localtime
I commented local time from porteus.cfg.
Linked time zone to /etc/localtime.
/mnt/sdb1/porteus/changes/etc/hardwareclock is set to UTC
but after boot something

changes /etc/hardwareclock to localetime
I also want to disable NTP synchronization.
How to disable NTP synchronization and set hwclock to UTC
Posted: 03 Oct 2023, 15:56
by Blaze
Hi
baloontravel,
how about open terminal and run:
Code: Select all
su
toor
cp /etc/localtime{,.bak} && rm /etc/localtime && ln -sf /usr/share/zoneinfo/UTC /etc/localtime && ntpdate pool.ntp.org && hwclock -lw
?
How to disable NTP synchronization and set hwclock to UTC
Posted: 03 Oct 2023, 16:13
by Ed_P
How to disable NTP synchronization and set hwclock to UTC
Posted: 03 Oct 2023, 17:40
by baloontravel
I executed commands with linking localetime to zoneinfo/UTC.
Did dump-session to save changes.
All clocks were set to UTC at this point.
But after reboot still hwclock and date shows my local time.
Is there any way to prevent system from changing hwclock?
How to disable NTP synchronization and set hwclock to UTC
Posted: 04 Oct 2023, 09:45
by baloontravel
I used barbaric solution and just replaced ntpdate with empty script.