windowns和ubuntu双系统时间不一致

新版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,发现时间恢复正常了!

猜你喜欢

转载自blog.csdn.net/yong15565566939/article/details/81325916