How to Prevent Ubuntu Linux from Resetting or Changing Computer’s BIOS or Hardware Clock

ADVERTISEMENTS

When Ubuntu Linux and Windows are used together and if the time zone is not UTC and when the computer is rebooted into Windows after Ubuntu Linux is used the time gets changed as the BIOS clock gets reset to UTC. For example if the time zone that is set in Ubuntu Linux is GMT +5.30 hrs then after Ubuntu Linux’s usage the time in BIOS clock would be set to UTC time i.e. the BIOS clock would be +5.30 hrs behind the Ubuntu Linux’s time but if you boot into Ubuntu Linux it will automatically adjust to the local time where as the time on Windows will be the UTC time which can cause issues with Windows.

The difference is the way Ubuntu Linux and Windows handle time, Windows considers the BIOS clock of the computer to be the local time where as Ubuntu considers it as UTC time. To solve this we would have to set Ubuntu Linux to consider the hardware or BIOS clock as local time

How to Prevent Ubuntu Linux from Resetting or Changing Computer’s BIOS Clock

In the following steps you can find the steps to set the hardware clock as local time in Ubuntu.

1. Open the terminal and enter the following command:

sudo gedit /etc/default/rcS

2. In the gedit window that opens ups find the the line UTC=yes and change it to UTC=no

ubuntu-linux-utc-time-setting

After you make the changes it should look like this:

ubuntu-linux-utc-time-setting-1

After you make the changes save the data using the save button. That’s  it now the Ubuntu Linux will treat the hardware or BIOS clock as the local time and the alternate boots between Windows & Ubuntu Linux should not cause issues with time.

If you liked this article, click here to buy me a Beer! :)

If you enjoyed this post, make sure you subscribe to my RSS feed!

Related Entries


5 Responses to “How to Prevent Ubuntu Linux from Resetting or Changing Computer’s BIOS or Hardware Clock”

  1. Thanks Shiva!Im searching for this info around.Yet found it here.UNow my Ubuntu Linux will treat the hardware or BIOS clock as the local time and no more clock problem!

  2. I saw this issue few days back when I logged on to Windows( which I rarely do ). This might be the reason. But I am noticing this issue only recently. Thanks for the tip.

  3. Euh are you sure it is not the other way around ? Windows does change the BIOS time to localtime. I would think your linux distribution (as it is the case in mine) just wants to know if the BIOS is set to UTC or local time.

    I would actually be interesting in finding how to prevent Windows to reset the UTC BIOS time to localtime !

  4. How can i make this change in the Ubuntu 9.10 live CD. I was trying to boot using the liveCD and it changes my BIOS clock. Any way i can edit the iso to incorporate this change?

  5. Thanks Shiva! so much.
    This is a nice and perfect solution of my PC time trouble.
    You’re perfect!!

Leave a Reply