-
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.
-
Senior Member
registered user
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.
-
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.
-
Senior Member
registered user
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.
-
I noticed after posting: when booted into openbox, my conky script reports UTC even as the lxd taskbar clock reports PDT.
-
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.
-
Senior Member
registered user
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.
-
Senior Member
registered user
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.
-
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.
-
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".
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
-
Forum Rules
A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM
$287.96
Team T-FORCE VULCAN Z 16GB (2 x 8GB) 288-Pin PC RAM DDR4 3200 (PC4 25600) XMP
$38.99
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
Samsung 16GB (2x8GB) DDR4 2400MHz PC4-19200 Desktop RAM Memory M378A1K43CB2-CRC
$19.95
Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM
$21.33
CORSAIR Vengeance RGB Pro 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3600 (PC4 28800)
$79.95
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$12.90
HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM
$14.85
HyperX FURY DDR4 64GB (4x16GB) 3200MHz PC4-25600 Desktop RAM Memory DIMM 288PIN
$129.95
A-Tech 64GB Kit 2x 32GB PC4-25600 Laptop SODIMM DDR4 3200 MHz 260-Pin Memory RAM
$123.99