Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 17 Oct 2019, 01:24
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to change file creation time? (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
Dry Falls

Joined: 16 Dec 2014
Posts: 591
Location: Upper Columbia

PostPosted: Tue 12 Feb 2019, 21:01    Post subject:  How to change file creation time? (Solved)  

I've been trying to track down an intermittent font-config error concerning "file|directory mtime in future". Just edited an sfs file and the result is that it was created tomorrow. Did an fsck check and lo & behold, errors: "Superblock last write time is in the future.
(by less than a day, probably due to the hardware clock being incorrectly set)"
Hardware clock seems to check out ok. Any way to change the ctime on the file? Any help will be appreciated>

df
capture8471.png
 Description   
 Filesize   66.94 KB
 Viewed   215 Time(s)

capture8471.png


Last edited by Dry Falls on Wed 13 Feb 2019, 20:08; edited 1 time in total
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1372

PostPosted: Tue 12 Feb 2019, 21:57    Post subject:  

It probably doesn't help, but when I've gotten that error it was caused by not setting the time zone correctly so it thought I was in GMT (5 or 6 hours ahead of my actual time).
Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Tue 12 Feb 2019, 22:20    Post subject:  

I would just create a new directory, mount the .sfs module to grab its content, copy its content into the new created directory and rebuild the .sfs module.

Simple, easy, quickly done.

Edit:

Or just wait two days, so the .sfs module would be created yesterday. Laughing

_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14404
Location: Gatineau (Qc), Canada

PostPosted: Tue 12 Feb 2019, 23:54    Post subject:  

Hi Dry Falls.

Simpler: use the < touch > command! Very Happy
A bit of an explanation here:
https://www.unix.com/aix/64923-change-files-timestamp.html

IHTH

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1921
Location: Japan

PostPosted: Wed 13 Feb 2019, 00:48    Post subject:  

Just 1 day off? I envy you Laughing

Some of my Puppies were allegedly created well before the first Unix saw the light of day, others in the distant future.
"Contents indicate..." is what the file command "discovers" when it examines the file content. Obviously wrong - as are the blocksizes.
Still timestamps reported by stat are correct
sfs_fake_creation_times.png
 Description   
 Filesize   52.82 KB
 Viewed   199 Time(s)

sfs_fake_creation_times.png

Back to top
View user's profile Send private message 
Dry Falls

Joined: 16 Dec 2014
Posts: 591
Location: Upper Columbia

PostPosted: Wed 13 Feb 2019, 19:20    Post subject:  

Thanks everyone. I now believe these (font-config error and sfs creation date) are two separate issues. Musher, thanks for the link vis a vis touch -t. That works for the fc issue but so does just restartwm. It doesn’t affect the file creation timestamp. RSH, Tazoc has a sfs template which has a creation date of 2009. I used your method to duplicate the file. The result had a timestamp 8 hours in the future, as all my sfs files have upon inspection (I’m 8 hours - as the sun flies - from Greenwich, UK).

There’s no call for time-stamping in the edit-sfs script, so I can only conclude that the makesquashfs binary is hard-coded to use gmt without regard to the system, user or hwclock time. I’m not going to worry about it as it doesn’t seem to present any problems. The fact is that the rest of the world considers the imaginary line passes through England, but usa.Inc has moved it to Greenwich Village (New York) because that’s right next to wall street - makes for easier accounting and quicker bucks, I guess. Unfortunately, M$ boxes accommodate wall street and not the user.

Font-config presents another problem. When the error occurs, the cpu usage often increases by 5-10% throughout the session. I think I’ve always had this problem in Lighthouse but only see the error message because I’ve switched to xfce4 as the default DE. Every DE reports on a different set of potential errors (for ex., only JWM complains about the legacy libpng I have installed). Tazoc must have also noticed the problem since in his help documentation, he suggested to restart X if the fonts looked funky.

But who wants to have to restart when you’ve only just turned on the box?

I’d still like to track this down, but the thread might be considered solved as far as the original question is concerned.

df
Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Wed 13 Feb 2019, 19:31    Post subject:  

Quote:
Simpler: use the < touch > command!

Great!

I didn't know this.

I thought touch is used to initiate some actions since I'd seen this in a XFCE Puppy used to initiate a menu refresh on the XFCE menu.

Btw.: I checked some my .sfs modules and they differ from 1903 to 2009 (I joined the forum in 2011).

_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
Dry Falls

Joined: 16 Dec 2014
Posts: 591
Location: Upper Columbia

PostPosted: Wed 13 Feb 2019, 20:07    Post subject:  

I added this to my .xinitrc file:
Code:
 touch -m /usr/share/fonts/*

and so far, so good (said with fingers crossed)...
but it shouldn't be necessary!

I'll change this thread to "solved" - provisionally.

Thanks again.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14404
Location: Gatineau (Qc), Canada

PostPosted: Wed 13 Feb 2019, 22:06    Post subject:  

Hi.

Obviously, some of you guys have a computer with a dead battery!!!

The software cure, which will be saving you a trip to the computer store
and probably $5 for a pack of batteries, is to use htpdate twice at a two-
minute interval, before creating your sfs or other archive file.

The first run may produce a time that's a few seconds off, especially if
htpdate started from Jan. 5 1980, the usual hw time when a computer
battery is dead. The two minute interval between the two runs makes
sure that your computer gets the time exactly right on the 2nd run.
Ref.: http://murga-linux.com/puppy/viewtopic.php?p=1013986&sort=lastpost#1013986

Check that your wristwatch or wall clock agrees with your box' time
before archiving. Then your files will display no time distortion, and the
TIA (Time Intelligence Agency) Wink will not put a < tail -1 > on your donkey.
Laughing

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Wed 13 Feb 2019, 22:27    Post subject:  

Quote:
touch -m /usr/share/fonts/*

Confused

I'm a bit confused now.

Since the issue appears on a .sfs module, why are you using this on fonts?

@musher0

The battery of my machine's main board is ok, but most of my .sfs
modules have been created some time ago, on my old machine. This one of course had battery issues.

Thanks for the info.

Almost all days something new to learn on the forum from the experts!

_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
Dry Falls

Joined: 16 Dec 2014
Posts: 591
Location: Upper Columbia

PostPosted: Thu 14 Feb 2019, 00:43    Post subject:  

ITSMERSH wrote:
Quote:
touch -m /usr/share/fonts/*

Confused
I'm a bit confused now.
Since the issue appears on a .sfs module, why are you using this on fonts?

Opening post:
Quote:
I've been trying to track down an intermittent font-config error concerning "file|directory mtime in future".


mtime refers to the date a file/directory was modified. Still don't where the error report comes from unless fc-cache binary also reads (real) gmt and not the wallstreet version (or is it vice versa?)

df
Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Thu 14 Feb 2019, 00:51    Post subject:  

Yes, I had read the opening post.

Though, I still don't get it.

Never mind (I'm not a native English speaker, and I don't need to get everything).

_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14404
Location: Gatineau (Qc), Canada

PostPosted: Thu 14 Feb 2019, 01:57    Post subject:  

ITSMERSH wrote:
(...)
@musher0
(...)
Thanks for the info.

Almost all days something new to learn on the forum from the experts!

@ITSMERSH:

My pleasure!
May I return the compliment?
I've learned a lot from you as well!

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3405
Location: 500 seconds from Sol

PostPosted: Thu 14 Feb 2019, 12:18    Post subject:  

You guys/gals have overlooked the obvious advantage of the system AS-IS. Before returning to the present date, take a snapshot of market reports in the future to guide your investment decisions. Laughing
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1501
Location: Drøbak, Norway

PostPosted: Fri 15 Feb 2019, 21:08    Post subject:  

I think that some of you guys/gals also need to skim through this little jewel of a manual:
http://tldp.org -> Guides -> scroll down to GNU/Linux Command-Line Tools Summary

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0615s ][ Queries: 12 (0.0106s) ][ GZIP on ]