hakuna-m / wubiuefi

fork of Wubi (https://launchpad.net/wubi) for UEFI support and for support of recent Ubuntu releases
GNU General Public License v2.0
1.07k stars 152 forks source link

Always stuck at asus logo #325

Closed RichardLuo0 closed 1 year ago

RichardLuo0 commented 1 year ago

After pressing the power button, the computer always stops at ASUS logo. The only way is to press ESC and manually choose Ubuntu or Windows. Is it supposed to be like this? How to boot windows by default? I remember when I installed ubuntu in a separate drive, I can change the bios settings to boot ubuntu or windows by default. Can I restore the behaviour with wubiuefi?

hakuna-m commented 1 year ago

Is it supposed to be like this?

It is not supposed but it depends on UEFI BIOS settings.

Wubiuefi tries to set UEFI menu with Windows program bcdedit (needs admin privileges).

Check your UEFI menu entries with bcdedit /enum firmware

e.g. https://github.com/hakuna-m/wubiuefi/issues/15#issuecomment-236347022

identifier {fwbootmgr} contains the order of your UEFI menu boot entries (displayorder).

If you want to boot Windows by default, {bootmgr} should be the first entry. If you want to boot Wubiuefi by default, identifier which contains path \EFI\ubuntu\wubildr\shimx64.efi should be the first entry.

You can change it by using: bcdedit /set {fwbootmgr} displayorder {guid} /addfirst

Replace {guid} with the identifier which should be booted by default. e.g. {bootmgr} or identifiers like {cbfe2a65-d996-11e5-8118-8b921f5b8924}

Another possibility is to use Windows programs like EasyUEFI to change bootorder or sometimes UEFI BIOS also provides tools to change default boot order. How can I change UEFI firmware settings from Windows ?

RichardLuo0 commented 1 year ago

Thank you. I simply set all timeouts to 0 with bcdedit /set "{fwbootmgr}" timeout 0 and the problem was solved