There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming hard drive hardware hdmi internet java laptop malware memory monitor motherboard music network obp printer problem ram random registry router slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Solved: Dual Boot (XP and Ubuntu) clock issues

Reply  
Thread Tools
shobuz99's Avatar
Computer Specs
Member with 84 posts.
 
Join Date: Oct 2007
Location: Upper New York State
Experience: Intermediate
13-Jun-2008, 08:58 PM #1
Solved: Dual Boot (XP and Ubuntu) clock issues
After a successful install and setup of Ubuntu 8.04 and XP to be dual booted (thanks to Tomdkat ), I've run into some minor annoyances.
One is my digital clock in the tray, on Windows XP.
Whenever I boot my machine, and select Windows, the digital clock in the tray is 4 hours ahead, ie. my time is EDT 4:00pm and the clock reads EDT 8:00pm.
I adjust the time (move it back 4 hours) and it's fine.
Then I reboot to Ubuntu and that clock is correct, ie 4:00pm EDT
When I reboot back to Windows, it's ahead 4 hours again...
Ubuntu is always correct, no need to change it.
I've tried to change settings within the Time/Date feature of XP, and it doesn't matter
what I do. Anyone have any suggestions?
Thanks
Shobuz99
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
13-Jun-2008, 09:26 PM #2
Hi shobuz99,

4 hours ahead is consistent with UTC time, i.e. over in England from your locale in EDT region (I am in the Boston, MA area).

So, your timezone should be set for Eastern Daylight Time. If you are not adjusting the timezone to EDT, and simply changing the time, you are probably only changing the time for the duration of your session until you boot up again.

Are you changing the TimeZone in WinXP?

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
shobuz99's Avatar
Computer Specs
Member with 84 posts.
 
Join Date: Oct 2007
Location: Upper New York State
Experience: Intermediate
13-Jun-2008, 10:00 PM #3
lotuseclat79,
Thanks for answering so quickly.
Yep. It is set for (GMT-05:00) Eastern Time (US & Canada)
in the Time Zone tab of Date and Time Properties.
under the Date & Time tab (calendar and clock),
the statement at the bottom is:
"Current Time Zone: Eastern Daylight Time"

I've checked the BIOS and it is correctly set.

Is there another place in XP System (control panel)
where the Time Zone is REALLY set?
Shobuz99
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
14-Jun-2008, 10:31 AM #4
Hi shobuz99,

Most definitely there is - i.e. probably in the registry. I suspect there is a startup either application or system that is not properly set and resets the time back to UTC time every new bootup WinXP session.

The first thing I would do is visit microsoft.com and Search for "WinXP +setting timezone +registry and read all of the links for an answer.

One thing you can do is search for a Sysprep.inf file which is the answer file that can be modified. It has timezone settings you should check to see if they correspond to your problem when your system was setup initially.

One thing I heartily recommend for all WinXP users is to visit the SysInternals web page at microsoft.com and download a number of the utilities - you can never have enough good tools when using a Windows OS!

Other than those suggestions, this sounds like a problem you should post in the WinXP forum (as it has nothing to do with Linux - i.e. Linux is not the cause of your problem).

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
shobuz99's Avatar
Computer Specs
Member with 84 posts.
 
Join Date: Oct 2007
Location: Upper New York State
Experience: Intermediate
14-Jun-2008, 12:18 PM #5
lotuseclat79,
Thanks for the suggestions.
I DO think that Linux (Ubuntu) plays a role in this mystery.
The reason, is that this problem didn't exist before I installed the Linux drive and the setup the dual boot process.
Yesterday, I moved the Windows XP item of the boot/grub/menu.lst
file, to the top of the list; instead of the bottom, where I put it originally.
I did this because I wanted to boot XP by default and not Ubuntu.
Today I booted my machine, default to XP, and when it came up,
the clock was correct.
Up until today, Ubuntu was the default.
When I chose to reboot to Windows XP, the XP clock was now 4 hours off.
I will try this today and see what happens.
So, I believe Linux is taking control of the BIOS clock setting or something,
when it is booted and Windows doesn't change it when I reboot to Windows.

I'll definitely look into your suggestions and put up the same question
on the Ubuntu forums as well.
Thanks for you help on this..
Shobuz99
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
15-Jun-2008, 10:08 AM #6
Hi shobuz99,

In the file, boot/grub/menu.lst, if you insert the following line:
Default=0
then the first OS will be the default.
Setting Default=1 will default to the second, and so on.

You can also set the number of seconds to timeout of your preference:
Timeout=15
sets it to 15 seconds if the default 30 is too long to wait in choosing which OS to boot.

Let us know how things work out.

Working from a Linux Live CD environment everyday has its consequences as it forces me to reset the system time with every boot. On the plus side - I use an atomic watch with the date command to make it as accurate as possible without running an ntp server. Also, I know the specific changes that must be made to handle timezones properly along with daylight saving time.

If you have any problems with the Linux time, let us know also and we can help.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
shobuz99's Avatar
Computer Specs
Member with 84 posts.
 
Join Date: Oct 2007
Location: Upper New York State
Experience: Intermediate
21-Jun-2008, 04:35 PM #7
lotuseclat79
Sorry for the long delay between posts.
I have made some discoveries, but not yet solved the problem.

First, I was incorrect about saying that the BIOS did not change.
It did change. But only after I restart the computer from Ubuntu
and select the BIOS prior to the /boot/grub/menu.lst.
It always changes after Ubuntu.
If I boot to Windows from the /boot/grub/menu.lst, from cold start,
the clock in the BIOS is correct and the time is correct when it gets
to Windows.
The only time it changes is when I decide to restart from Windows,
got to the /boot/grub/menu.lst and select Ubuntu.
Once I have the Ubuntu screen up, the Time/Date in Ubuntu is correct, too.
Yet, when I restart from Ubuntu, the BIOS shows the clock to be 4 hours ahead.
Conclusion: Ubuntu is changing the BIOS.
Question: Why?
Thanks
Rick (Shobuz99)
shobuz99's Avatar
Computer Specs
Member with 84 posts.
 
Join Date: Oct 2007
Location: Upper New York State
Experience: Intermediate
22-Jun-2008, 04:08 PM #8
Solved: Dual Boot (XP and Ubuntu) clock issues
Just an update to say that my problem has been solved.
I finally found out how to change a file in Ubuntu that sets the clock
to local time instead of UTC or Universal Time; which is 4 hours exactly, ahead of Eastern time.
From Ubuntu forum:
"To keep Linux from using UTC Right click on the clock > Preferences > uncheck the UTC box.
Or if you don't have the clock edit /etc/default/rcS and change the line UTC=yes to UTC=no
If you need to change the timezone this can be done by running sudo tzselect"


I also didn't know how to log in as root and change the UTC settings,
which is what is required to change it. I got access denied when I tried the command logged in as Rick...
Here's the command that I got from another person on the same forum
to change it in root.
From Ubuntu forum:
"gksu gedit /etc/default/rcS" (don't use quotes)

This solved my problem, once I set the UTC to 'no'.
Apologies to this forum for getting the answer from a different forum.
No disrespect intended.
Hopefully, this information can help someone else, who is new to Ubuntu and Linux.
Thanks again for everyone's help on this.
Rick (Shobuz99)
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
24-Jun-2008, 10:10 AM #9
Hi Rick,

Here is how I setup my localtime (I use a Live CD, so Ubuntu 8.04 LTS is not installed):

To get into the root account (on Live CD - probably requires root account password for an installed OS): Use Applications>Accessories>Terminal to bring up a command line window (for ubuntu regular user), then type in the command:
ubuntu@ubuntu:~$ sudo -i
which kicks you into the root account.

Then I run the following code in a script:
# setup local timezone:
rm /etc/localtime
# setup for EDT and EST (+4 EDT; +5 EST)
ln -s /usr/share/zoneinfo/EST5EDT /etc/localtime
# setup for only EST (+5 EST)
#ln -s /usr/share/zoneinfo/EST /etc/localtime
rm /etc/timezone
echo "US/Eastern" > /etc/timezone
export TZ="/usr/share/zoneinfo/America/New_York"
#Note: as root, set system clock for UTC time after this script, i.e. date -u MMDDhhmm command using atomic watch or some other method which will then automatically due to the previous commands pick up the correct local time for EST5EDT. And, as Rick mentioned above, UTC (Greenwich Time aka GMT in London) is 4 hours ahead of EDT in USA, so, it is local time + 4 hours when you use the date command, as above.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein

Last edited by lotuseclat79; 24-Jun-2008 at 06:03 PM..
shobuz99's Avatar
Computer Specs
Member with 84 posts.
 
Join Date: Oct 2007
Location: Upper New York State
Experience: Intermediate
24-Jun-2008, 10:17 AM #10
lotuseclat79,
Thanks Tom.
I'm glad you showed the command to get to root: sudo -i
I did not know that.
Thanks again for all your help with this.
Hopefully this thread will help someone else.

Rick (Shobuz99)
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:10 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.