I am trying to install Ubuntu 20.04 as a dual boot onto a Toshiba dynabook Satellite Pro L50-G-182 which has Windows 10 preinstalled. I used an Ubuntu live USB stick to install Ubuntu onto the last part of the SSD. The picture shows the disk layout (screenshot taken while booting from USB live stick):
When I restarted after the installation of Ubuntu then Windows started automatically without grub/Ubuntu showing up. I failed to fix this.
Solution attempts
There is a bunch of post here and articles with regards to this topic. However, none helped. Here is the short version of what I tried to fix this:
I checked the UEFI/BIOS. There is nothing about grub nor Ubuntu.
I tried to fix the dual boot from Windows via BCDEdit:
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
I tried Boot-Repair to fix the boot order.
I tried to change the boot order. Therefore, I booted from the Ubuntu live USB stick. Here is the output of
efibootmgr
:BootCurrent: 0005 Timeout: 5 seconds BootOrder: 2004,0005,2005,2001,2003 Boot0000* Linpus lite Boot0001* ubuntu Boot0002* EFI PXE 0 for IPv4 (7C-D3-0A-90-C7-AB) Boot0003* EFI PXE 0 for IPv6 (7C-D3-0A-90-C7-AB) Boot0004* Windows Boot Manager Boot0005* Linpus lite Boot2001* EFI USB Device Boot2004* EFI Network Boot2004* HDD1/SSD1 Boot2005* HDD2/SSD2
The
ubuntu
entry is probably the USB stick? It looks like my Ubuntu partition is not visible. Here is a picture of the Terminal, also with verbose output:I copied the UEFI entry of "Windows Boot Manager" to create a new entry for Ubuntu.
Here is how the BIOS, Boot tab (pressing F2) looks like:
Here is how the Security tab looks like:
Here is how Security tab > Samsung .. looks like:
Here is how the Advanced tab looks like:
Here is how Advanced tab > System Configuration looks like:
Here is how the Boot Manager (pressing F12) looks like:
EFI System partition (ESP)
Here is how the folder structure looks currently (13.01.2021), screenshot taken from Boot Repair USB live stick being loaded:
Related
Final result
- First of all, thank you to everyone here for taking your time and sharing ideas and experience how to solve the issue.
- I have to tell it all went different. I was about to restore the first full disk backup of the machine. By accident, I selected a backup of a another machine running Ubuntu. To my very big surprise - when I rebooted the machine after the clone process finished - Grub showed up and Ubuntu booted without any issue.
- After that I updated the older Ubuntu installation to the current version and that's what I am running right now. Yes, I lost the Windows installation - but I still have the original backup - just in case.
As result of personal experience, some systems have buggy firmware when talking about boot stuff (many people complain about missing boot entries for example...)
The only thing I would do is to start from a completely empty disk; in this way we can exclude any Windows interference:
I would suggest to format the whole disk, go into the bios and disable "secure boot" or something among those lines, That prevents any OS that is not on NTFS (windows file system) from being Installed and/or booted. By disabling that option you are allowing the installation of GRUB which is the boot manager for Linux. Then, after you have disabled "secure boot" you can go-ahead and partition the disk in two partitions, one for Linux and another one for Windows, then install windows, be beware that windows will try to use the whole disk, so you need to select "custom Installation" when asked and tell it to use one of the partitions, install windows normally. Then, boot from the USB stick with Linux on it, if it detects that you have windows 10 installed, it will automatically select the Free partition as the install partition and save you work (That's why you install Windows first) If, however, it does not detect and installation of windows 10, select "manual partitioning" and select the free partition that you made, Use the automatic partitioner and Proceed to install Linux, but be careful to not select any windows partitions or you will duck up your windows install. Linux will install normally and then ask you if you would like to install Grub on the main boot sector, say yes and let it do it's thing. Then remove the installation USB and reboot the PC. It will show you a boot options list, select what you want to boot and voila, you have Win10 and Linux on dual boot. If you want to change the default boot option read this
I did this quite a lot, and I suggest doing it in the other direction. Windows boot loader does not enjoy for you to load it with another OS at all. you can make it work, but using GRUB to windows is much much easier. You're spending so much time for nothing.
So you should go clean Ubuntu install>directly on the main drive (thus wiping windows)
Just follow these steps:
Backup important files from windows or make a full system image backup.
prepare a windows installer image of your same exact windows version (the license will auto-detect through MOBO)
prepare the Ubuntu USB installer (again)
Turn off secure boot (there is nothing called GRUB in the BIOS, this is only a UNIX term, don't try to look for this.) Then turn off safe boot. Temporarily also disable the TPM (trusted platform module). if these settings are really all not there, it can still work normally.
the issue is not that the OS cannot boot, the issue is only that windows is refusing to detect it.
6.Complete the install, remove Ubuntu USB, and do a quick apt-get update and upgrade to get the most basic stuff in order. Reboot again.
8 Put in the windows USB now, your Linux wont recognize it and that's fine.
9.Reboot. Select to boot from the windows USB or change the order again.
Start the windows installation and then select the partition.
Finish up the install and let it make your localuserprofile etc.
reboot PC, if you kept the order same, change to Ubuntu now if on different drives. otherwise most likely it will just boot into ubuntu now since thats the drive you can choose.
Change the GRUB entry as such
Look at the UUID of your Windows 10 partition, for example:
Then edit
/etc/grub.d/40_custom
, and at the end of the file add:Don't forget to change the UUID.
And finally update your grub config file:
Referenced by this KBA: Add Windows 10 to GRUB OS list
Instant Ubuntu, instant windows, or delayed boot into either, or a pause on the grub menu prompting you for a choice. This is done by manually editing the grub file or using the grub editor application in Ubuntu.
Hope this works out for you. It's a bit more tricky (and scary) with partitions, but not impossible. Still..maybe you could buy a large USB stick :P.
@JJD - I've been thru this several times... here is what worked best for me under the assumption, U R trying to move away from Windows for daily use.
Here is what I did:
Hope this helps -mgw
List the contents of /boot/efi. If you don't find it, you installed Ubuntu into Legacy, and then turned it off. You may need to reinstall it again.
From my understanding, if you plan to use bootmgr(legacy mode) you will need to change uefi to legacy mode thru settings. Once this is complete you can do as you wish. you can run ubuntu 20.04 as a VM using the built in wsl but you will need to update to wsl2, install x410Here is a link to get you started x410 has been the only way so far I've found to get it up and running(this is a paid app).
ATTEMPT AT YOUR OWN RISK OF LOCKING YOURSELF OUT OF WINDOWS:
-Go into Security within your BIOS program
-Clear Secure Boot Keys
-Disable Secure Boot
[This has worked for me in the past for a similar issue]
However, it appears that someone with the same issue has found an answer, here:
Issue installing LTS-20.04 onto HP Spectre x360 computer (dual booting with windows). Upon booting, grub does not appear