-
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
-
Senior Member
registered user
Resetting clock local time
![Quote](images/misc/quote_icon.png)
Originally Posted by
Werner P. Schulz
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
-
Senior Member
registered user
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
-
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 fromwithin your Debian and Knoppix?
-
Senior Member
registered user
Resetting clock local time
![Quote](images/misc/quote_icon.png)
Originally Posted by
Werner P. Schulz
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) ![Smile](images/smilies/icon_smile.gif)
![Quote](images/misc/quote_icon.png)
Originally Posted by
Werner P. Schulz
This value is wrong; did you write it manually? Now, what's the output from
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](images/misc/quote_icon.png)
Originally Posted by
rajibando
What I did was ... every time I boot the time is reset to that of the USA, ...
and
![Quote](images/misc/quote_icon.png)
Originally Posted by
rajibando
... 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.
-
Senior Member
registered user
Resetting clock local time
To be precise, the Knoppix time is:
knoppix@Microknoppix:~$ cat /etc/timezone
Output:
Last edited by rajibando; 01-29-2013 at 10:48 AM.
Reason: finishing
-
Senior Member
registered user
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.
-
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.
-
Senior Member
registered user
Resetting clock local time
![Quote](images/misc/quote_icon.png)
Originally Posted by
rajibando
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](images/misc/quote_icon.png)
Originally Posted by
Werner P. Schulz
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](images/misc/quote_icon.png)
Originally Posted by
rajibando
... 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](images/misc/quote_icon.png)
Originally Posted by
Werner P. Schulz
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
-
Senior Member
registered user
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.
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
![HP ProLiant MicroServer Gen8 G8 G2020T 8GB RAM 4x 1TB HDD 4x 3.5](/store/img/g/K8UAAOSwJsRmYJSK/s-l225/HP-ProLiant-MicroServer-Gen8-G8-G2020T-8GB-RAM-4x-.jpg)
HP ProLiant MicroServer Gen8 G8 G2020T 8GB RAM 4x 1TB HDD 4x 3.5" 712318-421
$249.99
![Super micro Server picture](/store/img/g/PNgAAOSweU1mSkvR/s-l225/Super-micro-Server.jpg)
Super micro Server
$198.00
![1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture](/store/img/g/fxsAAOSwZD5l6PSG/s-l225/1U-BareMetal-pfsense-opnsense-Router-Firewall-DNS-.jpg)
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
![1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture](/store/img/g/7KoAAOSwephiKTf4/s-l225/1U-Supermicro-Server-10-Bay-2x-Intel-Xeon-3-3Ghz-8.jpg)
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE
$273.00
![HP ProLiant MicroServer Gen8 | Intel XEON E3-1220L V2 | 8GB RAM | NO HDD | 4 BAY picture](/store/img/g/p6EAAOSwhsBmadiy/s-l225/HP-ProLiant-MicroServer-Gen8-Intel-XEON-E3-1220L-V.jpg)
HP ProLiant MicroServer Gen8 | Intel XEON E3-1220L V2 | 8GB RAM | NO HDD | 4 BAY
$249.99
![HP Proliant MicroServer (Model: HSTNS-5151) NO HARD DRIVES-Power Tested, picture](/store/img/g/WmMAAOSwo-9mcFYr/s-l225/HP-Proliant-MicroServer-Model-HSTNS-5151-NO-HARD-D.jpg)
HP Proliant MicroServer (Model: HSTNS-5151) NO HARD DRIVES-Power Tested,
$99.99
![SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture](/store/img/g/MFoAAOSwQYhmavYc/s-l225/SuperMicro-Server-505-2-Intel-Atom-2-4GHz-8GB-RAM-.jpg)
SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount
$202.49
![HP HPE Microserver Gen 7 8 9 iLO 2/3/4/5Advanced License Lifetime Key| FAST SHIP picture](/store/img/g/jMgAAOSwlnhk2TU3/s-l225/HP-HPE-Microserver-Gen-7-8-9-iLO-2-3-4-5Advanced-L.jpg)
HP HPE Microserver Gen 7 8 9 iLO 2/3/4/5Advanced License Lifetime Key| FAST SHIP
$10.00
![2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture](/store/img/g/qa4AAOSwMxNk76rN/s-l225/2U-12-Bay-SAS3-SuperMicro-Server-6028U-TR4T-W-X10D.jpg)
2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL
$299.00
![Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD picture](/store/img/g/aYkAAOSwLGpmYf9P/s-l225/Supermicro-1U-Server-X9SRI-F-Xeon-E5-2640-v2-2-5Gh.jpg)
Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD
$149.99