[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.
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
fr:howtos:hardware:syncing_hardware_clock_and_system_local_time [2021/11/29 08:08 (UTC)] – créée desiderius | fr:howtos:hardware:syncing_hardware_clock_and_system_local_time [2021/11/29 09:38 (UTC)] – desiderius | ||
---|---|---|---|
Ligne 5: | Ligne 5: | ||
===== Aperçu du problème ===== | ===== Aperçu du problème ===== | ||
- | Si vous avez plusieurs distributions sur le même machine, vous pouvez | + | Si vous avez plusieurs distributions sur la même machine, vous pouvez |
- | 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 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 time. | + | Si la distribution |
- | This HOWTO attempts to provide a simple and cross-distribution one-time | + | Cet HOWTO vous propose une solution |
- | <note tip>The other solution | + | <note tip> |
- | ===== Procedure to Synchronize the System Time to Hardware Clock ===== | ||
- | This is a one-time procedure to ensure that your hardware clock's time zone is correctly and consistently recognized by all the Linux installations you multiboot on a single | + | ===== Procédure pour synchroniser votre horloge système avec votre horloge matérielle |
+ | |||
+ | C'est une procédure à faire une seule fois pour vous assurer que votre horloge matérielle est reconnue correctement par toutes les distributions | ||
+ | |||
+ | Supposons que vous puissiez démarrer Distro X et Distro Y, démarrez d' | ||
- | Assuming you are dual-booting Distro X and Y, first boot into Distribution X. First check the hardware clock with the following command. | ||
| | ||
- | If your hardware clock is not set to your local time, then you must set the system time to local time. As root, | ||
- | **Update via NTP: | + | Si votre horloge matérielle n'est pas réglée sur l' |
+ | |||
+ | |||
+ | **Update via NTP: | ||
| | ||
- | -or- \\ | + | -ou- \\ |
- | **Manual update:** \\ | + | **Mise à l' |
date --set "5 Aug 2012 12:54 IST" | date --set "5 Aug 2012 12:54 IST" | ||
- | Obviously in the above command you must set your date, time and time zone correctly. | + | Bien sûr, dans la commande précédente, |
+ | |||
+ | Maintenant, en tant que root, synchronisez l' | ||
- | Now as root, synchronize the hardware clock to the current system time as local time. | ||
| | ||
- | Now the hardware clock is readjusted to the system time and both now point to the local time. | + | |
+ | Maintenant, l' | ||
- | < | ||
- | Now boot into Distro Y and follow the same steps as above. It doesn' | ||
- | ===== Syncing to UTC instead of Local Time ===== | + | < |
+ | |||
+ | Démarrez à présent avec la distribution Y et suivez les mêmes étapes que précédemment. Cela ne fait rien si l' | ||
+ | |||
+ | |||
+ | ===== Synchronisation avec l'UTC au lieu de l' | ||
+ | |||
+ | Certaines personnes préférent régler leur horloge matérielle à l'UTC (Universal Coordinated Time) au lieu de l' | ||
- | 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. | + | |
+ | en réglant votre horloe matérielle à l'aide votre horloge système. | ||
+ | . | ||
<note important> | <note important> | ||
+ | <note important> | ||
+ | |||
+ | < | ||
====== Sources ====== | ====== Sources ====== | ||
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> | ||
- | * Originally written by [[wiki: | + | * Article original par [[wiki: |
- | * Based on Harishankar's blog article [[http:// | + | * Basé sur l' |
+ | * Traduction francaise [[wiki: | ||
<!-- Authors are allowed to give credit to themselves! --> | <!-- Authors are allowed to give credit to themselves! --> | ||
<!-- * Originally written by [[wiki: | <!-- * Originally written by [[wiki: | ||
+ | |||
<!-- * Contrbutions by [[wiki: | <!-- * Contrbutions by [[wiki: | ||