Community
OpenEnergyMonitor

OpenEnergyMonitor Community

Expand the filesystem or not?

Tags: #<Tag:0x00007f88cc3c8780> #<Tag:0x00007f88cc3c8550> #<Tag:0x00007f88cc3c8460>

Hi all, I’m in the process of migrating my old RPI1 with emoncms.org logging (RO SD card) to a spare RPI2 with local logging. the current system has been working great for 6 years now so I am worried aboud breaking it. I bought a 64GB MAX ENDURANCE sandisk SD CARD with the objective of increasing the life of the setup as long as I can…
now I have one doubt… should I expand the filesystem to use the whole 64GB or should I leave it like it is (will the rest of the card not wear out, maybe?)
In other words, for lifespan consideratons, is it better to expand or not?
A.

If you are using the emonSD image, it will set up 2 partitions, one specifically for data.

I can’t though remember if it expands to the full 64MB now - it was designed for 16MB cards.

[edit]

Don’t rush the first boot. Just let it do it’s stuff - make a cuppa. Better still, connect a monitor so you can see what is happening.

1 Like

Yes. Using a card which is much bigger than you need will extend its life considerably.

Ref:

1 Like

Bill - I think maybe your answer doesn’t address the questions about “expanding the filesystem”. If andrearimo doesn’t expand the filesystem, won’t all the reads & writes will be concentrated on the usable 16 GB portion of the card? On the other hand, if the latest emonSD image automatically expands the file system to use the entire card, the issue may be moot. Last time I installed emonSD it was the “emonSD-24Jul20” image and I manually expanded the file system by running: sudo /opt/emoncms/modules/usefulscripts/sdpart/./sdpart_imagefile
(as borpin cautioned, you’ll need to be patient as the sdpart_imagefile script can take a while and it reboots once then shutdowns automatically)

The way I read Bill’s answer, you’ve got the wrong end of the stick. Surely Bill is saying yes, it is better to expand and when the partition is expanded, then the wear levelling algorithms have more space over which to spread the wear out?

BTW, I’ve found that, if writing the SD card in a machine with GParted available, that gives you a very easy and safe way to expand the partition.

Indeed I am. :wink:

Aye, Spot on.

1 Like