LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-08-2008, 05:17 AM   #1
wedz
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Rep: Reputation: 0
Question (Lenny) once again, dual boot and wrong system time


Hi,

I have been trying to a week now to get my dual system to work properly, and I still can't make the 2 systems live happily in the same time zone.

Since I'm dual booting, I'm assuming because of XP I have to set system time to BIOS.

Now, to let Debian know that my system time is not in UTC, I have set in the /etc/defaults/rcS "UTC=no".

Since running "hwclock" on my system seems to fail to this message:
Code:
select() to /dev/rtc to wait for clock tick timed out
I added HWCLOCKPARS=--directisa to the same file.

I also added the same parameter to these scripts:
/etc/init.d/hwclock.sh
/etc/init.d/hwclockfirst.sh (not sure this one was mandatory ?)

But for some reason running hwclock without manually adding "--directisa" still fails to the same error message.
I don't understand why.

I have properly set my timezone to Europe/Helsinki:
Code:
dpkg-reconfigure tzdata

Current default timezone: 'Europe/Helsinki'
Local time is now:      Sun Jun  8 15:25:29 EEST 2008.
Universal Time is now:  Sun Jun  8 12:25:29 UTC 2008.
But for some reason the system seems to still think that the time in BIOS is in UTC, even though I have set the UTC=no in rcS

I'm lost here. Any ideas ? This is obviously quite frustrating..


Also NTP has been removed from Lenny, because of some license violations, so I can't just synchronize time from internet either..
But that's another headache
 
Old 06-08-2008, 06:26 PM   #2
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
You can still install ntp from sid I believe...

If you compile a new kernel and set "Enhanced Real Time Clock Support" (under Device Drivers --> Character Devices, in xconfig/qconf anyway) as a builtin, not a module, the "waiting for clock tick timed out" error will go away.

I also set my BIOS clock to localtime, and I have UTC=no in /etc/default/rcS, I get this when reconfiguring tzdata:
Code:
sudo dpkg-reconfigure tzdata

Current default timezone: 'America/Toronto'
Local time is now:      Sun Jun  8 19:18:53 EDT 2008.
Universal Time is now:  Sun Jun  8 23:18:53 UTC 2008.
The difference I guess is that I have Enhanced Real Time Clock as a builtin, but really I'm not sure what's causing your timezone issue.
 
Old 06-09-2008, 03:15 PM   #3
wedz
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Is this problem really because the hwclock is failing during the boot ?

I'm just surprised since I'm running pre-compiled kernel, and it's been working fine for me so I haven't seen any reason to recompile my own.. I would imagine they would have noticed this bug there in their ivory towers

What would be a proper way to install something from older branch ?
Disable the testing repository, enabling stable, running apt-get update and then install ntp ?

Thanks for the help!
 
Old 06-09-2008, 05:46 PM   #4
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
Quote:
Originally Posted by wedz View Post
Is this problem really because the hwclock is failing during the boot ?
I don't know for certain that your timezone issue is being caused by hwclock failing, it just seems to be the obvious suspect.

I read about the 'clock tick timed out' fix in a Debian bug report so I'm sure that'll be sorted soon enough.

Quote:
Originally Posted by wedz View Post
What would be a proper way to install something from older branch ?
Disable the testing repository, enabling stable, running apt-get update and then install ntp ?
I'd enable unstable/sid as opposed to stable/etch, apt-get update, and then install ntp. You'll have to specify the release to install from, and it's a good idea to use apt.conf to specify your default release beforehand (so you don't wind up upgrading to sid). Someone actually posted a thread about this very subject the other day. Check out the guide linked there, it covers in detail what I briefly explained aboved.
 
Old 06-15-2008, 01:47 PM   #5
bodiless
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Hey wedz,

I was just wondering, did you find any way to correct this problem? I am having exactly the same problem with my thinkpad x61s but don't want to use ntp and definetely don't want to upgrade to sid.

Just for the record I am using 2.6.24

Last edited by bodiless; 06-15-2008 at 01:48 PM.
 
Old 06-16-2008, 03:54 AM   #6
wedz
LQ Newbie
 
Registered: Jun 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Well, I did get it working somehow. I'm not 100% sure what exactly helped in the end.
I hadn't booted to Windows in ages, and after I did and then went back to Linux I noticed that the time was correct without the "Use UTC" in Gnome's time panel.

I'm guessing that somehow the hwclock script started to work properly during boot, and it correctly reads the time from BIOS and adjusts the time.

Check out if you have that HWCLOCKPARS directisa flag set in rcS, and both hwclock scripts. And then check that rcS has that UTC=no.

Hope this helps
 
Old 06-16-2008, 05:07 PM   #7
bodiless
LQ Newbie
 
Registered: Jun 2008
Posts: 7

Rep: Reputation: 0
Thanks, I have both scripts in place but the HWCLOCKPARS directisa flag set in rcS was enough. Many thanks again.
 
  


Reply

Tags
debian, local, time, windows



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
Lenny system time error TristanDee Debian 14 04-18-2008 07:35 PM
Dual Boot System Fight over system Time TuxLives Mandriva 8 02-14-2008 09:51 AM
Debian & Windows dual boot, system time issue Vigacmoe Debian 8 08-31-2006 12:14 AM
Im setting up a dual boot system for first time completenumpty Linux - Software 3 04-19-2005 08:45 AM
LILO using wrong kernel on dual boot system MS3FGX Linux - General 7 03-08-2004 12:50 AM

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

All times are GMT -5. The time now is 10:35 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