linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem in clock setting
@ 2003-05-30 22:52 Karunambaran A
  2003-06-03  8:56 ` Glynn Clements
  0 siblings, 1 reply; 4+ messages in thread
From: Karunambaran A @ 2003-05-30 22:52 UTC (permalink / raw)
  To: linux-admin


   Hi,
         I have installed RedHat Linux 9.0 in my home PC. My BIOS clock
is set to local time. During installation of RH 9.0 I have selected my
time zone as Asia/Calcutta and the UTC box unchecked. But while booting
I am getting the message as if the hardware clock is set UTC and as a
result the system clock is set 5 hrs 30 minutes more to make it
IST(Asia/Calcutta). But since my hardware clock is already IST
localtime it results a wrong system clock. I am able to solve the
problem by adding the command  "/sbin/hwclock --hctosys  " at the end
of  /etc/rc.d/rc.sysinit file ( before the  " wait " ).
                                                                        
                   In rc.sysinit file there is one command
" /sbin/hwclock $CLOCKFLAGS "
  I have echoed the CLOCKFLAGS  variable and it shows as I expected
the following
                                                                        
            --hctosys  --localtime
                                                                        
                               My question is why the time is recognized
as UTC ?( Other OS in my PC does not have any problem in the clock.  I
have been installing all RH versions since 6.2 and this problem is for
the first time. Also, in my office PC I installed RH 9.0 and the clock
is fine)
                                                                        
                   Thanks in advance for any reply.
                                                                        
              Sorry if I am not properly conveying my problem.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem in clock setting
@ 2003-06-02  6:46 Andrew Lister
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lister @ 2003-06-02  6:46 UTC (permalink / raw)
  To: sangel; +Cc: linux-admin


Just a guess but, is your root and /usr separate partitions and you have a sym link from /etc/localtime to /usr/share/zoneinfo/Asia/Calcutta?  If so, try copying the Calcutta file to /etc/localtime.  The usr partition probably isn't mounted when the time is set.

Please let me know if this works as I have exactly the same problem at home that needs fixing!

Andrew






   Hi,
         I have installed RedHat Linux 9.0 in my home PC. My BIOS clock
is set to local time. During installation of RH 9.0 I have selected my
time zone as Asia/Calcutta and the UTC box unchecked. But while booting
I am getting the message as if the hardware clock is set UTC and as a
result the system clock is set 5 hrs 30 minutes more to make it
IST(Asia/Calcutta). But since my hardware clock is already IST
localtime it results a wrong system clock. I am able to solve the
problem by adding the command  "/sbin/hwclock --hctosys  " at the end
of  /etc/rc.d/rc.sysinit file ( before the  " wait " ).

                   In rc.sysinit file there is one command
" /sbin/hwclock $CLOCKFLAGS "
  I have echoed the CLOCKFLAGS  variable and it shows as I expected
the following

            --hctosys  --localtime

                               My question is why the time is recognized
as UTC ?( Other OS in my PC does not have any problem in the clock.  I
have been installing all RH versions since 6.2 and this problem is for
the first time. Also, in my office PC I installed RH 9.0 and the clock
is fine)

                   Thanks in advance for any reply.

              Sorry if I am not properly conveying my problem.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html





--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem in clock setting
  2003-05-30 22:52 Problem in clock setting Karunambaran A
@ 2003-06-03  8:56 ` Glynn Clements
  2003-06-04 12:09   ` Karunambaran A
  0 siblings, 1 reply; 4+ messages in thread
From: Glynn Clements @ 2003-06-03  8:56 UTC (permalink / raw)
  To: Karunambaran A; +Cc: linux-admin


Karunambaran A wrote:

>          I have installed RedHat Linux 9.0 in my home PC. My BIOS clock
> is set to local time. During installation of RH 9.0 I have selected my
> time zone as Asia/Calcutta and the UTC box unchecked. But while booting
> I am getting the message as if the hardware clock is set UTC and as a
> result the system clock is set 5 hrs 30 minutes more to make it
> IST(Asia/Calcutta). But since my hardware clock is already IST
> localtime it results a wrong system clock. I am able to solve the
> problem by adding the command  "/sbin/hwclock --hctosys  " at the end
> of  /etc/rc.d/rc.sysinit file ( before the  " wait " ).
>                                                                         
>                    In rc.sysinit file there is one command
> " /sbin/hwclock $CLOCKFLAGS "
>   I have echoed the CLOCKFLAGS  variable and it shows as I expected
> the following
>                                                                         
>             --hctosys  --localtime
>                                                                         
>                                My question is why the time is recognized
> as UTC ?( Other OS in my PC does not have any problem in the clock.  I
> have been installing all RH versions since 6.2 and this problem is for
> the first time. Also, in my office PC I installed RH 9.0 and the clock
> is fine)

Is there any reason why hwclock might not be able to read the
"localtime" file at startup? E.g. if /etc/localtime is a symlink to
the zone file in /usr/share/zoneinfo, but /usr is a separate
filesystem, hwclock won't be able to read it if it is run before /usr
is mounted (which is normally the case at startup).

-- 
Glynn Clements <glynn.clements@virgin.net>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem in clock setting
  2003-06-03  8:56 ` Glynn Clements
@ 2003-06-04 12:09   ` Karunambaran A
  0 siblings, 0 replies; 4+ messages in thread
From: Karunambaran A @ 2003-06-04 12:09 UTC (permalink / raw)
  To: Glynn Clements; +Cc: linux-admin

 
> >                                My question is why the time is
> >                                recognized
> > as UTC ?( Other OS in my PC does not have any problem in the clock. 
> > I have been installing all RH versions since 6.2 and this problem is
> > for the first time. Also, in my office PC I installed RH 9.0 and the
> > clock is fine)
> 
> Is there any reason why hwclock might not be able to read the
> "localtime" file at startup? E.g. if /etc/localtime is a symlink to
> the zone file in /usr/share/zoneinfo, but /usr is a separate
> filesystem, hwclock won't be able to read it if it is run before /usr
> is mounted (which is normally the case at startup).
> 
> -- 
> Glynn Clements <glynn.clements@virgin.net>
                                    
          Very many thanks.
                                          That's exactly the reason. I
removed the sym link and copied  /usr/share/zoneinfo/Asia/Calcutta to
/etc/localtime  to get the desired result.

         From  RH Linux 6.2  to RH Linux 8.0 also my  / and  /usr was on
different partitions and this problem never occured. May be it was not a
sym link earlier, I hope.

        Thanks again for the insight you provided.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-04 12:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-30 22:52 Problem in clock setting Karunambaran A
2003-06-03  8:56 ` Glynn Clements
2003-06-04 12:09   ` Karunambaran A
  -- strict thread matches above, loose matches on Subject: below --
2003-06-02  6:46 Andrew Lister

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).