cross-posted from: https://infosec.pub/post/55283778
Bought a 2nd-hand HP. BIOS is passworded and cannot be reset. So I am stuck with unknown pre-existing BIOS settings.
I can boot:
- a live CD (e.g. Knoppix 9.1)
- a SATA drive if MS Windows is installed
- a SATA drive that has an ISO image of Kali, or Knoppix (
dd if=$isofile of=/dev/sdX)I cannot boot normally installed linux (tried Debian and Magia). Something like “no boot device found” appears. Indeed it is infuriating. Is UEFI fucking with me?
Is there a way to install a normal linux distro like Debian in a way that gives the appearance of booting an ISO, to hack around this problem? Or am I fucked?
#update: secure boot is in play As most suspected, secure boot was the culprit. I did not do the ultimate test yet, which would be to run
mokutil, but I was able to /install/ Kali (as opposed to just running a Live distro). IIUC, being forced to use secure boot without BIOS access means that I am restricted to one of these platforms:
- Debian
- Ubuntu
- Mint
- Kali
- Zorin
- Fedora
- OpenSuse Tumbleweed
- MS Windows 🤮
- Knoppix? (I was able to book a Knoppix live CD and ISO, and now I suspect being an ISO fs is probably not a factor)
If I want to run anything else, the BIOS chip must be desoldered from the board and flashed using special hardware.
Still unsolved: Why did Debian 12.4 install but then fail to boot? Debian is claimed to have secure boot support since version 10. Maybe there is an option during the install that needs toggling.
When you say that it will only boot Windows as the internal OS, do you mean that you’ve only seen it work with that at the start or have you tried reinstalling Windows since? I wonder if it’s due to a checksum having changed and messing with secure boot after rewriting the OS.
If you have an SSD and and adapter, you could also rule out whether the issue relates to it being the internal boot media, by trying to boot the same disk both in the internal bay and over USB on an adapter. If the same disk gets different results without any changes, that gives you some pointers.
sounds like secure boot(?)
Yep, just ran into this over the weekend.
Maybe a minimalist custom “live CD” image that pulls up a GRUB menu, and then you configure GRUB to boot your desired distro on another partition by default?
Once you get to GRUB, it should be out of the BIOS’s hands and you should be free to do what you want. You’d probably have to roll your own “live CD” for that, since I don’t know of any live image that uses GRUB by default. I don’t know how to make a custom live CD image, but it can’t be that difficult, can it?
After reading your linked post… you maybe able to source another laptop mainboard, perhaps from an otherwise broken device reasonably cheaply.
Or source a replacement BIOS chip and swap it (a repair shop should be able to swap it).
Alternatively, once booted, you might be able to configure the UEFI boot with
bootctlor similar (windows has an equivalent), but the password might nix that.



