Community
OpenEnergyMonitor

Community

Replace pre-built SD card with new, larger one?

I have a quite new Emonpi (purchased in 2019), which came with a 16GB SD card. I have just now started using it, and I currently have 60 feeds (10s mostly, a few 1min). I know, it is a lot, but I have CTs on all 23 fuses, and some of them are three-phase, main fuse, heat pump etc. The emonpi is hosting a local emoncms database.

Currently I have used 1.35% (139.2MB) out of the 10.32GB space allocated for data. I do not have enough data to calculate when this will fill up, as the number of feeds have been increasing for a while. But anyway, I still want to check if there is any simple way to replace the SD card with a 32/64/128GB one?

I have only really basic knowledge of RPI, Linux etc,

You can see from the admin page how full the data partition is and so how quickly it is filling up. To move to a larger card it is simply a case of using the backup module to export the data and then import it onto a new instance if necessary.

I would advise to take backups at a reasonably regular interval if you care about the data.

I will monitor the fill rate, of course.
I saw the backup module, it is great, and seems very easy to use. But is it so that the operating system and all software is installed on the same sd card? My question then would be

  1. Is it easy to configure a new sd card with emoncms, OS and everything, or alternatively,
  2. Keep the existing sd card, but store data on an external usb storage, e.g. a small, low-cost SSD?

The backup module takes everything from the emoncms system such that, on a fresh install of Emoncms or a fresh EmonSD image, the Emoncms system can be restored with historical data.

It does not backup any other OS or system information.

Brian - will this approach create a data partition larger than 10 GB on SD cards that are larger than 16 GB? From previous posts (i.e., emonSD-17Oct19 Image partition sizes), I thought the emonSD images are designed for 16 GB SD cards and won’t create larger data partitions on larger SD cards.

Right now I’m not sure how Trystan has left it. I think he has fixed the rootfs and so the data partition is the rest of the card.

Thanks, I think I will try with a larger SD card and see what happens. Now, I bought the Emonpi pre-installed. The installation is similar to, but not identical to my other RPI wher I installed emoncms myself. The emonpi is on emoncms 10.1.13, while my other installation is at 9.x.x. That could explain some of the difference, maybe? But the emponpi istall seems to have a bit more funcitonality, like the update functions under Administration, and some of the left side menu entries. Will I get an identical emoncms install by doing the config myself?

Ok, so quick google gave the answer, the " Download image & flash to SD card:" option seems to be the right one for me.

1 Like

thumbsup thumbsup