Modify BIOS to non-uefi

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hexdy
    Member
    • May 2024
    • 10
    • Uruguay

    #1

    Modify BIOS to non-uefi

    Hello, I wanted to know if it is possible to modify a BIOS file to accept a legacy disk when it does not have the capability, I had this problem on a Optiplex 3060 that were donated to my job where we use non-uefi linux distros, we cannot use uefi since is a "big machine" with this systems beign the center of all of it, we can't change the distro now, maybe make some changes, but if I can modify the BIOS it would be awesome.
  • stj
    Great Sage 齊天大聖
    • Dec 2009
    • 30911
    • Albion

    #2
    it would be simpler to use this and make a version for your machines
    https://libreboot.org/

    Comment

    • hexdy
      Member
      • May 2024
      • 10
      • Uruguay

      #3
      Originally posted by stj
      it would be simpler to use this and make a version for your machines
      https://libreboot.org/
      That seems complicated for me, maybe one of my superiors might know, but since none of us are engineers this might not work.

      Comment

      • piernov
        Super Moderator
        • Jan 2016
        • 4435
        • France

        #4
        No way trying to port coreboot/Libreboot to an unsupported machine (or even trying to get it working properly on a supported machine) would be easier than anything else.
        Much easier to just install a UEFI-compatible bootloader and boot the Linux kernel from that. If the system is already using Grub it won't change much, although you need an EFI System Partition somewhere (a 500 MB FAT32 partition with correct type). This partition can be put on another drive (even external) if it's not possible to modify the main storage.
        UEFI has been the preferred boot mode for 13 years so it's really time to move on from legacy BIOS, which is not supported on newer platforms anyway. Any distribution that does not support booting from UEFI has been out of support for a long time.
        OpenBoardView — https://github.com/OpenBoardView/OpenBoardView

        Comment

        • hexdy
          Member
          • May 2024
          • 10
          • Uruguay

          #5
          Originally posted by piernov
          No way trying to port coreboot/Libreboot to an unsupported machine (or even trying to get it working properly on a supported machine) would be easier than anything else.
          Much easier to just install a UEFI-compatible bootloader and boot the Linux kernel from that. If the system is already using Grub it won't change much, although you need an EFI System Partition somewhere (a 500 MB FAT32 partition with correct type). This partition can be put on another drive (even external) if it's not possible to modify the main storage.
          UEFI has been the preferred boot mode for 13 years so it's really time to move on from legacy BIOS, which is not supported on newer platforms anyway. Any distribution that does not support booting from UEFI has been out of support for a long time.
          It's just that the higher ups on the "software" sector dislike to work, so, we have since a long time now the linux mint 19.3 tricia distribution, on legacy, we use a common hdd as a cloning station for multiple other ssd and hdd (we don't even work with m.2), since we work with donated systems, we sometimes come around with these uefi-only systems, which is a problem because of the before mentioned circumstances, I would prefer something easy to do, like transform the disks to kernel, change the bios (Only I can do it, since the ch341a is mine and only I know how to use it to some extent) or so.

          Comment

          • rogfanther
            Badcaps Veteran
            • Jul 2006
            • 458
            • Brazil

            #6
            You can use a small usb disk, with a uefi bootloader in it, as piernov said. If necessary, you can even install it with an extension cord inside the machine.

            Comment

            • hexdy
              Member
              • May 2024
              • 10
              • Uruguay

              #7
              Originally posted by rogfanther
              You can use a small usb disk, with a uefi bootloader in it, as piernov said. If necessary, you can even install it with an extension cord inside the machine.
              Hello, the usb would need to be with the machine at all times right? since that would be a temporal solution which is not what I am hoping for, since we have to donate this machines to multiple institutions we cannot send them with usbs, since we don't have much of those, my superior said he already tried making a EFI distro on a partition of the disk with the other beign the mint distro and it didn't work, sadly

              Comment

              • rogfanther
                Badcaps Veteran
                • Jul 2006
                • 458
                • Brazil

                #8
                While I haven´t got yet a machine that wouldn´t accept Legacy boot, I do believe that some exist out there. And with these "brand names", chances are greater. But IMHO, trying to modify the bios is much more complex to do when you seem to need some more simpler, efficient fix.

                Since he can modify the disk partitions, as you said, the suggestion, as per above, is not a full EFI linux installation, but just a bootloader ( small program, like rEFIfind, grub, Plop boot manager, etc. . ), with the necessary partitions ( usually, some 500MB FAT32 partition only ) .

                Or, just create two sets of disk images, one with Mint installed on Legacy Boot, and another with the same Mint installed as EFI boot.

                Some work will always be necessary, but it is much easier to just do what you already do ( install linux Mint ) with little changes only on the boot mode, than porting coreboot or developing and testing solutions that involve many more modifications to your workflow.

                Comment

                • hexdy
                  Member
                  • May 2024
                  • 10
                  • Uruguay

                  #9
                  Originally posted by rogfanther
                  While I haven´t got yet a machine that wouldn´t accept Legacy boot, I do believe that some exist out there. And with these "brand names", chances are greater. But IMHO, trying to modify the bios is much more complex to do when you seem to need some more simpler, efficient fix.

                  Since he can modify the disk partitions, as you said, the suggestion, as per above, is not a full EFI linux installation, but just a bootloader ( small program, like rEFIfind, grub, Plop boot manager, etc. . ), with the necessary partitions ( usually, some 500MB FAT32 partition only ) .

                  Or, just create two sets of disk images, one with Mint installed on Legacy Boot, and another with the same Mint installed as EFI boot.

                  Some work will always be necessary, but it is much easier to just do what you already do ( install linux Mint ) with little changes only on the boot mode, than porting coreboot or developing and testing solutions that involve many more modifications to your workflow.
                  The "EFI or UEFI partition" thing we've already tried but didn't work, the other part is outside our sector, we can make alterations but they have the "source code" (The "software sector"), so I don't know if these are all my options, it feels that I am missing something out :/
                  I will ask them if they used the bootloader already, but I think they already use one, since before entering the OS they can select on boot which OS we se, since we use mint and other thing that I forgot, some kind of backup manager created by them, I barely use it so I just forgot to tell you guys about it, my fault.

                  EDIT: I asked them, my superiors, about the UEFI transformation, they tried already creating with grub as the bootloader, which is the one we use, but since we have like 4 sda, we don't know on which one is the grub configuration, we don't know why but when we change to legacy the boot then the grub stops working, it seems it is a "legacy only" configuration on grub, so, what I need to know by now is just where can I find information on how to create grub, so I can, by myself, create a grub and copy-paste the sda where linux mint (turned uefi) is, we already created a linux mint version by now (with your help, of course) but now the grub doesn't appear, and if it is easy to create one with a template then that would be better.

                  Comment

                  • rogfanther
                    Badcaps Veteran
                    • Jul 2006
                    • 458
                    • Brazil

                    #10
                    Can´t you use this UEFI-only machine as a template, install Mint and your other programs on it, and then create the disk images based on that ?

                    You didn´t describe clearly what is that you install on the machines, and what are your part on the process, but from the little we know , how about this :

                    - Install Mint on the UEFI-only machine, accepting the options for configuring as UEFI-boot, etc.
                    - Install other necessary software, specific to your customers
                    - Image the disk, and try restoring the image to the disk of another UEFI-Only machine



                    Comment

                    • hexdy
                      Member
                      • May 2024
                      • 10
                      • Uruguay

                      #11
                      Originally posted by rogfanther
                      Can´t you use this UEFI-only machine as a template, install Mint and your other programs on it, and then create the disk images based on that ?

                      You didn´t describe clearly what is that you install on the machines, and what are your part on the process, but from the little we know , how about this :

                      - Install Mint on the UEFI-only machine, accepting the options for configuring as UEFI-boot, etc.
                      - Install other necessary software, specific to your customers
                      - Image the disk, and try restoring the image to the disk of another UEFI-Only machine


                      Okey I will explain the best I can with the little english I know (sorry for the confusion), we are a bussiness where companies contract us for state related work, like pcs, where we get them as a sort of donation, we pay for them but it's so little money that they are basically donations, more like a garbage disposal, sometimes our clients donate to us in exchange for money their old computers, which sometimes are really good, some of the are uefi-only, we have 2 sectors on my side, the software and hardware sectors, I'm on the hardware sector, the software sector is really busy so we can't go and ask them for these kind of things, since the specific configuration we use does work, it's just that now are appearing machines that need UEFI, so we need a UEFI version, or a modification, since we use a "mother disk" as a sample for duplication, we can change THAT disk but we do not have the original image, the image has network settings, program settings, grub bootloader and more, we could modify some things but we cannot know or modify the network configuration because of security reasons, so what I need is a solution that we can do over the "software sector" already made systems, again sorry for the inconvenience, my english is really bad.

                      Comment

                      • rogfanther
                        Badcaps Veteran
                        • Jul 2006
                        • 458
                        • Brazil

                        #12
                        No problem with the English, probably my spanish would be much worse. Unless you prefer to speak portuguese

                        If the computers you work with change / are different ( due to from where you receive them ) , modifying bioses are not an efficient way to solve that.

                        Since not much money is involved ( you said the computers are free / cheap ), can´t your business buy usb drives ( small, 512MB to 1GB would be enough ) , to set this up inside the machines ? Would add maybe $1 to the cost of each.

                        Other than that, what you are looking for would be a way to modify an already installed system ( with linux, grub, partitions, etc ) to be booted in a UEFI machine. Am I right in this ? Since you are the hardware guys, would that make things easier for you , as a way to solve the situation without inconveniencing the software guys ?

                        Comment

                        • hexdy
                          Member
                          • May 2024
                          • 10
                          • Uruguay

                          #13
                          Originally posted by rogfanther
                          No problem with the English, probably my spanish would be much worse. Unless you prefer to speak portuguese

                          If the computers you work with change / are different ( due to from where you receive them ) , modifying bioses are not an efficient way to solve that.

                          Since not much money is involved ( you said the computers are free / cheap ), can´t your business buy usb drives ( small, 512MB to 1GB would be enough ) , to set this up inside the machines ? Would add maybe $1 to the cost of each.

                          Other than that, what you are looking for would be a way to modify an already installed system ( with linux, grub, partitions, etc ) to be booted in a UEFI machine. Am I right in this ? Since you are the hardware guys, would that make things easier for you , as a way to solve the situation without inconveniencing the software guys ?
                          We are talking now with the software guys and they will give it a try at the things on the post, maybe in a month or so they will come to a solution, the problem here is not time so that's fine for now, here it is very hard to find 4GB or less pendrives, and sending pcs with them would make them easy to steal/damage, we will wait, if I receive a update on this I will post again, if I remember when that time comes.

                          Comment

                          • rogfanther
                            Badcaps Veteran
                            • Jul 2006
                            • 458
                            • Brazil

                            #14
                            I´m looking at the commands to change a MBR installed linux to a EFI one. Can you confirme the exact version of Mint you use, and also maybe the result of running 'fdisk -l" as root in a terminal, so that I can try to recreate the same partition layout here ?

                            Comment

                            • piernov
                              Super Moderator
                              • Jan 2016
                              • 4435
                              • France

                              #15
                              If the drive has 3 or less primary partitions you do not need to convert to GPT as you still have 1 primary partition left to create an EFI System Partition.
                              If the drive already has 4 primary partitions and you can't delete one or convert several of them to secondary partitions, then you need to convert to GPT. You can use gdisk to do that, it will try to keep the same layout.
                              Note that for a legacy BIOS Grub to be installed to a GPT drive, it needs a BIOS boot partition, which is a small partition of a few MB with a specific type at the beginning of the drive, but at this point this is irrelevant since we want to use UEFI Grub instead. However this will also likely prevent the current legacy BIOS Grub to boot, so you will have to perform the UEFI Grub installation step booting from another system and using chroot to get into the target system.

                              Then one of the existing partition will probably have to be resized to make room for the EFI System Partition.
                              Then you can create the EFI System Partition (500 MB, FAT32 with type 0xEF00 in gdisk) and add it to the `/etc/fstab` as the `/boot/efi` mountpoint.
                              After that you can install `grub-efi-amd64-signed` and `shim-signed` (for Secure Boot support, although I'm not sure everything will be configured properly for that), then reinstall grub in EFI mode with `sudo grub-install --target=x86_64-efi` and re-generate the configuration with `sudo update-grub`.

                              There's one caveat though, if you move the drive to another machine, the other machine will not have the necessary UEFI Boot menu entry that points to the Grub bootloader. Hopefully, the bootloader also installed itself to the default path `/EFI/Boot/BootX64.EFI` (in the EFI System Partition) so that it can boot even without a specific entry. If that's not the case you can try to run the grub-install command again, adding `--removable`.
                              I'd still recommend re-installing the bootloader after booting on the target system to create the appropriate UEFI Boot menu entry.

                              Anyway, Linux Mint 19.3 has been out of support for a year, so I'd highly recommend upgrading and this is a good opportunity to make a proper UEFI system.
                              OpenBoardView — https://github.com/OpenBoardView/OpenBoardView

                              Comment

                              • hexdy
                                Member
                                • May 2024
                                • 10
                                • Uruguay

                                #16
                                Originally posted by rogfanther
                                I´m looking at the commands to change a MBR installed linux to a EFI one. Can you confirme the exact version of Mint you use, and also maybe the result of running 'fdisk -l" as root in a terminal, so that I can try to recreate the same partition layout here ?
                                On the monday we will continue on our job with this, then I will send you a response, sorry.

                                Comment

                                • hexdy
                                  Member
                                  • May 2024
                                  • 10
                                  • Uruguay

                                  #17
                                  Originally posted by piernov
                                  If the drive has 3 or less primary partitions you do not need to convert to GPT as you still have 1 primary partition left to create an EFI System Partition.
                                  If the drive already has 4 primary partitions and you can't delete one or convert several of them to secondary partitions, then you need to convert to GPT. You can use gdisk to do that, it will try to keep the same layout.
                                  Note that for a legacy BIOS Grub to be installed to a GPT drive, it needs a BIOS boot partition, which is a small partition of a few MB with a specific type at the beginning of the drive, but at this point this is irrelevant since we want to use UEFI Grub instead. However this will also likely prevent the current legacy BIOS Grub to boot, so you will have to perform the UEFI Grub installation step booting from another system and using chroot to get into the target system.

                                  Then one of the existing partition will probably have to be resized to make room for the EFI System Partition.
                                  Then you can create the EFI System Partition (500 MB, FAT32 with type 0xEF00 in gdisk) and add it to the `/etc/fstab` as the `/boot/efi` mountpoint.
                                  After that you can install `grub-efi-amd64-signed` and `shim-signed` (for Secure Boot support, although I'm not sure everything will be configured properly for that), then reinstall grub in EFI mode with `sudo grub-install --target=x86_64-efi` and re-generate the configuration with `sudo update-grub`.

                                  There's one caveat though, if you move the drive to another machine, the other machine will not have the necessary UEFI Boot menu entry that points to the Grub bootloader. Hopefully, the bootloader also installed itself to the default path `/EFI/Boot/BootX64.EFI` (in the EFI System Partition) so that it can boot even without a specific entry. If that's not the case you can try to run the grub-install command again, adding `--removable`.
                                  I'd still recommend re-installing the bootloader after booting on the target system to create the appropriate UEFI Boot menu entry.

                                  Anyway, Linux Mint 19.3 has been out of support for a year, so I'd highly recommend upgrading and this is a good opportunity to make a proper UEFI system.
                                  My superior says that what you just described is more or less what he already tried, and it didn't work because of the system structure, we need more info about the software too.

                                  Comment

                                  • rogfanther
                                    Badcaps Veteran
                                    • Jul 2006
                                    • 458
                                    • Brazil

                                    #18
                                    Lets wait for the information on monday, then we can adjust the suggestions to the way things are on your disks

                                    Comment

                                    Related Topics

                                    Collapse

                                    • Kenzi
                                      Cannot modify HP Envy 15 ep-00008na BIOS
                                      by Kenzi
                                      Hi everyone,

                                      I'm trying to modify my BIOS to unlock the advanced menus and unlock the processor power limits. The first thing I have tried is reading the BIOS from the laptop and opening it up in amibcp, and changing the advanced menu to User. However, no matter what tiny change I make to the BIOS, when I flash it back to the laptop with a programmer it says there is corruption and the BIOS needs to be recovered.

                                      I've also tried rolling back the BIOS to an older version. I made the mistake of updating to the latest version and now I cannot even edit the CFG and OC...
                                      11-09-2023, 05:22 AM
                                    • Vesko356
                                      [Guide] How to find the right HP bios version to flash
                                      by Vesko356
                                      First of all thanks to all of our members who have posted previously all methods posted here.
                                      Please leave a comment if you find something new,or have anything else to add.
                                      -----------------------------------------------------------------------------------------

                                      Find by serial number,model number or series

                                      If you know the laptop serial or model number go to HP support https://support.hp.com/us-en/drivers/laptops .
                                      Enter the serial number or model number and click submit.On the next screen you will have to enter the OS
                                      Operating system and OS version.If...
                                      08-11-2023, 03:27 AM
                                    • glovecaps
                                      Asus ROG Strix Scar G533qm with a G733qm Motherboard, can I modify the Bios to accept G533 Bios
                                      by glovecaps
                                      Hello,

                                      I have a Asus ROG Strix Scar 15 (G533QM) that had a dead motherboard (Graphics card dead) and after trying to fix the motherboard with no success, I bit the bullet on a sale for a new motherboard. I ordered a motherboard for the 15 inch model which is the one that I have, and when the motherboard arrived it wasn't for a little while that I saw it was from the 17 inch model.

                                      My question is, can I update the Bios on this G733 motherboard to a G533 Bios.

                                      The reason for wanting to do this is that the keyboard isn't working as it should, and I think this...
                                      11-25-2024, 04:23 PM
                                    • jbonavita
                                      ASUS TP500LA BIOS request/repair/merge?
                                      by jbonavita
                                      Hi, my laptop wont boot at all
                                      With original bios no POST, only LED lights
                                      With alternative BIOS from model TP500LN (flashed via programmer) the notebook works again
                                      Some issues
                                      A- with bios from 500LN, it won't update from bios of model 500LA (from 500LN v203 to 500LA v300)
                                      B- If updated from 500LN version 203 to 300, the battery stops being recognized

                                      Things I tried

                                      1- Update / clear ME: Took the non working bios, made a backup, and did this: https://www.badcaps.net/forum/troubl...theory/trouble...
                                      04-29-2025, 09:38 PM
                                    • Bloodhoundje
                                      HP Pavilion Gaming Laptop 15-ec2523nd - Dimm2 slot disabled after corrupt bios repair? Advice requested.
                                      by Bloodhoundje
                                      Hi everyone,

                                      I have been doing hardware repair as a hobby for some years now and recently decided to learn about repairing laptops as a fun challenge.

                                      I managed to get my hands on a "HP Pavilion Gaming 15-ec2523nd" notebook that only shows a white power LED and doesnt respond to anything.

                                      After initial testing I concluded the bios seems to be corrupted since all voltages are normal and there are no shorts. HP has a feature for a bios restore from USB with winkey+B for this model. This did not work.

                                      I have desoldered the bios chip (GigaDevice...
                                      03-16-2024, 03:12 PM
                                    • Loading...
                                    • No more items.
                                    Working...