No internet connection
  1. Home
  2. General

Mount virtual media RW?

By SP @spot
    2021-07-14 14:48:34.769Z

    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.

    • 1 replies
    1. This is possible but not officially supported.

      You can open up /opt/tinypilot-privileged/init-usb-gadget 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.