LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2023, 09:45 PM   #1
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 15;
Posts: 442

Rep: Reputation: 47
inconsistent time storage


My old laptop normally runs Slackware15/64, but it is a shared machine that also has a Windows 10 partition. I normally run the following script to set the hardware time and store it:

/etc/rc.d/rc.ntpd stop && ntpdate pool.ntp.org && hwclock --systohc --localtime && /etc/rc.d/rc.ntpd start

If the machine is there booted to windows, it will display the proper time, but returning to Slackware the time will have to be reset. What should I change to eliminate the discrepancy?

Thank you.
 
Old 05-27-2023, 11:28 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,852
Blog Entries: 1

Rep: Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074Reputation: 2074
If the problem is one of 4 hours, the easy way would be to s/UTC/LOCAL/ in /etc/adjtime. Once made, ntpd should keep it correct without any action on your part. Windows by default uses local time, while Linux uses UTC. Windows can be made to use UTC, but Google or someone else will have to tell you how that can be done.
 
2 members found this post helpful.
Old 05-28-2023, 02:53 AM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,865

Rep: Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527Reputation: 1527
Run /usr/sbin/timeconfig.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
confused over terminology of internal storage and SD card storage - howto encrypt the 128GB of internal storage lgtrean Linux - Mobile 3 12-27-2021 01:27 AM
confused over terminology of internal storage and SD card storage - howto encrypt the 128GB of internal storage (2nd try) lgtrean Linux - Mobile 1 12-24-2021 12:45 PM
[SOLVED] Inconsistent Time Stamping for Partitions or Mount Points and Directories Hi_This_is_Dev Linux - Server 3 09-06-2010 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration