Results 1 to 8 of 8

Thread: Time zone change cannot be made permanent

  1. #1
    Senior Member
    Join Date
    Dec 2012
    Posts
    152

    Time zone change cannot be made permanent

    I am in Knoppix 7.4 DVD on a USB key with a persistent oerlay of 4GB. I have lang=en (easy). I also have keyboard=fr, but only thanks to the Key Layout Handler (it seems impossible otherwise to make it permanent). Now, I also need tz=Europe/Paris. The cheatcode at boot is not memorized and is lost. On reboot, I am back to America/New_York. Also tz=Europe/Paris is given as UTC instead of UTC+2.The BIOS of my computer displays UTC and NTP for Windows changes that to UTC+2 for my Windows 7. NTP is installed in Knoppix 7.4 but I am not sure if it is running. Help please.

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Sorry, I have to delete completely my posting from yesterday. I havn't found a solution for this problem.

    If I use the cheatcode "knoppix tz=Europe/Paris", then Knoppix accept it. You can verify this with
    Code:
    cat /proc/cmdline
    The function "Set timezone" of the script '/etc/init.d/knoppix-autoconfig' works correct as you can see in '/etc/timezone' and the right file of '/usr/share/zoneinfo' is copied to '/etc/localtime'.

    But with
    Code:
    cat /proc/driver/rtc; date
    you'll see Linux doesn't care about '/etc/localtime.
    Last edited by Werner P. Schulz; 08-10-2014 at 11:13 AM.

  3. #3
    Senior Member
    Join Date
    Dec 2012
    Posts
    152
    Thanks Werner. I am using LXDE and knoppix32 on a computer running Windows 7 Ultimate in 64-bit. The cheatcode : "knoppix32 tz=Europe/Paris" at boot retruns an error saying that kernel image knoppix32 is not found. Likewise the cheatcode "knoppix32" proposed in the list of cheatcodes. There is no syslnx.cfg file. I entered "tz=Europe/Paris" in syslnx32.cfg and syslnx64.cfg for both LABEL knoppix and LABEL knoppix64. The time zone shown is still "America/New_York" and the time is UTC. NTP says it queried "ntp.univ-angers.fr". Hope this "bug" (?) can be solved. There was no such problem with version 7.2.

  4. #4
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Now I've found the error. Settings of timezone within Knoppix V7.4.0 doesn't work if in '/etc/adjtime' is the entry "LOCAL" instead of "UTC" (as in old Knoppix versions). Change this value, reboot and now Knoppix uses the value of '/etc/timezone'. You can also check it with
    Code:
    timedatectl status

  5. #5
    Senior Member
    Join Date
    Dec 2012
    Posts
    152
    In /etc/adjtime, I typed UTC to replace LOCAL as you suggested. I left unchanged the entries "tz=Europe/Paris" made earlier in syslnx32.cfg and syslnx64.cfg. Rebooted and I am still in America/New_York. "timedatectl" reports as "local time" the current time in New York and UTC is correct. The cheatcode at boot: "knoppix tz=Europe/Paris" would give the correct time zone and time, but is not memorized. Some other setting(s) must be at fault. "America/New_York" wants to be the default time zone and refuses to be modified.
    Last edited by philo; 08-10-2014 at 07:28 PM.

  6. #6
    Senior Member
    Join Date
    Dec 2012
    Posts
    152
    A post in a Knoppix Forum (Hdd Install/Debian/Apt) dated 31 Jan 2007 by onemyndseye and eentitled "[FIX] KNOPPIX not showing correct language / Timezone fix" porposed: (1) adding a few lines in the "localize" header of /etc/init.d/knoppix-autoconfig, and (2) creating a file "timezone" in /etc/sysconfig. I tried that. Reboted and it works. Is it good enough? http://knoppix.net/forum/showthread....l=1#post109153

  7. #7
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    There is no syslnx.cfg file.
    The name of 3rd file is syslinux.cfg! Insert in this file your "tz" setting too.

    It is dangerous to change somethings within '/etc/init.d/knoppix-autoconfig' - especially following a 7 years old posting. I hope you have a copy of the origin of this file.

  8. #8
    Senior Member
    Join Date
    Dec 2012
    Posts
    152
    I had Knoppix 7.4 installed by Universal-USB-Installer (UI) and UI places its own syslinux.cfg out of sight in a sub-folder.
    Anyway, I did a fresh install with K's own Flash Install and created a new persistent img.
    With the cheatcodes for keyboard=fr and tz=Europe/Paris in the thrre ". cfg" files concerned, AND the change in "/etc/adjtime", I now have everything working correctly (no need for Keyboard Layout Handler).
    No doubt, other Knoppix users suffered from similar hiccups.
    Thanks again.

Posting Permissions

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


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory picture

Samsung 16GB 2Rx4 PC4-2133P DDR4-17000 1.2V RDIMM ECC Registered Server Memory

$16.29



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



Corsair Vengeance LPX 32GB PC4-25600 (DDR4-3200) Memory NEVER USED LOOSE STICKS picture

Corsair Vengeance LPX 32GB PC4-25600 (DDR4-3200) Memory NEVER USED LOOSE STICKS

$40.00



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$13.25



A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L picture

A-Tech 16GB 2 x 8GB PC3-12800 Laptop SODIMM DDR3 1600 Memory RAM PC3L 16G DDR3L

$27.98



A-Tech 16GB 2x 8GB PC3-12800 Desktop DDR3 1600 MHz 240pin DIMM Memory RAM 16G 8G picture

A-Tech 16GB 2x 8GB PC3-12800 Desktop DDR3 1600 MHz 240pin DIMM Memory RAM 16G 8G

$27.98



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM picture

A-Tech 64GB 4x 16GB 2Rx4 PC4-17000R DDR4 2133MHz ECC REG RDIMM Server Memory RAM

$87.96