No internet connection
  1. Home
  2. General

Virtual drive - select cdrom or removable media

By @ComputerDoktor
    2021-06-09 15:49:47.166Z

    With a cdrom virtual image, windows suggests formatting the device, boot fails.
    Please add a choice between cdrom and removable media.
    Works with PiKVM selection cdrom instead of flash.

    • 10 replies
    1. Thanks for reporting this! Currently, we load all files in flash mode, but it's on the roadmap to support CD-ROM mode.

      Can you share anything about the disk image that only works in CD-ROM mode? So far, we haven't found any files that require CD-ROM mode, so if you have a pointer to where we can find one for testing, that would be helpful.

      1. C
        In reply toComputerDoktor:
        @ComputerDoktor
          2021-06-10 04:49:46.242Z

          One CD-ROM image was not recognised on a target system running Windows 10, Raspi OS did not care about media type.
          2 examples with output of file command
          image built with Windows "burn on CD"
          ISO 9660 CD-ROM filesystem data 'XXXXXXXXXXXX'
          image built by https://github.com/ChrisRfr/Win10XPE rsp https://github.com/pebakery/pebakery
          ISO 9660 CD-ROM filesystem data 'Win10XPE_x64' (bootable)

          1. C
            In reply toComputerDoktor:
            @ComputerDoktor
              2021-06-10 17:30:39.708Z

              Another example for an iso image which is not recognized neither running Windows nor as boot media
              Windows evaluation
              https://software-download.microsoft.com/download/pr/19042.508.200927-1902.20h2_release_svc_refresh_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_de-de.iso

              1. Thanks! We'll use this to implement support for CD-ROM mode in a future version.

              2. In reply toComputerDoktor:

                There's a hacky workaround for this until we add official support for CD-ROM mode:

                sudo nano /opt/tinypilot-privileged/init-usb-gadget
                

                And then look for the line toward the bottom of the file containing "${MASS_STORAGE_FUNCTIONS_DIR}/lun.0/cdrom" and change the 0 to a 1 so that it looks like this:

                echo 1 > "${MASS_STORAGE_FUNCTIONS_DIR}/lun.0/cdrom"
                

                Save the file, and then run:

                sudo service usb-gadget restart
                

                TinyPilot will overwrite these changes on the next update, and it will load all of your virtual disk files in CD-ROM mode while this patch is in place.

                1. C@ComputerDoktor
                    2021-06-20 10:36:54.719Z

                    Tx for the instruction, which worked for me.

                    1. In reply tomichael:
                      BJames Paventi @Binary_Bandit
                        2021-08-09 22:11:31.033Z

                        Hi All,

                        Just checking in to see if this has been resolved. I can use the workaround to mount a Win 10 boot CD, view the volumt title in WIndows but can not see the file system or boot from it.

                        best,

                        James

                        1. Unfortunately, CD-ROM mode is limited to files <= 2.2 GB. We currently don't have a workaround for larger files.

                      • C
                        In reply toComputerDoktor:
                        @ComputerDoktor
                          2021-06-20 07:02:46.343Z2021-06-20 12:03:17.191Z

                          The Windows evaluation image is a bad example, currently it cannot be used neither with tinypilot nor with PiKVM.
                          The size of cdrom images is limited to 2.2 GiB by the g_mass_storage kernel driver, see https://linux-sunxi.org/USB_Gadget/Mass_storage

                          1. B
                            In reply toComputerDoktor:
                            James Paventi @Binary_Bandit
                              2021-08-11 22:16:33.769Z

                              ah, thank you ... I'll wait for this to be addressed then