Virtual drive - select cdrom or removable media
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.
- Michael Lynch @michael2021-06-09 20:54:52.403Z
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.
- CIn reply toComputerDoktor⬆:@ComputerDoktor
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) - CIn reply toComputerDoktor⬆:@ComputerDoktor
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- Michael Lynch @michael2021-06-10 18:23:21.973Z
Thanks! We'll use this to implement support for CD-ROM mode in a future version.
- In reply toComputerDoktor⬆:Michael Lynch @michael2021-06-18 21:52:15.836Z
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 the0
to a1
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.
- C@ComputerDoktor
Tx for the instruction, which worked for me.
- In reply tomichael⬆:BJames Paventi @Binary_Bandit
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
- Michael Lynch @michael2021-08-11 22:06:19.594Z
Unfortunately, CD-ROM mode is limited to files <= 2.2 GB. We currently don't have a workaround for larger files.
- CIn reply toComputerDoktor⬆:@ComputerDoktor
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 - BIn reply toComputerDoktor⬆:James Paventi @Binary_Bandit
ah, thank you ... I'll wait for this to be addressed then