Lifetime of SD cards running rPi/BBS?

Personal anecdata: I bought a Rasp kit in 2014, which came with an off-brand SSD card. Been using for a combination of Kodi and Leafnode ever since, with no issues whatsoever. I'd expected far worse, so I'm impressed and surprised.

Reply to
RS Wood
Loading thread data ...

LOL.

Well Ive always used to to determine when a file was created as its rare to change permissions and that's my excuse..

--
There is nothing a fleet of dispatchable nuclear power plants cannot do  
that cannot be done worse and more expensively and with higher carbon  
emissions and more adverse environmental impact by adding intermittent  
renewable energy.
Reply to
The Natural Philosopher

That is pretty much the only common use for it.

You might be able use it as a security indicator, of course it will only tell you when not who.

Generally mounting a filesystem noatime only affects performance, IMHO atime was one of the few mistakes in unix.

--
Steve O'Hara-Smith                          |   Directable Mirror Arrays 
C:\>WIN                                     | A better way to focus the sun 
The computer obeys and wins.                |    licences available see 
You lose and Bill collects.                 |    http://www.sohara.org/
Reply to
Ahem A Rivet's Shot

That doesn?t work either...

$ rm -f a $ touch a $ stat -c 'mtime: %y ctime: %z' a mtime: 2018-05-14 13:21:01.746205877 +0100 ctime: 2018-05-14 13:21:01.746205877 +0100 $ echo whatever >> a $ stat -c 'mtime: %y ctime: %z' a mtime: 2018-05-14 13:21:26.834237884 +0100 ctime: 2018-05-14 13:21:26.834237884 +0100

--
https://www.greenend.org.uk/rjk/
Reply to
Richard Kettlewell

??? in which case its no different from mtime is it?

Something doesnt compute

--
"Anyone who believes that the laws of physics are mere social  
conventions is invited to try transgressing those conventions from the  
windows of my apartment. (I live on the twenty-first floor.) " 

Alan Sokal
Reply to
The Natural Philosopher

If mtime changes then ctime will change but ctime will also change for permission changes and the like when mtime won't.

--
Steve O'Hara-Smith                          |   Directable Mirror Arrays 
C:\>WIN                                     | A better way to focus the sun 
The computer obeys and wins.                |    licences available see 
You lose and Bill collects.                 |    http://www.sohara.org/
Reply to
Ahem A Rivet's Shot

mtime doesn?t change when you change permissions/owner.

--
https://www.greenend.org.uk/rjk/
Reply to
Richard Kettlewell

Ah....

OK

--
"I guess a rattlesnake ain't risponsible fer bein' a rattlesnake, but ah  
puts mah heel on um jess the same if'n I catches him around mah chillun".
Reply to
The Natural Philosopher

Create time is called crtime or birth on various filesystems. POSIX doesn't require a filesystem to store it and there's no POSIX system call to retrieve it.

ext4 (and some other filesystems) do however store it, and you can get it via debugfs:

# debugfs -R 'stat /home/andrew/src/mcp3008/a.out' /dev/mmcblk0p2 node: 126467 Type: regular Mode: 0755 Flags: 0x80000 Generation: 400960989 Version: 0x00000000:00000001 User: 414 Group: 414 Project: 0 Size: 69272 File ACL: 0 Directory ACL: 0 Links: 1 Blockcount: 136 Fragment: Address: 0 Number: 0 Size: 0 ctime: 0x5af804d6:46957cc0 -- Sun May 13 10:26:46 2018 atime: 0x5af804d1:da6a67c4 -- Sun May 13 10:26:41 2018 mtime: 0x5af804d2:089b61e0 -- Sun May 13 10:26:42 2018 crtime: 0x5af804d1:da6a67c4 -- Sun May 13 10:26:41 2018 Size of extra inode fields: 32 Extended attributes: security.capability (20) = 01 00 00 02 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 EXTENTS: (0-16):589824-589840

--
Andrew Gabriel 
[email address is not usable -- followup in the newsgroup]
Reply to
Andrew Gabriel

Version control systems?

--
Martin    | martin at 
Gregorie  | gregorie dot org
Reply to
Martin Gregorie

Of course I should have said mtime - silly boy!

--
Martin    | martin at 
Gregorie  | gregorie dot org
Reply to
Martin Gregorie

Kodi if running on top of LibreElec, does a lot less writing to SD card than a general Linux distro, even sitting idle. The two Pi's I'm using for LibreElec have been on the same SD cards for 4 to 5 years.

I'm not sure how much write activity here is from Leafnode does on your setup, but remember no SD card lasts forever, so just make sure it's backed up regularly.

---druck

Reply to
druck

nah, thats mtime innit shirley?

--
No Apple devices were knowingly used in the preparation of this post.
Reply to
The Natural Philosopher

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.