You are not logged in.

#1 2009-03-12 20:15:45

vajorie
Member
Registered: 2009-03-12
Posts: 66

[solved] can't find solution: fixing clock booting with ubuntu

I'm dual booting arch with ubuntu. I've been trying everything I could find in google, but nothing solved the problem.

Problem is I can't fix the time. If I fix it in Arch, it gets screwed in Ubuntu. If I fix it in Ubuntu, Arch's time gets screwed.

eg right now, ubuntu has the correct time set (Mar12 4:15pm eastern/new york). Arch reports:
Thu Mar 12 12:13:18 EDT 2009

can you give me some pointers? thanks.

Last edited by vajorie (2009-03-12 21:12:15)

Offline

#2 2009-03-12 20:22:05

tom5760
Member
From: Philadelphia, PA, USA
Registered: 2006-02-05
Posts: 283
Website

Re: [solved] can't find solution: fixing clock booting with ubuntu

Try switching the HARDWARECLOCK variable in /etc/rc.conf.

If its set to "UTC", change it to "localtime", or vice versa.

Its probably because Ubuntu is set to the opposite of whatever you have it set to in Arch.  I'm not sure how to change it in Ubuntu, so its probably easiest to change it in Arch.

Last edited by tom5760 (2009-03-12 20:23:15)

Offline

#3 2009-03-12 20:22:15

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [solved] can't find solution: fixing clock booting with ubuntu

In the rc.conf, make sure you have HARDWARECLOCK set to UTC. Since you don't have windows on the machine, it would be better. Have a look here.

I am not sure what Ubuntu uses behind the scene., but if you set it to UTC and then simply adjust your timezone to US/Eastern, it should work.

If you still have trouble look up man pages for date and hwclock


EDIT : Got beat by 10 secs !!

Last edited by Inxsible (2009-03-12 20:25:09)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2009-03-12 21:17:04

vajorie
Member
Registered: 2009-03-12
Posts: 66

Re: [solved] can't find solution: fixing clock booting with ubuntu

thanks. in ubuntu, the mode is given in /etc/default/rcS - I set arch's rc.conf to whatever it was as you said. in ubuntu's grub, there was also something I did not understand (a boot option clocksource=hpet), and google didn't tell me much about it, so I removed that too (for others who might find this post trying to find an answer, you do that by editing a single line in /boot/grub/menu.list (defoptions or something like that) and then running update-grub from ubuntu (in my setup, ubuntu's grub was never removed -I call Arch from it).

Offline

Board footer

Powered by FluxBB