Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Time resets to UTC at boot in Knoppix 6.2.1

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    6

    Time resets to UTC at boot in Knoppix 6.2.1

    I've noticed that time always resets to UTC at boot in spite of local settings. I think I found a couple of problems in /etc/init.d /knoppix-autoconfig. I've fixed them as described below, but please let me know if there is a regular fix for it.

    1. In start_clock function I've changed <checkbootparam utc || UTC="-u"> to <checkbootparam utc && UTC="-u">. Looks like an obvious bug to me, but let me know if I've missed anything.

    2. I've moved a call to start_clock function after udev completed created devices, because in the original version hwclock was called before /dev/rtc was created and it caused an error message "file /dev/misc/rtc doesn't exist". To see the error you'll need to change /dev/null to a real file.

    Please let me know when a fix is available.

  2. #2
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Wow it's quite surprising that it takes so long to hear about this problem for the first time. Perhaps it's my ignorance. I wonder how other people have dealt with this problem. For me I have overriden the original thing, I do 'hwclock --localtime -s". I used to have problem get the correct time after I booted into Windows. After doing this, my clock is still correct after I boot into Windows and back to Knoppix.

  3. #3
    Member
    Join Date
    Jul 2010
    Location
    Northwest U.S.
    Posts
    30
    I am guilty of ignoring this problem. I think it just didn't take precedence over getting Knoppix up working the way I wanted. Now it is no longer an issue. Fixed somewhere in the upgrades I guess.

  4. #4
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    It can't be. No way this problem can be fixed by a debian packages updates. It has to be some scripts have been modified.

  5. #5
    Member
    Join Date
    Jul 2010
    Location
    Northwest U.S.
    Posts
    30
    I noticed after posting: when booted into openbox, my conky script reports UTC even as the lxd taskbar clock reports PDT.

  6. #6
    Member
    Join Date
    Jul 2010
    Location
    Northwest U.S.
    Posts
    30
    The conky clock script needed to be offset from system time rather than GMT offset it used on the computer it came from. That means my system time is set at UTC (GMT) at boot and LXDE panel clock is offset correctly from system time, maybe from a configuration on install.

  7. #7
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Glad to see a discussion on this.

    My knoppix 6.2.1 reads out in local time ok here.

    However, in my other life, I can watch Ubuntu 10.04.1
    start with local time and see it reset itself to GMT.

    I can remember getting crosswise with dual boots to windows,
    but I think I'll try some ideas mentioned here to see
    if I can't get Ubuntu straightened out, after all.

    Thanks, all, for the ideas.

  8. #8
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    PS

    In my Ubuntu 10.04.01 case, a new 2Gb SD card version,
    I noticed the system started in local time, but went to GMT
    when the wifi network clicked in.

    I'd never clicked the date/time display to set its parameters.
    You guessed it, default on the date/time applet was UTC, not localtime.
    I think this solved my problem, unless win7 complains.

  9. #9

    System Clock

    Using knoppix 6.2.1 based on the conversation I played around with hwclock command. "hwclock -r" set the clock to my system clock, remained successful after reboot.

  10. #10
    1)dpkg-reconfigure tzdata 2) date MMDDHHmmCCYY 3) hwclock --localtime. These three steps are another alternative. However when I did 4) hwclock --systohc - it changed my windows clock. When I corrected Windows - it put me back at square one in Knoppix (step 4 did me in - this time). I believe this problem centers around the fact that /etc/adjtime is never created. Maybe I will have to learn how to create based on "man hwclock".

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Juniper Networks Net Screen 5400 Security System NS-5400-CHA-B W/ 3x PWS 1x FAN picture

Juniper Networks Net Screen 5400 Security System NS-5400-CHA-B W/ 3x PWS 1x FAN

$1900.00



EX4600-40F-AFI-T Juniper EX4600 24x SFP+ 4x QSFP+ Switch W/ 2x PWS 5x Fan Module picture

EX4600-40F-AFI-T Juniper EX4600 24x SFP+ 4x QSFP+ Switch W/ 2x PWS 5x Fan Module

$1449.00



Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord picture

Juniper Networks EX3300-48P 48-Port PoE+ 4x SFP+ Network Switch w/ Power Cord

$43.95



JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER picture

JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER

$210.00



Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch picture

Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch

$40.12



Juniper EX4600-40F-AFI 24 SFP+/SFP Ports 4 QSFP+ Ports Dual AC Switch picture

Juniper EX4600-40F-AFI 24 SFP+/SFP Ports 4 QSFP+ Ports Dual AC Switch

$999.00



Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord picture

Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord

$53.99



Juniper Networks EX4300-48T 48 Port Gigabit 4 QSFP 40G 2xPSU AFO Network Switch picture

Juniper Networks EX4300-48T 48 Port Gigabit 4 QSFP 40G 2xPSU AFO Network Switch

$89.00



Juniper QFX5100-48T-AFO   48 100M/1G/10G Base-T 6 QSFP AFO picture

Juniper QFX5100-48T-AFO 48 100M/1G/10G Base-T 6 QSFP AFO

$485.00



Juniper QFX5100-48S 48-Port 10GbE SFP+ 6x40GbE QSFP Network Switch w/Ears Tested picture

Juniper QFX5100-48S 48-Port 10GbE SFP+ 6x40GbE QSFP Network Switch w/Ears Tested

$599.99