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.06k stars 151 forks source link

Not Showing Ubuntu After Reboot #317

Open RainzDev opened 2 years ago

RainzDev commented 2 years ago

I successfully installed Ubuntu using Wubi, but doesn't redirect to Ubuntu or shows Ubuntu in the bootloader after reboot. I'm using UEFI.

RainzDev commented 2 years ago

this is the log wubi-22.04-rev345.log

RainzDev commented 2 years ago

Update: It does show on the boot management, but goes back to windows after selecting on ubuntu

hakuna-m commented 2 years ago

09-27 22:40 DEBUG WindowsBackend: drive=Drive(S: hd 54507.609375 mb free ntfs)

09-27 22:42 DEBUG WinuiInstallationPage: target_drive=S:

Is the selected drive S: a removable drive ?

RainzDev commented 2 years ago

09-27 22:40 DEBUG WindowsBackend: drive=Drive(S: hd 54507.609375 mb free ntfs)

09-27 22:42 DEBUG WinuiInstallationPage: target_drive=S:

Is the selected drive S: a removable drive ?

Correct.

hakuna-m commented 2 years ago

Maybe, sometimes a removable drive does also work.

But it is often an issue that Wubiuefi always installs the boot loader on the hidden EFI boot partition that Windows uses. The EFI boot partition with Windows Boot Manger for UEFI is the right place for installations on internal disks but booting from internal disk with switching to an external removable storage is not or badly supported.

A possible solution is to create an EFI partition on removable storage device and to boot directly from that device. But as Wubiuefi configuration for Ubuntu does not create EFI or other partitions, Wubiuefi configuration does not support that.

If you want that configuration, try to install a standard installation of Ubuntu with creating partitions: https://ubuntu.com/tutorials/install-ubuntu-desktop#1-overview

If you want Wubiuefi configuration, you can try another drive.

RainzDev commented 2 years ago

What do you mean by another drive? Like a different partition type?

hakuna-m commented 2 years ago

e.g. drive C:

09-27 23:12 DEBUG  WindowsBackend: system_drive=Drive(F: hd 14044.609375 mb free ntfs)
09-27 23:12 DEBUG  WindowsBackend: drive=Drive(C: hd 34306.3476562 mb free ntfs)
09-27 23:12 DEBUG  WindowsBackend: drive=Drive(D: cd 0.0 mb free )
09-27 23:12 DEBUG  WindowsBackend: drive=Drive(F: hd 14044.609375 mb free ntfs)
09-27 23:12 DEBUG  WindowsBackend: drive=Drive(G: hd 60.7607421875 mb free fat32)
09-27 23:12 DEBUG  WindowsBackend: drive=Drive(S: hd 50853.3125 mb free ntfs)

But it depends where drive C: is located.

If you open Windows Disk Management, you see the all disks and the containing partitions (hidden partitions and visible Windows drives like C:, D; and so on)

If drive C: is on disk with the EFI partition which Windows uses, it should be easier.

see for help: https://learn.microsoft.com/en-us/windows-server/storage/disk-management/overview-of-disk-management

RainzDev commented 2 years ago

It should also work if I create a partition with EFI for S:, right

hakuna-m commented 2 years ago

right

For Wubiuefi the answer is "no", because Wubiuefi configuration does not use additional EFI partitions.

For an installation of Ubuntu without Wubiuefi, it is a possible option.