Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Morten Reistad Newsgroups: comp.os.linux.misc,comp.sys.raspberry-pi Subject: Re: Keeping 'order' without RTC. Date: Wed, 15 Apr 2015 22:37:00 +0200 Organization: Me, Myself and I Lines: 47 Message-ID: References: Injection-Info: mx02.eternal-september.org; posting-host="13f37dd5708c3bde6d7227ebe71a7235"; logging-data="16788"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ddvhc+rORYurOfh8IHasWGSbT7WdnGNY=" Originator: mrr@sambook.reistad.name (Morten Reistad) X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Cancel-Lock: sha1:7cQthPOJTHqcl/QznwNffvqzEPk= Xref: csiph.com comp.os.linux.misc:14573 In article , Gordon Levi wrote: >The Natural Philosopher wrote: > >>On 13/04/15 14:14, Joe Beanfish wrote: >> >>> >>> Please, just butt out of you have nothing to offer. You're worse than >>> the so-called troll. Same for the rest of ya, there's more blather by >>> you folk whining or being super-superior about the "troll" than actual >>> technical discussion about anything. Just shut up already. You think >>> you're so superior when you're just feeding the fire to get your own >>> names up in lights. >>> >> >>If you want time and date to be meaningful - which may or may not be the >>case you have to ensure that they are accurate. > >The OP said, specifically, that he only wanted to keep "order". For >that purpose the time and date don't have to be meaningful. In which case he needs to set a time that is higher than the last access time on any file in the file system. If he uses ext3, 4, xfs or jfs then there is journalling, and the file system is in a consistent state when you get tl execute something late in the boot process, like rc.local. The find/awk/ls/sort script to do this is left as an exercise to the reader. (find most recently accessed file, do a stat on it, and set the system time to 30 sec in the future from that.) If the OP _really_ needs this I can see what I can dig up. I used to do this on an altos machine way back before NTP. -- mrr >>- a battery backed clock that keeps time when the 'puter is off. >>- use of some internet accessible clock that you trust to set time on >>boot and keep time after boot >>- manually or magically setting the clock to the correct time on boot. There is a fourth way, if all he wants is a montonically increasing time, not necessarily connected with time in other parts of the universe. Which is what I interpret him to want. -- mrr