Kā iegūt Windows un Linux pulksteņus, lai parādītu pareizo un atbilstošo laiku? [Dual-Boot]

Satura rādītājs:

Kā iegūt Windows un Linux pulksteņus, lai parādītu pareizo un atbilstošo laiku? [Dual-Boot]
Kā iegūt Windows un Linux pulksteņus, lai parādītu pareizo un atbilstošo laiku? [Dual-Boot]

Video: Kā iegūt Windows un Linux pulksteņus, lai parādītu pareizo un atbilstošo laiku? [Dual-Boot]

Video: Kā iegūt Windows un Linux pulksteņus, lai parādītu pareizo un atbilstošo laiku? [Dual-Boot]
Video: How To Turn Your Smartphone Into A Desktop PC - YouTube 2024, Aprīlis
Anonim
Dažreiz, iestatot dubultās sāknēšanas sistēmu, lietas var iegūt mazliet dīvaini ar laika un pulksteņa iestatījumiem, tāpēc kā jūs izlabojat problēmu? Šodienas SuperUser Q & A ziņā ir ideāls risinājums, lai palīdzētu neapmierinātam lasītājam novērst dubultās palaišanas pulksteņa bēdas.
Dažreiz, iestatot dubultās sāknēšanas sistēmu, lietas var iegūt mazliet dīvaini ar laika un pulksteņa iestatījumiem, tāpēc kā jūs izlabojat problēmu? Šodienas SuperUser Q & A ziņā ir ideāls risinājums, lai palīdzētu neapmierinātam lasītājam novērst dubultās palaišanas pulksteņa bēdas.

Šodienas jautājumu un atbilžu sesija mums priecājas par SuperUser - Stack Exchange dalību, kas ir kopienas vadīta Q & A tīmekļa vietņu grupa.

Foto pieklājīgi no Salēm izvilka nejauši (Flickr).

Jautājums

SuperUser lasītājs arielnmz vēlas uzzināt, kā iegūt abus Windows / Linux iestatīšanas dubultās sāknēšanas pulksteņus, lai parādītu pareizos un atbilstošos laikus:

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?

Kāda ir labākā metode, kā noteikt arielnmz dubultās palaišanas pulksteņa problēmu?

Atbilde

SuperUser avots Ayan Patra mums ir atbilde:

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.

Vai kaut ko pievienot paskaidrojumam? Skatieties komentāros. Vēlaties lasīt citas atbildes no citiem tehnoloģiju savvy Stack Exchange lietotājiem? Šeit skatiet pilnu diskusiju pavedienu.

Ieteicams: