Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31

Thread: Resetting clock local time.

  1. #21
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    With Debian I use the crontab:
    Code:
     40      10,15,20        * * *   /usr/sbin/ntpdate -v de.pool.ntp.org; /sbin/hwclock -u --systohc
    I've read Sysadmin time again and now found this hint:
    At least from Debian version 2.2 onwards, the system automatically saves the system time to hardware clock on shutdown, and sets the system clock from hardware clock when Debian boots up. This is done in the script /etc/init.d/hwclock.sh.
    Therefore I changed my crontab-entry within Debian to
    Code:
     40      10,15,20        * * *   /usr/sbin/ntpdate -v de.pool.ntp.org

  2. #22
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    Quote Originally Posted by Werner P. Schulz View Post
    Please tell us the output from
    Code:
    cat /proc/driver/rtc; date
    This one is from the Knoppix system: cat /proc/driver/rtc; date rtc_time : 08:14:09
    rtc_date : 2013-01-29
    alrm_time : 00:00:00
    alrm_date : 2013-01-30
    alarm_IRQ : no
    alrm_pending : no
    update IRQ enabled : no
    periodic IRQ enabled : no
    periodic IRQ frequency : 1024
    max user IRQ frequency : 64
    24hr : yes
    periodic_IRQ : no
    update_IRQ : no
    HPET_emulated : yes
    BCD : yes
    DST_enable : no
    periodic_freq : 1024
    batt_status : okay
    Mon Jan 28 21:44:09 EST 2013

  3. #23
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    For my Debian system:
    rtc_time : 08:43:18
    rtc_date : 2013-01-29
    alrm_time : 00:00:00
    alrm_date : ****-**-**
    alarm_IRQ : no
    alrm_pending : no
    24hr : yes
    periodic_IRQ : no
    update_IRQ : no
    HPET_emulated : yes
    DST_enable : no
    periodic_freq : 1024
    batt_status : okay
    Tue Jan 29 08:43:18 IST 2013

  4. #24
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    This one is from the Knoppix system: cat /proc/driver/rtc; date rtc_time : 08:14:09
    This value is wrong; did you write it manually? Now, what's the output from
    Code:
    cat /etc/timezone
    within your Debian and Knoppix?

  5. #25
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    Quote Originally Posted by Werner P. Schulz View Post
    This value is wrong; did you write it manually?
    No, I pasted without putting a line break between the code and output (i.e., Enter Key)

    Quote Originally Posted by Werner P. Schulz View Post
    This value is wrong; did you write it manually? Now, what's the output from
    Code:
    cat /etc/timezone
    within your Debian and Knoppix?
    This part is already settled (please remember to visit my earlier posts). My debian setting is Asia/Kolkata.
    My knoppix setting resets itself to the settings for usa after every boot:
    Quote Originally Posted by rajibando View Post
    What I did was ... every time I boot the time is reset to that of the USA, ...
    and
    Quote Originally Posted by rajibando View Post
    ... I installed ntp, ntpdate, etc., and then used this application to set date time. But whatever I set is undone the next time I boot...the localisation I set remains as of India between powerdown and powerup.

  6. #26
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    To be precise, the Knoppix time is:
    knoppix@Microknoppix:~$ cat /etc/timezone
    Output:
    America/New_York
    Last edited by rajibando; 01-29-2013 at 10:48 AM. Reason: finishing

  7. #27
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    The problem lies with the package: time-admin It can't store date-time settings, at least in my copy of Knoppix.

  8. #28
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Oh, no! "time-admin" can store your settings and you can see it immediatly with "cat /etc/timezone". But Knoppix is a Live System and therefore it uses another way => '/etc/init.d/knoppix-autoconfig' => '# Set timezone'

    Knoppix uses only the value of "tz=..." of the Kernel line and other settings within "/etc/timezone" will be overwritten.
    Last edited by Werner P. Schulz; 01-29-2013 at 01:07 PM.

  9. #29
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    Quote Originally Posted by rajibando View Post
    The problem lies with the package: time-admin It can't store date-time settings, at least in my copy of Knoppix.
    What I meant was in between shutdown and booting.
    You say,
    Quote Originally Posted by Werner P. Schulz View Post
    Knoppix uses only the value of "tz=..." of the Kernel line and other settings within "/etc/timezone" will be overwritten.
    I have tested with tz in the kernel line, but knoppix does not use that in the subsequent boots. Remember my posting,
    Quote Originally Posted by rajibando View Post
    ... I have tried TZ cheatcode but that does not work either. I had also run tzselect (=asia/kolkata) here in knoppix, but that too does not work.
    What it does is it treats my BIOS time as UTC and then calculates New York time. You say,
    Quote Originally Posted by Werner P. Schulz View Post
    Oh, no! "time-admin" can store your settings and you can see it immediatly with "cat /etc/timezone" But Knoppix is a Live System and therefore it uses another way => '/etc/init.d/knoppix-autoconfig' => '# Set timezone'
    Where is this line? My kernel line is:
    linux (hd1,1)/boot/isolinux/linux root=/dev/ram rw ramdisk_size=100000 lang=us apm=power-off nomce tz=/Asia/Kolkata
    Last edited by rajibando; 01-29-2013 at 02:31 PM. Reason: some addition

  10. #30
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Resetting clock local time

    Yes, done! The error was in using the capital TZ, following earlier post. whereas it would be tz in kernel line, and then using the ntp daemon to fix the time and date. Thanks for staying on the issue with me.

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

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


New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C picture

New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C

$90.00



LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module picture

LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module

$95.00



Lot (10) Dell 0N8TDR 850nm SFP-10G-SR-85C 10Gbs sfp+ FTLX8574D3BNL-FC N8TDR NEW picture

Lot (10) Dell 0N8TDR 850nm SFP-10G-SR-85C 10Gbs sfp+ FTLX8574D3BNL-FC N8TDR NEW

$68.00



SFP-10G-SR CISCO 10G SR SFP+ C-CLASS TRANSCEIVER 10 PACK picture

SFP-10G-SR CISCO 10G SR SFP+ C-CLASS TRANSCEIVER 10 PACK

$99.00



Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC picture

Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC

$9.50



Original CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi mode Module picture

Original CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi mode Module

$6.80



CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC  10G 10GB SFP - 1 Year Warranty picture

CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty

$39.99



Cisco SFP-10G-LR 10-2457-02 V02 10GBASE-LR SFP+ TRASNCEIVER COMPATIBLE picture

Cisco SFP-10G-LR 10-2457-02 V02 10GBASE-LR SFP+ TRASNCEIVER COMPATIBLE

$19.90



10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module picture

10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module

$85.00



Nvida Mellanox MC3208411-T 1000GBASE-T SFP-TX 100m Optical 1GbE Base-T RJ45 New picture

Nvida Mellanox MC3208411-T 1000GBASE-T SFP-TX 100m Optical 1GbE Base-T RJ45 New

$27.95