[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:hardware:syncing_hardware_clock_and_system_local_time [2013/01/11 17:39 (UTC)] – [How To Sync Your System Time to Hardware Clock Consistently] hazel | howtos:hardware:syncing_hardware_clock_and_system_local_time [2024/02/25 20:32 (UTC)] (current) – arg -u to ntpdate in case of daemon already running drbeco | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <!-- Reviewed 20130111 by hazel --> | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
- | <-- Reviewed 20130111 by hazel -->====== How To Sync Your System Time to Hardware Clock Consistently ====== | + | ====== How To Sync Your System Time to Hardware Clock Consistently ====== |
===== Overview ===== | ===== Overview ===== | ||
- | If you are booting multiple Linux distributions on the same machine, you might face the problem of inconsistent time zone settings across distributions. For example, assume you are dual-booting two Linux distributions, | + | If you are booting multiple Linux distributions on the same machine, you might face the problem of inconsistent time zone settings across distributions. For example, assume you are dual-booting two Linux distributions, |
- | if Distro X is configured to read the BIOS hardware clock as local time, then Distro X will show the correct | + | If Distro X is configured to read the hardware clock as local time, it will show the time correctly, but if Distro Y is configured to read the hardware clock as set to UTC, then it will show an incorrect |
This HOWTO attempts to provide a simple and cross-distribution one-time solution to the issue, making sure all your distributions know that your hardware clock is set to the local time (or UTC if you prefer it). | This HOWTO attempts to provide a simple and cross-distribution one-time solution to the issue, making sure all your distributions know that your hardware clock is set to the local time (or UTC if you prefer it). | ||
Line 22: | Line 23: | ||
**Update via NTP:** If you installed the ntp package you can: \\ | **Update via NTP:** If you installed the ntp package you can: \\ | ||
| | ||
+ | |||
+ | If you get the error ''" | ||
+ | | ||
-or- \\ | -or- \\ | ||
**Manual update:** \\ | **Manual update:** \\ | ||
Line 33: | Line 37: | ||
< | < | ||
- | Now boot into Distro Y and follow the same steps as above. It doesn' | + | Now boot into Distro Y and follow the same steps as above. It doesn' |
===== Syncing to UTC instead of Local Time ===== | ===== Syncing to UTC instead of Local Time ===== | ||
- | Some people prefer setting their hardware clock to UTC (Universal Coordinated Time) instead of local time. If you want to set your hardware clock to UTC and adjust the date/time accordingly, | + | Some people prefer setting their hardware clock to UTC (Universal Coordinated Time) instead of local time. If you want to set your hardware clock to UTC and adjust the date/time accordingly, |
| | ||
while setting the hardware clock from your system time. | while setting the hardware clock from your system time. |