2 things.
I want to have a quick move of my whole sound library to USB/ external storage.
I want to have an option to make USB/ external storage the main install location for packages
2 things.
I want to have a quick move of my whole sound library to USB/ external storage.
I want to have an option to make USB/ external storage the main install location for packages
Making a feature request in this forum is fine, and makes sense to discuss the feature, options for implementation, etc. And in some cases that’s all it takes to make it happen. Usually you have to make a Feature Request here:
Gotcha, I’ll put it there too. I couldn’t see a link anywhere so I just posted. Thanks!
If you update your zynthian you will get the script i created for this.
Simply run it like this:
move_data_to_external_storage.sh
Please, before ensure the external disk has enough free space for the data.
After running the script, all zynthian sound library will be located in the external storage and all packages you install will be installed there too.
Regards,
GOATED! Thank you, I’ll get on that when I get home.
I would recommend you to wait a little bit more. I’m on the way with a better solution.
Regards
OK!
I’ve implemented a mechanism based in udev-managed dynamic bind-mounts. The mechanism can be enabled by setting the right envar in the config file (zynthian_envars.sh):
export ZYNTHIAN_DYNAMIC_MEDIA_BIND=1
and updating the system config with:
update_zynthian_sys.sh
Once enabled, the system will detect when external storage is connected and will look for any of these directories:
bind-mounting them and overlapping the directories in the internal storage.
When the external storage is disconnected, the internal storage directories will be “restored” again.
The script:
move_data_to_external_storage.sh
move all data in these 3 directories to the external storage, leaving the empty directory tree in the internal storage and enabling the dynamic-media-bind mechanism.
When all this is well tested, i would add the options to webconf.
Enjoy!
In the future, please have just one request per Github issue, unless they’re extremely closely related. I realize that’s not an easy judgement call and this one is close to the edge.