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

Can't boot after new installation #102

Open pauloney opened 6 years ago

pauloney commented 6 years ago

I am trying to install Wubi on an Dell XPS13 and have followed all the guides. First turned off secure boot, downloaded 1804r331, and then proceed with the install, where everything happens normally. Then on first reboot (by Wubi) I get:

                                GNU GRUB Ver, 2.02

Minimal BASH-like line editing. For the first word ...
grub>

and the is nothing I can do that will get it further along.

Subsequent reboots go right into Windows without any problems, but no choices to boot into Linux.

hakuna-m commented 6 years ago

Subsequent reboots go right into Windows without any problems

It is intended that Windows is still the default boot option. If there are issues it should be possible to easily boot into Windows.

but no choices to boot into Linux.

For an XPS13, pressing F12 immediately after reboot should run the UEFI boot menu.

But if you select Ubuntu within UEFI boot menu, probably you get the same GRUB issue. The GRUB issue means that GRUB does not detect your Windows target drive for installation.

You can list all detected partitions/drives by typing lson GRUB command prompt.

Possible solutions for your issue are....

But first of all, is the installation drive an external or internal drive? Did you also try to install Ubuntu without Wubi(uefi) ? Were there similar issues ?

pauloney commented 6 years ago

Thanks Hakuna, here are my answers:

Indeed I tried the F12, and choose Ubuntu and ended up in the same Grub prompt.

I did run ls at the Grub prompt and I get: (memdisk) (hd0) (hd0,gpt6) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt62) (hd0,gpt1)

but have no idea how to proceed. I tried reading about it, but were not able to find much.

I have to have 18.04 on this machine (because of some other issues), is going for the full Ubuntu my only choice?

hakuna-m commented 6 years ago

I did run ls at the Grub prompt and I get: (memdisk) (hd0) (hd0,gpt6) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt62) (hd0,gpt1)

GRUB detects one device with 6 partitions. You can also list the content of the partitions with:

ls (hd0,1)/
ls (hd0,2)/
ls (hd0,3)/
ls (hd0,4)/
ls (hd0,5)/
ls (hd0,6)/

The partition with Ubuntu should contain a folder ubuntu.

hd0 looks like an internal disk. If you try to install on an external device, it is not detected. In that case maybe you can use a Windows drive on internal disk.

Which Windows drive did you select for installation? On which device is your installation drive ?

pauloney commented 6 years ago

GRUB detects one device with 6 partitions. You can also list the content of the partitions with:

ls (hd0,1)/ ls (hd0,2)/ ls (hd0,3)/ ls (hd0,4)/ ls (hd0,5)/ ls (hd0,6)/

ls (hd0,1)/

gives me:

ef1/

all others say

error: unknown filesystem.

The partition with Ubuntu should contain a folder ubuntu.

hd0 looks like an internal disk. If you try to install on an external device, it is not detected. In that case maybe you can use a Windows drive on internal disk.

I am using the machine as it came from Dell, only one internal disk.

Which Windows drive did you select for installation? On which device is your installation drive ?

I have only one disk and only one drive C: -- the simplest of all possibilities.

Paulo Ney

hakuna-m commented 6 years ago

ls (hd0,1)/

gives me:

ef1/

i.e (hd0,1) is the EFI partition. In Windows it has no drive letter by default. So it is hidden. It is possible to unhide it but unfortunately, it is intented for UEFI boot loaders only. So probably, there is not enough space (less than 1GB) and it has a FAT32 file system which does not support a file size greater than 4GB. So it is not a good idea to install Ubuntu on EFI partition.

I have only one disk and only one drive C: -- the simplest of all possibilities.

It looks like the simplest of all possibilities on Windows. But if you open Windows Disk Management, you will see that there is more than one drive.

Additionally, there is a configuration which GRUB does not detect. All drives except EFI partittion are not readable for GRUB.

So you can try to install Ubuntu on an external USB drive or you can try if rEFInd detects your disk configuration.

For testing purpose, I will create a Wubiuefi version for 18.04 with rEFInd soon. There are known GRUB issues for some devices (#94 see #84).

pauloney commented 6 years ago

So, in summary my two options are:

How long will it take fro the rEFInd to show up?

Paulo Ney

On Thu, May 10, 2018 at 3:18 PM, hakuna matata notifications@github.com wrote:

ls (hd0,1)/

gives me:

ef1/

i.e (hd0,1) is the EFI partition. In Windows it has no drive letter by default. So it is hidden. It is possible to unhide it but unfortunately, it is intented for UEFI boot loaders only. So probably, there is not enough space (less than 1GB) and it has a FAT32 file system which does not support a file size greater than 4GB. So it is not a good idea to install Ubuntu on EFI partition.

I have only one disk and only one drive C: -- the simplest of all possibilities.

It looks like the simplest of all possibilities on Windows. But if you open Windows Disk Management https://www.lifewire.com/how-to-open-disk-management-2626080, you will see that there is more than one drive.

Additionally, there is a configuration which GRUB does not detect. All drives except EFI partittion are not readable for GRUB.

So you can try to install Ubuntu on an external USB drive or you can try if rEFInd detects your disk configuration.

For testing purpose, I will create a Wubiuefi version for 18.04 with rEFInd soon. There are i.e (hd0,1) is the EFI partition. In Windows it has no drive letter by default. So it is hidden. It is possible to unhide it but unfortunately, it is intented for UEFI boot loaders only. So probably, there is not enough space (less than 1GB) and it has a FAT32 file system which does not support a file size greater than 4GB. So it is not a good idea to install Ubuntu on EFI partition.

I have only one disk and only one drive C: -- the simplest of all possibilities.

It looks like the simplest of all possibilities on Windows. But if you open Windows Disk Management https://www.lifewire.com/how-to-open-disk-management-2626080, you will see that there is more than one drive.

Additionally, there is a configuration which GRUB does not detect. All drives except EFI partittion are not readable for GRUB.

So you can try to install Ubuntu on an external USB drive or you can try if rEFInd detects your disk configuration.

For testing purpose, I will create a Wubiuefi version for 18.04 with rEFInd soon. There are known GRUB issues for some devices (#94 https://github.com/hakuna-m/wubiuefi/issues/94).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hakuna-m/wubiuefi/issues/102#issuecomment-388202982, or mute the thread https://github.com/notifications/unsubscribe-auth/ACP7Yv23ineUG9ZWF14feQWFiNOt_sJRks5txLykgaJpZM4T6N9F .

hakuna-m commented 6 years ago
  • Install the full stuff ...

There is also the possibility to format an external USB drive with a Windows file system and use Wubiuefi. But of course, maybe it is a better option to install Ubuntu without Wubiuefi if you use an external drive.

How long will it take fro the rEFInd to show up?

Probably, tomorrow.

pauloney commented 6 years ago

I'll wait till tomorrow then .. I have been using your stuff for soo long I even forgot how to proceed with the normal installation ....

Paulo Ney

On Thu, May 10, 2018 at 3:42 PM, hakuna matata notifications@github.com wrote:

  • Install the full stuff ...

There is also the possibility to format an external USB drive with a Windows file system and use Wubiuefi. But of course, maybe it is a better option to install Ubuntu without Wubiuefi if you use an external drive.

How long will it take fro the rEFInd to show up?

Probably, tomorrow.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hakuna-m/wubiuefi/issues/102#issuecomment-388207792, or mute the thread https://github.com/notifications/unsubscribe-auth/ACP7Yh_2tTh0DB_M1GiKYwlgVg1N5Gzbks5txMJlgaJpZM4T6N9F .

hakuna-m commented 6 years ago

I added a Wubiuefi version for 18.04 with rEFInd: 1804r331-r

pauloney commented 6 years ago

I get a bit further along this time. Get a screen to choose where to boot into as you see in the picture below.

If I choose the first option I go into the second picture I show below, and hitting any key gets me back to the main menu.

If I choose the second options I go into BitLocker Recovery

If I choose the third one, I go into the same problem with Grub as before.

No matter what, when I reboot for the second time, it always goes into Windows directly.

Paulo Ney

On Fri, May 11, 2018, 2:37 AM hakuna matata notifications@github.com wrote:

I added a Wubiuefi version for 18.04 with rEFInd: 1804r331-r https://github.com/hakuna-m/wubiuefi/releases/tag/1804r331-r

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hakuna-m/wubiuefi/issues/102#issuecomment-388314376, or mute the thread https://github.com/notifications/unsubscribe-auth/ACP7Ypneengg9Oh7TvQnsPb_n0-s1_Gzks5txVvmgaJpZM4T6N9F .,

hakuna-m commented 6 years ago

as you see in the picture below.

the second picture I show below

There went something wrong with the attached pictures. Currently, I see no pictures.

Probably, the pictures are helpful. They will answer some questions:

Maybe, rEFInd also does not detect your Windows drive.

minchaowu commented 6 years ago

@hakuna-m Hi, This is my first time using wubi to install Linux (on a low-end dell machine), and I got exactly the same issue.

With 1804r331-r I can see the following:

img_20180515_232726

Choosing the first option gives me:

sp180515_234226

Choosing the second and the third options results in what's described by @pauloney

I hope these are helpful for identifying the problems.

hakuna-m commented 6 years ago

The first entry should use an icon on installation drive (e.g. C:\ubuntu\Ubuntu.png). But in your case the first icon is the icon for "file not found".

i.e. The installation drive is not found.

A known reason is that the installation drive has no volume label. Currently, it is an issue because the configuration file for the first entry uses the volume label.

So the first thing which you can do is to check if the installation drive has a volume label. If there is no volume label, you can also add one. For further information see e.g. https://www.lifewire.com/volume-label-2626045

If there is a volume label you can check and add it to the configuration file for the first entry:

hakuna-m commented 6 years ago

General note: Some disk configurations are not supported. The second part of installation (after first reboot) always needs working Linux drivers, the Windows drivers of the first part are not available.

minchaowu commented 6 years ago

Thanks for the explanation. I just checked the installation drive and found that it had a volume label OS.

Also, in the second line of the configuration file s:\EFI\ubuntu\wubildr\refind-wubi.conf , the volume label is recognized correctly (i.e., it shows volume "os").

After checking all that I restarted my machine, but the ubuntu icon still didn't appear.

hakuna-m commented 6 years ago

the volume label is recognized correctly (i.e., it shows volume "os").

Thanks for your answer. i.e. a missing volume label is not the reason for your issue.

Probably, there is a general Linux reason. e.g. Win10 on Dell XPS13 is installed in an unsupported RAID mode for Linux. see https://www.dell.com/community/Linux-General/XPS13-Win10-dual-boot-quot-raid-quot-issue-solved/td-p/5183840