新版Ubuntu:
新版本的Ubuntu使用systemd启动之后,时间也改成了由timedatectl来管理,此方法就不适用了。
sudo timedatectl set-local-rtc 1
重启完成将硬件时间UTC改为CST,双系统时间保持一致。
先在ubuntu下更新一下时间,确保时间无误:
sudo apt-get install ntpdate
sudo ntpdate time.windows.com
然后将时间更新到硬件上:
sudo hwclock --localtime --systohc
重新进入windows10,发现时间恢复正常了!

本文介绍如何在新版Ubuntu中通过设置本地RTC为1,并利用timedatectl和hwclock命令实现Ubuntu与Windows双系统间的时间同步。
2022

被折叠的 条评论
为什么被折叠?



