Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB installer images won't work with BIOS #3528

Closed
LinuxKernel1 opened this issue Jun 10, 2019 · 16 comments
Closed

USB installer images won't work with BIOS #3528

LinuxKernel1 opened this issue Jun 10, 2019 · 16 comments
Labels
help wanted Contributor missing / timeout support Community support

Comments

@LinuxKernel1
Copy link

Used dd and rufus to create a bootable usb device (OPNsense-19.1.4-OpenSSL-vga-amd64.img), but refuses to boot on various machines with BIOS. After the boot devices is selected a blank screen appears for some seconds and you are back at the boot device selection.
On a PC with UEFI it works without a problem.
Also tried version 18.7 & 18.1 with the same result.

The pfsense image(pfSense-CE-memstick-2.4.4-RELEASE-p3-amd64.img) works perfectly.

@fichtner fichtner added the support Community support label Jun 11, 2019
@LinuxKernel1
Copy link
Author

Current situation after some more testing:
Machine 1 - BIOS: NOT WORKING
Machine 2 - BIOS: NOT WORKING
Machine 3 - BIOS: WORKING
Machine 4 - UEFI: WORKING
OPNsense-19.1.4-OpenSSL-vga-amd64.img and rufus were used.

Workaround:

  1. Create a bootable media with rufus
  2. Convert the GPT disk to MBR
  3. Mark the EFISYS partition as "active"
    --> WORKING on all BIOS PC's<--

Booting from GPT based images is intended to work on BIOS PC's as well, so there is still somewhere a problem.

@fawzy46
Copy link

fawzy46 commented Sep 11, 2019

Current situation after some more testing:
Machine 1 - BIOS: NOT WORKING
Machine 2 - BIOS: NOT WORKING
Machine 3 - BIOS: WORKING
Machine 4 - UEFI: WORKING
OPNsense-19.1.4-OpenSSL-vga-amd64.img and rufus were used.

Workaround:

  1. Create a bootable media with rufus
  2. Convert the GPT disk to MBR
  3. Mark the EFISYS partition as "active"
    --> WORKING on all BIOS PC's<--

Booting from GPT based images is intended to work on BIOS PC's as well, so there is still somewhere a problem.

can you share more detailed steps, please

converting to gpt format the hard drive right? so how we do it after creating a bootable media?

@LinuxKernel1
Copy link
Author

LinuxKernel1 commented Sep 11, 2019

converting to gpt format the hard drive right?

After you wrote the image to your USB device it automatically will use GPT and to make it work you have to convert it to MBR. You just have to modify your USB device, your PC will be untouched.

so how we do it after creating a bootable media?

You still can modify your bootable USB device after you have written the image onto it. There are various tools available for it.

@fawzy46
Copy link

fawzy46 commented Sep 11, 2019

converting to gpt format the hard drive right?

After you wrote the image to your USB device it automatically will use GPT and to make it work you have to convert it to MBR. You just have to modify your USB device, your PC will be untouched.

so how we do it after creating a bootable media?

You still can modify your bootable USB device after you have written the image onto it. There are various tools available for it

I thought i have done something wrong as my usb always turn to gpt after burning. One last thing after burning the img I can't open the usb from windows or display the files it contains is that normal?

@LinuxKernel1
Copy link
Author

LinuxKernel1 commented Sep 12, 2019

I thought i have done something wrong as my usb always turn to gpt after burning.

Usually depends on a few things, but in case of opnsense it's normal (predefined by the image).

One last thing after burning the img I can't open the usb from windows or display the files it contains is that normal?

As far as I can remember I think it's normal.

@fawzy46
Copy link

fawzy46 commented Sep 12, 2019

Unfortunately I did what you said exactly but no success. There is no EFIsys partition on my usb drive

@LinuxKernel1
Copy link
Author

Unfortunately I did what you said exactly but no success. There is no EFIsys partition on my usb drive

Just downloaded OPNsense-19.7-OpenSSL-vga-amd64.img and wrote it to a USB device with rufus.
Then used a tool called Active Partition Manager (freeware) to convert the disk to MBR and set the EFISYS partition to active. Also tested it on one of my PC's.

I am wondering why your result is different...

@fawzy46
Copy link

fawzy46 commented Sep 12, 2019

I downloaded the serial img and apparently it booted fine do i need to do any extra steps for serial installation?

@fawzy46
Copy link

fawzy46 commented Sep 12, 2019

Unfortunately I did what you said exactly but no success. There is no EFIsys partition on my usb drive

Just downloaded OPNsense-19.7-OpenSSL-vga-amd64.img and wrote it to a USB device with rufus.
Then used a tool called Active Partition Manager (freeware) to convert the disk to MBR and set the EFISYS partition to active. Also tested it on one of my PC's.

I am wondering why your result is different...

Man thanks alot i tried active partition manager and it workes great thanks mate

@netrixtardis
Copy link

I believe Rufus is the issue when it comes to Legacy BIOS boot. I have been using Win32DiskImager to write the *.img files to USB drives for years and have never encountered any issues. Also to note, I have no UEFI equipment, as such I cannot validate those issues.

@fawzy46
Copy link

fawzy46 commented Sep 13, 2019

I believe Rufus is the issue when it comes to Legacy BIOS boot

I don't think so, i used win32diskimager and lt caused the same problem so i think it is pre defined in the vga img it self to convert the drive to gpt when using the serial img the drive remains mbr no mater what program you use to create the bootable drive

@AdSchellevis
Copy link
Member

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository,
please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.

@AdSchellevis AdSchellevis added the help wanted Contributor missing / timeout label Jan 5, 2020
@erdincay
Copy link

erdincay commented Nov 20, 2020

I have the same issue. The problem is with the IMG. I have used DD and Popsicle. I am pretty sure that DD has no issues, and Popsicle hasn't yet let me down, writing an simple image. The ISO file (for DVD/CD etc.) is written perfectly, but it is not bootable with USB media.

@alexis-via
Copy link

Having the same pb: image with OPNsense-22.7-OpenSSL-vga-amd64.img doesn't work on a BIOS PC. OPNsense Nano image and pfsense 2.6 image boot fine.
I copied OPNsense-22.7-OpenSSL-vga-amd64.img to my USB key using dd. Then I used gdisk to convert GPT to MBR. Then I used fdisk to add the boot flag to the EFI partition (the first partition). After that, when I try to boot the USB key, BIOS shows a message "Invalid partition table".

@fichtner
Copy link
Member

Then I used gdisk to convert GPT to MBR

But why. Use Nano, don't break partition table?

@alexis-via
Copy link

Yes, I ended up using the nano image. I copied the nano image via dd directly to the SSD of my OPNsense firewall. It's the only solution I found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributor missing / timeout support Community support
Development

No branches or pull requests

7 participants