Mount virtual media RW?
By SP @spot
I know it is not possible from web interface, but is there a file to manually edit to change a virtual disk image to RW when mounted? Would be a nice option in the web interface at some point as well.
- Michael Lynch @michael2021-07-14 17:49:25.552Z2022-04-08 20:35:45.507Z
This is possible but not officially supported.
You can open up
/opt/tinypilot-privileged/mount-mass-storage
and find this line:echo 1 > "${MASS_STORAGE_FUNCTIONS_DIR}/lun.0/ro"
To enable read-write, change it to:
echo 0 > "${MASS_STORAGE_FUNCTIONS_DIR}/lun.0/ro"
Then, save the file and run this command:
sudo service usb-gadget restart
Note that it's not per-mount. That will make all virtual media mounts read-write.