[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édenteProchaine 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 08:51 (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. | ||
| | ||
+ | |||
+ | Si votre horloge matérielle n'est pas réglée sur l' | ||
If your hardware clock is not set to your local time, then you must set the system time to local time. As root, | 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: | + | **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 | + | Démarrez à présent avec la distribution |
+ | |||
===== Syncing to UTC instead of Local Time ===== | ===== Syncing to UTC instead of Local Time ===== |