安装双系统后大多数都会出现windows和ubuntu系统时间不同步的问题,这是由于window使用的BIOS时间作为系统的当前时间,而ubuntu则是使用的UCT(时间标准时间),既BIOS时间作为GMT+0时间,我们东8区的时间在ubuntu上的显示则是BIOS时间+8.
为了解决这个问题:
我们先更新ubuntu的系统时间
sudo apt-get install nptdate
sudo nptdate time.windows.com
然后写到硬盘上:
sudo hwclock --localtime --systohc