LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-07-2009, 11:14 PM   #1
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Arch
Posts: 118

Rep: Reputation: 16
Different times in Debian and Windows


I was so excited about coming back to using Debian after quite a long time, and especially about a successful dual-boot set-up with Win7. But, you know...here I am with this problem.

I'm sure I had set the correct time zone during installation of Debian and at one stage the installer asked if other OSes on my machine had UTC set. Now, both Win7 and Debian had set the same correct time zone, but when I logged in to Debian it gave an incorrect time, which I set corrected.

After a reboot, however, the start-up process showed a horrifying error, saying the last boot time logged in the system was in the future! It suggested running fsck without -a or -p options while the file system is mounted read-only. I had to run fsck twice before I could logged in to my Debian system again without any problem. But when I logged in to Win7 it was showing an incorrect time, which I had to change manually. And guess what! - This changed the time in Debian to a future time seven hours ahead!

Is there a way I could set the same time in both my OSes?

My time zone is for Dhaka, Bangladesh (UTC +6 with DST, which actually makes it UTC +7).
 
Old 12-08-2009, 12:42 AM   #2
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 564

Rep: Reputation: 131Reputation: 131
Debian, like all other unix OSes, thinks that the time inside bios is in GMT, so it adds your time difference from GMT time to show you the current time for your location, aka local time

Windows on the other hand thinks that the bios clock is on local time and it simply does nothing.

To fix this, open your /etc/default/rcS and change the line "UTC=yes" to "UTC=no"

Last edited by jim_p; 12-08-2009 at 12:44 AM.
 
1 members found this post helpful.
Old 12-08-2009, 12:47 AM   #3
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Arch
Posts: 118

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jim_p View Post
Debian, like all other unix OSes, thinks that the time inside bios is in GMT,
Hello jim, so, why should Debian think so?

EDIT: Thanks for the solution, I'll check it shortly.

Last edited by TristanDee; 12-08-2009 at 12:49 AM.
 
Old 12-08-2009, 02:09 AM   #4
TristanDee
Member
 
Registered: Nov 2007
Location: Dhaka, Bangladesh
Distribution: Arch
Posts: 118

Original Poster
Rep: Reputation: 16
Thanks Jim, although I had to manually change the system time, reboot and do fsck twice again, and then use
Code:
hwclock --systohc
to set the corrected system time to hardware clock. Now both my systems have the same time.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Being Debian leader can be 'scary at times' LXer Syndicated Linux News 0 08-08-2008 09:00 AM
Internet speed is 50 times slower on Linux than on Windows callum85 Linux - Networking 2 10-05-2006 02:02 PM
System hangs; Atheros Madwifi-ping times out every 15/16 times james 456 Linux - Networking 0 01-12-2006 06:55 PM
Internet 10 times slower in linux than in windows samx123 Linux - Wireless Networking 5 03-08-2004 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration