Hvordan få Windows og Linux klokker til å vise riktig og matchende tid? [Dual-Boot]

Innholdsfortegnelse:

Hvordan få Windows og Linux klokker til å vise riktig og matchende tid? [Dual-Boot]
Hvordan få Windows og Linux klokker til å vise riktig og matchende tid? [Dual-Boot]

Video: Hvordan få Windows og Linux klokker til å vise riktig og matchende tid? [Dual-Boot]

Video: Hvordan få Windows og Linux klokker til å vise riktig og matchende tid? [Dual-Boot]
Video: Mobile Device Synchronization - CompTIA A+ 220-1001 - 1.7 - YouTube 2024, April
Anonim
Noen ganger når du konfigurerer et dual-boot-system, kan ting bli litt rart med klokkeinnstillingene, så hvordan løser du problemet? Dagens SuperUser Q & A-innlegg har den perfekte løsningen for å hjelpe en frustrert leser å fikse sin dual-boot klokkewoes.
Noen ganger når du konfigurerer et dual-boot-system, kan ting bli litt rart med klokkeinnstillingene, så hvordan løser du problemet? Dagens SuperUser Q & A-innlegg har den perfekte løsningen for å hjelpe en frustrert leser å fikse sin dual-boot klokkewoes.

Dagens Spørsmål & Svar-sesjon kommer til oss med høflighet av SuperUser-en underavdeling av Stack Exchange, en fellesskapsdrevet gruppering av Q & A-nettsteder.

Foto courtesy av Straws trukket tilfeldig (Flickr).

Spørsmålet

SuperUser leser arielnmz vil vite hvordan å få begge klokkene på sin dual-boot Windows / Linux oppsett for å vise riktig og matchende ganger:

Ever since I started using Linux in a dual-boot set up with Windows, I have noticed when I rebooted the machine, the time on the other operating system was wrong (for example, 12:00 on Linux, reboot to Windows and see 18:00). When I checked the BIOS, the RTC was set to 18:00.

Since my time zone is -06:00 CST, I assume Linux just sets the RTC’s time to UTC and re-calculates the time based on the time zone whereas Windows just sets the RTC to the time for the time zone. Both use the same NTP server to synchronize the time.

My question is, which one is doing the right thing? On which one should I set the time zone setting to UTC in order to have the right time on both?

Hva er den beste metoden for å fikse arielnmz dual-boot klokke problem?

Svaret

SuperUser bidragsyter Ayan Patra har svaret for oss:

I recently faced the same problem and this is how I fixed it. You need to make some minor changes in both operating systems.

I started with Linux first. Run the following commands as root:

ntpdate pool.ntp.org

This will update your time if it is not set correctly.

Now set the hardware clock to UTC with this command.

hwclock –systohc –utc

Source

Now boot to Windows and add the following to the registry. Simply create a.reg file using the code below in Notepad. Save it and run it.

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation] “RealTimeIsUniversal”=dword:00000001

Source

From the next boot onward, both operating systems will show you the correct time.

Har du noe å legge til forklaringen? Lyder av i kommentarene. Vil du lese flere svar fra andre tech-savvy Stack Exchange-brukere? Sjekk ut hele diskusjonstråden her.

Anbefalt: