Write protection in Venus OS 3.51?

Hi,
Is there a write protection of Venus OS files in update 3.5x?
I changed the kwhdeltas.py script to get at least a reasonable consumption calculation in VRM portal. It works fine until 3.43 with updates I needed to change the file again. After upgrading to 3.51 I can not edit kwhdeltas.py any more using nano or overwrite the file by “cp /data/kwhdeltas_new.py /….”. Setting back to 3.43 solved it, but I would prefer to update.

Best regards

Rüdiger

Venus OS has used a read-only root file system for some time now. Any modifications must first remount the file system read-write and expand the root partition to make space for the modifications.

/opt/victronenergy/swupdate-scripts/resize2fs.sh will do this. It only needs to be run once after each firmware update. SetupHelper will do this for any package using it.

1 Like

Could you please tell me since which version was this implemented?
In my case, 3.32 (I know, oooold), this is not the case. I can modify everything in the /opt/victronenergy folder.
Also considering that he, on 3.43, is also able to modify things, it must be later than 3.43.
And since 3.43, only 3.50 and 3.51 are available…
Thank you!

According to the release notes, this was implemented in Venus OS v2.80 (January 2022).

Note that once the root file system is remounted read-write, it remains so. You only need to run the script once after each firmware update.

SetupHelper added code to remount and resize the root file system in v5.11. If you have installed any packages that use SetupHelper, the remount/resize is handled by that install.

1 Like

Thanks a lot, Kevin,
I did not recognize, because I run the resize because my Venus OS needed a reboot every two weeks. I thought, it is because of disc space. So when I startet the changes, it was already open.

Thanks for the explanation!
To be honest I don’t remember to ever run that script and I’ve updated a few times the firmware until I’ve settled to that 3.32.
Maybe the WinSCP that I am using is doing some of the things that the indicated script is doing.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.