mirror of
https://github.com/pikvm/pikvm.git
synced 2026-03-02 18:16:56 -05:00
Cannot detect boot drive, when using flash mode #447
Labels
No labels
component:documentation
help wanted
resolution:delayed
resolution:duplicate
resolution:fixed
resolution:invalid
resolution:rejected
resolution:wontfix
success story
type:bug
type:bug
type:feature
type:question
type:question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pikvm-pikvm#447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @techmadot on GitHub (Apr 10, 2022).
Originally assigned to: @mdevaev on GitHub.
Describe the bug
I'm using PiKVMHat.
In my environment, I couldn't select the CD-ROM drive as the boot drive in the BIOS (UEFI) when selecting Flash mode.
However, in CD-ROM drive mode, it was detected as a boot drive.
After Windows starts, Flash mode is working fine.
I want to use an iso, usb memory image larger than 2.2GB, so please give me some advice.
The image data was created from a physical USB stick (for the Ubuntu 21.04 installer).
It has also been confirmed that it can be booted from this USB stick.
also, PiKVM Usb connects directly to the rear USB on the motherboard (not via Hub).
To Reproduce
Steps to reproduce the behavior, like:
Expected behavior
PiKVM devices are listed as boot devices
Screenshots
Using Motherboard is ASRock B550 Phantom Gaming 4
This issue has occurred in other environments as well.
Using Motherboard is A520M PRO-C DASH
when selected CD-ROM mode (Good case)

Desktop (please complete the following information):
PiKVM info:
pacman -Q | grep kvmdpacman -Q | grep ustreameruname -aAdditional context
Add any other context about the problem here.
@arch1mede commented on GitHub (Apr 12, 2022):
I just tested this on my test NUC, I can see both cdrom and flash drives. However, I will point out that I needed to select legacy to view them.
@mdevaev commented on GitHub (Apr 12, 2022):
Did you try usb hard drive option?
@techmadot commented on GitHub (Apr 13, 2022):
Thank you advices.
I tried it.
case 1 (Still failed)
USB Hard disk boot order has been selected as the highest priority.
But this failed.
case 2 (Success)
I changed uefi mode to ''CSM".
And, boot mode selected Legacy + UEFI, then PiKVM CDROM appeared.
As a result, it doesn't seem to be recognized in UEFI Only mode.
Is this a specification? Is there any chance that it will be resolved in the future?
@mdevaev commented on GitHub (Apr 13, 2022):
It seems this is a compatibility problem. To fix it I need the motherboard with this bug to analyze the USB protocol features.
@chuck-r commented on GitHub (Jul 27, 2022):
Is the image you are trying to boot Secure Boot compatible? Many machines with Secure Boot enabled will simply not show boot options that aren't Secure Boot-compatible. Turning off Secure Boot may fix your issue. The Secure Boot option is usually in the Security section.
I know that Ubuntu used to be Secure Boot compatible, but I'm not sure if that's still the case. Regardless, the method used to write the USB drive might make a difference. The best way to write an Ubuntu ISO to a USB drive is using a tool like Balena Etcher or Win32DiskImager that effectively does a raw write of the file to the drive, partition table and all. If you use a "flash drive creator" tool such as UNetbootin/Rufus/Universal USB Installer, they may make modifications to the original, intended layout which may no longer be Secure Boot compatible -- leading to the boot option not showing up on a Secure Boot-enabled EFI.
@mdevaev commented on GitHub (Aug 1, 2022):
@techmadot please try the new KVMD 3.133+ and enable "writable" flag in MSD menu. It may fix this problem.
@techmadot commented on GitHub (Aug 5, 2022):
I tried last version.
but not fixed this problem.
if CSM is enabled, i can see bootable menu

@mdevaev commented on GitHub (Aug 5, 2022):
Got it. So this is not the same problem like with Steam Deck.
@mdevaev commented on GitHub (Jan 24, 2025):
Hello. Latest PiKVM can emulate DVD, so probably it should solve the problem with booting big images.
@chuck-r commented on GitHub (Mar 11, 2025):
Confirmed that it's working for me! I started work on a kernel patch back in 2016 or so for this, but found with the then-current version of f_mass_storage.c that I would have to write a DVD emulation layer and it never went anywhere (not to mention all of the locked-down specs and such). I'm glad to see this is finally working! This isn't a custom patch set and is an upstream kernel fix, correct?
@mdevaev commented on GitHub (Mar 11, 2025):
@chuck-r I wrote it myself based on few incomplete patches and my own understanding of SCSI.
@mdevaev commented on GitHub (Mar 11, 2025):
I suppose it can be closed :)