Mass Storage Drive
Reinstall the system Video
BliKVM supports USB drive emulation, allowing remote mounting of images for system reinstallation. Additionally, if you need to copy files from the controlled device, BliKVM also provides a command-line method.
Web UI
The entry point for the MSD virtual USB drive is:
Manual (without using Web UI)
1. Ensure the following four paths exist. If you are using the latest BliKVM image, no check is needed. The /opt/bin/msd/user path is used to store system images.
2. Log in to the BliKVM terminal via SSH, with both the username and password as blikvm. Use the rw command to make the read-only system writable.
3. On your control computer, use the following command in the terminal to copy the ISO image file to the specified path in the BliKVM image.
Of course, you can also use any other method you are familiar with to copy the ISO image file to the specified path.
4. Use one of the following commands to copy the image to the emulated USB drive. The default size of the USB drive is set to 5GB. If you need more space, you need to modify the kvmd-msd.sh script.
- If there is only one image file in the /mnt/msd/user path, you can use this command directly.
- If there is more than one image file in the /mnt/msd/user path, you can specify the file using the following command. xxx.iso represents the image name. The number after -s is the size of the USB drive in GB, which can be modified according to your needs. The string after -n is the USB drive name.
The cp process is very slow, please be patient.
5. Run the following command to connect the emulated USB drive to your controlled device.
6. Run the following command to eject the emulated USB drive from your controlled device.
7. Run the following command to clear the emulated USB drive, which will release the corresponding space.
8. If everything is correct, you should now see the emulated USB drive in a PC system. Restart your PC through the web, then use the shortcut key (many computers use F2) to enter the BIOS, change the boot priority, and set the emulated USB drive device to the highest priority.
9. According to the BIOS system prompts, save and restart to enter the Ventoy boot interface for system reinstallation.
General USB Drive
To transfer general files, note that the file names must be in English, as Chinese characters will appear garbled. The conn, disconn, and clean commands are still valid for general USB drives.
Create a General USB Drive
The number after -s is the size of the general USB drive in GB. The larger the capacity, the longer the creation time. Please set it according to your actual situation. -t must be other.
File Transfer from User Computer ==> KVM ==> Controlled Computer
- First, you need to send the file from the user control computer to the KVM.
- Synchronize the file to the controlled computer and connect it. For new content that needs to be transferred from the user computer to the controlled computer, repeat steps 1 and 2.
File Transfer from Controlled Computer ==> KVM ==> User Computer
- First, copy the file to the emulated virtual USB drive on the controlled computer, then execute the following command to copy the file to the /mnt/msd/user/ directory on the KVM.
- Copy the file from the KVM to the user computer.
Disabling Mass Storage
In rare cases, if the BIOS/UEFI cannot correctly recognize and even refuses to use the USB keyboard and mouse, it may be necessary to disable mass storage emulation.
Edit the enable
field in /mnt/exec/release/config/app.json
to false
, then restart the KVM to disable mass storage emulation.
"msd": {
"enable": true,
"isoFilePath": "/mnt/msd/user",
"shell": "./lib/kvmd-msd.sh",
"stateFilePath": "/mnt/msd/config/msd.json",
"tusPort": 10002
}
Created: April 17, 2023