Closed tan-wei-xin-alez closed 1 year ago
Hello.
kvmd-otgmsd -i 1
You should use 0
instead of 1
for the MSD.
But anyway :) As far as I understand, you performed further actions through the web interface. You did everything right except that the img file should have been formatted in FAT32, that is, you needed to create an image of a flash drive, not a DVD. Next, the emulation mode in the Drive menu in Web UI should be Flash. After you configure Flash, you should turn off and re-enable the main USB breaker in the System menu to perform physical reinitialization of the USB device. After that, your host will see a regular USB flash drive and you can simply copy the files there.
@mdevaev thanks for the reply
You should use 0 instead of 1 for the MSD.
Ah, then could you explain what
Drive 0 represents a drive that is controlled via a web interface and API. Don't use it with kvmd-otgmsd if you don't know exactly what you're doing.
means at https://docs.pikvm.org/msd/#how-to-create-rw-flash-drive? Should I follow all the steps there and use 0 instead of 1?
I will correct the instructions, it refers to the old versions. In the new version, you can use 0 because the API now supports read-write storage.
@mdevaev ok, I followed the instructions at https://docs.pikvm.org/msd/#how-to-create-rw-flash-drive but with 0 instead of 1 and now I get this
Should I be using dd if=/dev/zero of=/root/flash.img bs=1M count=1000 status=progress
or some other command to create an empty .img file? Because I need to write to it, does the warning message not matter?
Everything is as it should be, just follow the instructions. The warnings only tell you to be careful.
Ok, I'll just leave this here for any future users that might bump into the same problem, maybe it can also be added to the docs later
dd if=/dev/zero of=/root/flash.img bs=1M count=1000 status=progress
alone as shown at at How to create RW flash drive is not enough for creating an .img file that can be mounted and read on a windows machine, the following is also needed to create a FAT32 partition within the file
dd if=/dev/zero of=<path_to_img> bs=1M count=1000 status=progress
(echo o; echo n; echo ""; echo ""; echo ""; echo t; echo c; echo w) | fdisk <path_to_img>
mkfs.vfat <path_to_img>
as seen at Create a FAT file system image on Linux
fdisk
one-liner from automatize partition creation with fdisk)
Trying to mount the file on windows via double clicking, however, will probably throw a "disk is corrupted" error so use something like OSFMount instead
& 'C:\Program Files\Oracle\VirtualBox\VBoxManage.exe' clonehd --format raw <path_to_vhd> <path_to_img>
as mentioned at Convert .vhd to .img on windows?
Describe the bug I've got a closed source Linux-based operating system running on a server that exports logs via USB so I can't install any software like ssh etc. or access it via command line since I don't have permission.
I was originally following the instructions at https://docs.pikvm.org/msd/#how-to-create-rw-flash-drive but was not successful.
I then went and used https://www.imgburn.com/ to create an .img file which was successfully detected by the server running the closed source OS but I could not write anything to it
Could I get clarification whether the above is possible without root access to the server being controlled by the PiKVM? Because I was under the assumption that this should be completely possible (everything else seems to work fine). Am I just doing it wrong by creating a writable-only .img file? I double checked the default settings on the imgburn application and it's "DVD-R/RW". Or should I be using some other software on windows if the instructions at https://docs.pikvm.org/msd/#how-to-create-rw-flash-drive fail to work?
To Reproduce
https://pikvm/extras/webterm/ttyd/
su -
in the web terminal to become rootrw && kvmd-otgmsd -i 1
which throws the following errorExpected behavior Should be able to emulate a USB and get data off the server (works perfectly fine with a normal USB flash drive).
Desktop (please complete the following information):
Get-ComputerInfo | select WindowsProductName, WindowsVersion, OsHardwareAbstractionLayer
(Get-Item 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe').VersionInfo
PiKVM info:
cat /proc/device-tree/model
pacman -Q | grep kvmd
pacman -Q | grep ustreamer
uname -a