Running out of space in the /data/home/nodered

This not so much of a question as something helpful for people going forward. I had a very unpleasant breakdown of my system the other day. I surmise it had a lot to do with the lack of space which I only found out when running an npm install command and it errored out with a lack of space.

If you run df -h in the shell then look for the space against /data

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root              1201704    984680    140608  88% /
devtmpfs                465376         4    465372   0% /dev
tmpfs                   515040       956    514084   0% /run
tmpfs                   515040       516    514524   0% /var/volatile
/dev/mmcblk1p5         1134336    186856    871808  18% /data
/dev/mmcblk0p1        61341468   1231104  56964640   2% /run/media/mmcblk0p1
tmpfs                   515040       956    514084   0% /service

Mine was 22M available before I took this capture. You might need to take action. I moved the node red folder onto my SD card. This might need relinking after each update which will need a script in rcS.local. I’ll test and update after the next update.

So I took the following steps.

Shutdown node-red from the cerbo remote.

cd /home/data
mkdir /media/mmcblk0p1/data
cp -a nodered/ /media/mmcblk0p1/data/

ls -al /media/mmcblk0p1/data/nodered/.node-red/    <--- Check its all there
rm -r /data/home/nodered
ln -s /media/mmcblk0p1/data/nodered nodered

restart node-red from cerbo remote.

This seems to be working fine.

2 Likes