Have you considered a flash friendly file system?
UBIFS, JFFS2, YAFFS2, LogFS
https://superuser.com/questions/248078/choice-of-filesystem-for-gnu-linux-on-an-sd-card
Note: I haven't used them myself, but I'd be curious.

On Mon, May 10, 2021 at 2:38 PM Curt Lundgren <[email protected]> wrote:

> I've set up a Pi 4 computer with 8 GB of RAM and a pair of 1080P displays
> as a second place to sit.  No Email, no chats of any kind, rather peaceful,
> actually.  It's running 64-bit Ubuntu, and except for an occasional
> non-fatal complaint from one application or another, it runs rather well.
>
> It's booting from a 32 GB high-endurance micro SD.  The problem I've
> observed with RPi computers in the past is that they destroy their boot
> media.  Most, if not all, micro SD cards do not have wear leveling, and so
> the constant logging and other activity eventually 'wears a hole' in the
> media and it fails.  This didn't keep my original single-core 700 MHz Pi
> from setting a personal runtime record of 1503 days, but it would not boot
> after power was restored.  Added a new high-endurance micro SD card to it,
> and it came right back up.
>
> Back in the Watkins days we were using Pi3 computers for door access
> control.  Everything was rock-solid reliable - until the boot media would
> fail.  That's when I hit on the idea of using the high-endurance cards.
> I've never had one of those fail, knock on wood.
>
> I still like the idea of wear leveling, so I bought a 500 GB NVMe drive
> and a USB 3+ enclosure.  It's bloody fast when connected to a Mac laptop,
> over 900 MB/sec both read and write.  I copied the Ubuntu boot image onto
> it and plugged it into the PI4.  I did have to flash the Pi firmware so it
> will boot either from an SD card or external USB media.  The Pi boots up
> and runs beautifully - for 10 to 20 minutes, then it just hangs.  Power
> cycle and it's good for another 10 - 20 minutes.
>
> Is it a power issue?  I have a spare USB 3.0 powered hub, so I plugged the
> new drive into the hub and the hub into the Pi.  It looks silly, with the
> hub being substantially larger than the computer, but it boots up, runs
> beautifully for 10 - 20 minutes - and hangs.  I don't think the trouble can
> be blamed on power supply issues, and I'm stumped as to what else might be
> going on.  I'm back on the high-endurance micro SD card, but would like
> very much to have the added capacity and wear leveling the SSD offers.
>
> Speed through the hub was dismal at about 32 MB/sec., pretty much USB 2.0
> performance, but that would have been OK if the Pi would run and not lock
> up.
>
> Does anyone have any thoughts as to what might be going on here?
>
> Thanks
> Curt Lundgren
>
> --
> --
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nlug-talk?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "NLUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nlug-talk/CADPPtrqCTBaYf4g2BU0g6M7nwg9da-qsXSBAcd72kkZrZ7sVhA%40mail.gmail.com
> <https://groups.google.com/d/msgid/nlug-talk/CADPPtrqCTBaYf4g2BU0g6M7nwg9da-qsXSBAcd72kkZrZ7sVhA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nlug-talk/CA%2BKhHxLqUw_QTNF35MGgkBGLx1tC5jV4NpCJYLZ%3DWDgfaDJRSg%40mail.gmail.com.

Reply via email to