Community
OpenEnergyMonitor

Community

EmonSD save data to an external HDD/SDD instead of SD

Tags: #<Tag:0x00007f6e0909dd18> #<Tag:0x00007f6e0909d688> #<Tag:0x00007f6e0909cfd0>

Hi, is there a way to change the location of EmonPI SQL database? I found some info in this thread that suggests to use the script /var/www/emoncms/scripts/usb_hdd/usb_hdd, unfortunally seems that this script just moves root partition to an external hdd and database is still stored in the SD card. Any suggestions? Thanks

I tried Paul Reed’s script for moving the operating system to a USB HDD. It does just that but the (third) Data partitition remains on the SD card.

Inspired by this I have managed to move both OS & data partitions to a USB HDD.

My ‘build notes’ are as follows and they maybe helpful …

JB_usb_hdd.txt (2.8 KB)

Designating the USB HDD as sdaX (rather than using UUID’s) is not preferred but it is most unlikely that more than one will be used which can result in drive mis-identification

1 Like