如何讓windows和linux時鐘顯示正確且匹配的時間?[雙啟動]

有時當你設定一個雙引導系統時,時間和時鐘的設定會讓事情變得有點奇怪,那麼你如何解決這個問題呢?今天的超級使用者問答帖子提供了一個完美的解決方案,可以幫助一個沮喪的讀者解決他的雙啟動時鐘問題。...

如何讓windows和linux時鐘顯示正確且匹配的時間?[雙啟動]

有時當你設定一個雙引導系統時,時間和時鐘的設定會讓事情變得有點奇怪,那麼你如何解決這個問題呢?今天的超級使用者問答帖子提供了一個完美的解決方案,可以幫助一個沮喪的讀者解決他的雙啟動時鐘問題。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

照片由隨機抽取的吸管提供(Flickr)。

問題

超級使用者讀者arielnmz想知道如何在他的雙引導Windows/Linux設定中獲得兩個時鐘,以顯示正確的和匹配的時間:

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?

解決arielnmz的雙啟動時鐘問題的最佳方法是什麼?

答案

超級使用者貢獻者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_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] “RealTimeIsUniversal”=dword:00000001

Source

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


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-10 23:36
  • 閱讀 ( 39 )
  • 分類:網際網路

你可能感興趣的文章

雙引導作業系統的10個風險

...安裝第二個作業系統,並想知道風險?在你的電腦上安裝Windows和Linux可以讓你兩全其美。但這並不總是一帆風順的。雙重啟動可能會導致問題,其中一些問題很難預見。 ...

  • 發佈於 2021-03-11 01:07
  • 閲讀 ( 59 )

如何從windows瀏覽linux分割槽(反之亦然)

... 幸運的是,有解決辦法。這就是如何在雙引導作業系統之間共享資料的方法。 ...

  • 發佈於 2021-03-12 09:47
  • 閲讀 ( 44 )

如何在Windows10中使工作列時鐘顯示秒數

... 你的電腦需要最準確的時間嗎?檢視如何設定原子鐘同步。 ...

  • 發佈於 2021-03-12 23:21
  • 閲讀 ( 34 )

為什麼應該(不應該)雙引導linux的7個原因

...並與硬體和軟體進行互動。對許多人來說,要麼是Linux對Windows,要麼是Linux對Mac。 ...

  • 發佈於 2021-03-17 06:05
  • 閲讀 ( 50 )

如何在mac上安裝和雙引導linux

...dows,但安裝Linux則完全是另一回事。按照下面的步驟學習如何做到這一點。 ...

  • 發佈於 2021-03-18 04:03
  • 閲讀 ( 59 )

最適合簡約桌面的雨量計外殼

... 如何配置系統監視器外觀 ...

  • 發佈於 2021-03-20 06:30
  • 閲讀 ( 60 )

如何從windows雙啟動pc安全解除安裝ubuntu

... 簡而言之,你需要從你的電腦上解除安裝Ubuntu。你如何安全地做到這一點,而不丟失Ubuntu或Windows的資料? ...

  • 發佈於 2021-03-21 17:45
  • 閲讀 ( 46 )

如何建立一個小型個人電腦與迷你itx的形式因素

... 下面的步驟向您展示如何構建一個標準的、低功耗的、緊湊型桌面計算機。對於專用HTPC或遊戲計算機,您可以選擇新增專用圖形卡。類似地,如果您正在構建一個伺服器,您可能會選擇最大...

  • 發佈於 2021-03-22 03:40
  • 閲讀 ( 43 )

windows update刪除了linux!怎麼辦,怎麼預防

...是這樣,您需要修復載入程式。我們的Linux PC在不啟動時如何修復的指南向您展示瞭如何做到這一點。 ...

  • 發佈於 2021-03-22 20:48
  • 閲讀 ( 57 )

雙啟動與虛擬機器:哪一個適合你?

... 閱讀更多:如何從Windows瀏覽Linux分割槽(反之亦然) ...

  • 發佈於 2021-03-25 01:47
  • 閲讀 ( 49 )
----小可愛----
----小可愛----

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦