:: Re: [DNG] Insane defaults on Raspbe…
Top Page
Delete this message
Reply to this message
Author: Hendrik Boom
Date:  
To: dng
Subject: Re: [DNG] Insane defaults on Raspberry Pi images - How to fix corruption/dataloss
On Wed, Nov 13, 2019 at 07:27:03PM -0500, Steve Litt wrote:
> On Tue, 12 Nov 2019 10:31:27 +0100
>
> Regarding eliminating the journal, you bring up a good point. But so
> did some other people arguing the opposite. I suggest an installation
> that gives the following choices:
>
> * Don't use a journal
> * Use a journal but keep it on an always-connected spinning rust drive
> * Use a journal on the SSD or SD card
>
> My suggestion is that the installer be clear about the tradeoffs when
> SSD or SD card are involved, and also ask you whether you want to
> fstrim manually or by cron. From what I understand, putting fstrim in
> /etc/fstab is always a bad idea. Also, the installer could remind the
> user to delete or archive to spinning rust files not needed, to
> preserve free space on the SSD or SD card.
>
> I'm thinking of using an Rpi as a poor man's laptop, because I've had
> too many laptops go bad from spilled drinks and other keyboard
> destroying mistakes. So I'd have an attached 2.5 inch USB spinning
> rust. So I could bind mount (I love bind mounts) part of my spinning
> rust to /var very early in the boot.
>
> But then I might use another Rpi as an experimental thing, and perhaps
> shut off journaling to save the memory card. Or perhaps install a big
> honking memory card, log rotate ruthlessly, and fstrim every day.


Memory cards aren't what they used to be.
I remember adding a memory card to an ancient PC to upgrade it from
128K to 649K

-- hendrik