Ok, I think I’ve managed to find and solve the issue. The issue was that there was a lot of free space at end of the third partition included in the image file. This was no problem when flashing the image back onto the same model of SD card that the image was created on (as I was doing) since the image fit perfectly. However if using a different brand of SD card the actual size of an 8GB card can vary causing the image not to boot correctly.

This Gparted screen shots illustrate the issue:

I’ve trimmed the third partition to be 1GB, this should allow the image to easily fit on any 8GB SD card and reduce the size.

Once the RasPi has booted image it’s possible to run $ sudo emonSDexpand to expand the third /data partition to fill the available SD card size. The third data partition is the RW partition (mounted in /home/pi/data) where Emoncms logging data is stored.

I’ve uploaded a the cut down version of emonSD-26Oct to test: slim-emonSD-26Oct.zip.

Update: This ‘sim’ image is now the standard image, please download using the normal URL: emonSD pre built SD card Download & Change Log · openenergymonitor/emonpi Wiki · GitHub

Please download the new and report experience on the thread. If all goes well this version will replace the standard emonSD-26Oct download.

md5sum:

  • slim-emonSD-26Oct17.img: 88f8ff9a5f7bc0e9b07012895a5cdd95
  • slim-emonSD-26Oct17.img.zip: 6726564f379d0127052e8c30a3ffa534

This post explains the issue well: How to trim disk images to partition size | Linux M0nk3ys

2 Likes