วิธีรับนาฬิกา Windows และ Linux เพื่อแสดงเวลาที่ถูกต้องและจับคู่? [Dual-Boot]

สารบัญ:

วีดีโอ: วิธีรับนาฬิกา Windows และ Linux เพื่อแสดงเวลาที่ถูกต้องและจับคู่? [Dual-Boot]

วีดีโอ: วิธีรับนาฬิกา Windows และ Linux เพื่อแสดงเวลาที่ถูกต้องและจับคู่? [Dual-Boot]
วีดีโอ: วิธีตั้งค่า Sound คอมพิวเตอร์ใน Windows 11 ที่ควรรู้ #catch5 #windows11 #sound 2024, มีนาคม
วิธีรับนาฬิกา Windows และ Linux เพื่อแสดงเวลาที่ถูกต้องและจับคู่? [Dual-Boot]
วิธีรับนาฬิกา Windows และ Linux เพื่อแสดงเวลาที่ถูกต้องและจับคู่? [Dual-Boot]
Anonim
บางครั้งเมื่อคุณตั้งค่าระบบบูตแบบ dual, สิ่งที่จะได้รับบิตแปลกกับการตั้งค่าเวลาและนาฬิกาดังนั้นคุณจะแก้ไขปัญหาได้อย่างไร? โพสต์ SuperUser Q & A ของวันนี้มีโซลูชั่นที่สมบูรณ์แบบเพื่อช่วยให้ผู้อ่านรู้สึกท้อแท้ในการแก้ไขนาฬิกา woes แบบ dual-boot
บางครั้งเมื่อคุณตั้งค่าระบบบูตแบบ dual, สิ่งที่จะได้รับบิตแปลกกับการตั้งค่าเวลาและนาฬิกาดังนั้นคุณจะแก้ไขปัญหาได้อย่างไร? โพสต์ SuperUser Q & A ของวันนี้มีโซลูชั่นที่สมบูรณ์แบบเพื่อช่วยให้ผู้อ่านรู้สึกท้อแท้ในการแก้ไขนาฬิกา woes แบบ dual-boot

เซสชั่นคำถามและคำตอบในวันนี้มาถึงเราโดยสุจริตของ SuperUser ซึ่งเป็นแผนกย่อยของ Stack Exchange ซึ่งเป็นกลุ่มเว็บไซต์ Q & A ที่ขับเคลื่อนโดยชุมชน

รูปถ่ายของ Straws ดึงแบบสุ่ม (Flickr)

คำถาม

ผู้อ่าน superUser arielnmz อยากรู้ว่าจะใช้นาฬิกาทั้งสองแบบในการติดตั้ง Windows / Linux แบบ dual-boot เพื่อแสดงเวลาที่เหมาะสมและตรงกับเวลา:

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?

วิธีที่ดีที่สุดในการแก้ไขปัญหานาฬิกา dual-boot clock ของ arielnmz คืออะไร?

คำตอบ

ผู้สนับสนุน SuperUser Ayan Patra มีคำตอบสำหรับเรา:

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.

มีบางอย่างที่จะเพิ่มคำอธิบายหรือไม่? เสียงออกในความคิดเห็น ต้องการอ่านคำตอบเพิ่มเติมจากผู้ใช้ Stack Exchange ที่มีความเชี่ยวชาญด้านเทคโนโลยีหรือไม่? ดูหัวข้อการสนทนาฉบับเต็มได้ที่นี่

แนะนำ: