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?

  • x7HlPDq9dSNO6v3A9@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 hours ago

    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.

  • deadbeef79000@lemmy.nz
    link
    fedilink
    arrow-up
    0
    ·
    8 hours ago

    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 bootctl or similar (windows has an equivalent), but the password might nix that.

  • 2ndDegreeOWO@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    9 hours ago

    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?