Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

  1. #1
    Join Date
    May 2020
    Beans
    7

    Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    I upgraded Ubuntu to 20.04 LTS on a machine with dual boot (Windows 10 & Ubuntu).
    OS upgrade was at the last stage showing a message related to boot security with some text.

    At that point I couldn't progress further.

    After rebooting the machine I couldn't boot to Ubuntu (windows 10 boot is OK)

    I changed my EFI setting to disable boot security but still couldn't boot from the Grub menu and recover also failed.

    I started Ubuntu from USB and attempted re-installation which found a missing boot partition.

    I ran the boot-repair tool from Ubuntu loaded from a USB with the tool's report at https://paste.ubuntu.com/p/w29vy4kdYy/

    My question is based on the report from the boot-repair tool should I go ahead with the tool recommendation or do something else to repair and enable booting to Ubuntu?

    Note that my Windows 10 boot works OK from Grub and it looks like my upgraded Ubuntu partition is OK

    Any help would be greatly appreciated,
    Regards!

  2. #2
    Join Date
    Jun 2014
    Beans
    5,887

    Re: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    OS upgrade was at the last stage showing a message related to boot security with some text
    You should post that message here as there is no other way for members here to know what it is?

    My question is based on the report from the boot-repair tool should I go ahead with the tool recommendation or do something else to repair and enable booting to Ubuntu?
    No, don't do that. First, in boot repair from lines 8-20 you see information and files in the EFI partition for both windows and ubuntu. That's all good. Lines 52-58 show your Ubuntu is installed on partition 6 of the drive. Beginning on line 88 of boot repair, you show information for efibootmgr. You show Linpus Lite as first in boot order as well as current boot. Do you still actually have Linpus Lite installed? Beginning at line 202, you see the content of the grub.cfg file on the EFI partition which is pointing to the grub.cfg file on the system partition (partiiton 6). The grub.cfg file on the Ubuntu system partition is the file which has the actual Grub menu you see on screen. Boot repair generally includes the contents of this file in its output but it is not present in yours. Not sure if the installation of Grub failed or it is some other problem. Posting the error you mentioned above would be helpful. Another thing you can do is boot the Ubuntu on the usb and mount the Ubuntu partition: /dev/nvme0n1p6 and check to see if the necessary Grub file (including grub.cfg) are there.

    Before doing that, take a look at line 93 of boot repair. This shows the option to boot Ubuntu and you should access your BIOS firmware and change the boot option there to set Ubuntu (Boot0001*) to first boot priority there and see if that helps.

  3. #3
    Join Date
    May 2020
    Beans
    7

    Re: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    The Ubuntu upgrade did not end with an error, it simply paused on the message regarding the need to provide security boot password with the [OK] at the end.
    At that point pressing [Enter] did not continue the process.
    In hindsight may be [tab] would help but I pressed [ctl-c] which most likely ended the process prematurely.

    The Linpus Lite is first in boot because I changed the boot order to boot from the USB so I can load Ubuntu from the USB.

    Once Ubuntu loaded from the USB I can see the Grub files on the Ubuntu partition (see attached ) and the date is from yesterday the day I performed the upgrade.

    Thanks
    Attached Images Attached Images

  4. #4
    Join Date
    Jun 2014
    Beans
    5,887

    Re: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    Did you go into the BIOS and change the boot option to Ubuntu Boot0001*?
    Post the contents of the grub.cfg file you are showing in your post above?

  5. #5
    Join Date
    May 2020
    Beans
    7

    Re: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    The BIOS entries are pointing to the same destination ( I attached a photo ).
    Is that might be another unrelated issue if I want to change the order and go directly to Windows or Ubuntu?

    I also attached the grub.cfg as a zip file

    Thanks
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by avi-aus; 6 Days Ago at 03:23 AM.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    Code:
    BootOrder: 0003,0001,0002,0000,2001,2002,2003
    Boot0000* Windows Boot Manager	HD(1,GPT,896c368c-516a-495c-b50c-55fc8026b930,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
    Boot0001* ubuntu	HD(1,GPT,896c368c-516a-495c-b50c-55fc8026b930,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
    Boot0002* Windows Boot Manager	HD(1,GPT,896c368c-516a-495c-b50c-55fc8026b930,0x800,0x82000)/File(\EFI\ubuntu\grubx64.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...m................
    Boot0003* Linpus lite	HD(1,MBR,0xc522c,0x800,0x777000)/File(\EFI\Boot\grubx64.efi)RC
    Your second Windows entry 0002 has the boot of grub. With early UEFI that was a work around for Windows that would not boot Ubuntu. But it does not really work with Windows 10. Updates overwrite it. Grub only boots working Windows and a Windows update also turns on fast start up which then prevents grub from booting Windows.

    Use efibootmgr to see entries (should be same as above from Boot-Repair and then use efibootmgr to remove entry.
    You probably should also remove 0003 also.

    # from liveDVD or flash booted in UEFI mode and use efibootmgr
    sudo efibootmgr -v
    The "-v" option displays all the entries so you can confirm you're deleting the right one, and then you use the combination of "-b ####" (to specify the entry) and "-B" (to delete it). Examples #5 is delete:, with Ubuntu you need sudo, others must be at root. some need all 4 hex chars, others only need significant digits
    sudo efibootmgr -b XXXX -B
    man efibootmgr

    If you have UEFI Secure Boot on and installer wants to install a proprietary driver for video or WiFi then you have to provide security key as Ubuntu cannot verify proprietary drivers are safe, but a user can a key. Best to just have UEFI secure boot off.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    May 2020
    Beans
    7

    Re: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    As suggested by @oldfred I disabled the Windows fast start up and also removed Boot002 ( the old Windows entry).

    I still can't start Ubuntu from the Grab menu which I think is related to the fact that the Ubuntu upgrade didn't fully ended properly
    As I mentioned in my previous post

    Note that my 'Lenovo Setup Utility' still shows the same EFI entries as shown in my previous attached photo (and all items have the same 'SAMSUNG MZVLB5...' destinations)

    The Ubuntu upgrade did not end with an error, it simply paused on the message regarding the need to provide security boot password with the [OK] at the end.
    At that point pressing [Enter] did not continue the process.
    In hindsight may be [tab] would help but I pressed [ctl-c] which most likely ended the process prematurely.

    Note also that if I attempt to repair the installation by booting Ubuntu from the USB and starting re-installation I get a popup window with a message 'No EFI System Partition was found...' (see attached photo )

    Is there a way to 'repair' the current upgraded Ubuntu or worst case what do I need to do to install anew Ubuntu on the same partition of the current inaccessible Ubuntu.
    Thanks
    Attached Images Attached Images
    Last edited by avi-aus; 6 Days Ago at 09:51 AM.

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    Try Boot-Repair's advanced mode.
    Choose install & drive & also install latest kernel.
    That may or may not be enough of an update to boot. You may then still need some cleanup/repairs.

    I wonder if some new issue. Ubiquity used to only install to first drive, usually sda, or first NVMe drive.
    I installed NVMe drive and install of 20.04 worked and booted from NVMe drive's ESP. I also have an ESP on sda drive.
    But just tried to do a simple install-grub without specifying ESP/UEFI and it said it could not find the efi partition.

    This did not work.
    sudo grub-install
    But this did? Maybe because this reads mount of esp in NVMe drive in fstab?
    fred@Z170N-focal:~$ sudo grub-install --efi-directory=/boot/efi
    [sudo] password for fred:
    Installing for x86_64-efi platform.
    Installation finished. No error reported.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    May 2020
    Beans
    7

    Re: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    Just to make sure that I select the preferred options suggested, I attached the various options shown on the boot-repair GUI (jpg for each tab)

    Any advice on which one to select will be much appreciated.

    I am also cautious about the option 'separate/boot/efi partition' in the grub-location tab, should I deselect it? I don't want to impact the windows boot.

    Thanks
    Attached Images Attached Images
    Last edited by avi-aus; 5 Days Ago at 11:26 AM.

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Unable to boot to Ubuntu after upgrade to Ubuntu 20.04 LTS

    Ubuntu & Windows normally share one ESP - efi system partition. They have different folders.
    I would check to uninstall & reinstall grub options and newest kernel.
    Only if you manually edited grub settings, may you want to back those up or remember those. But reinstall will reset everything to defaults.

    Install of grub will make "ubuntu" entry default boot entry. But with UEFI you can always go into UEFI boot menu and select the Windows entry.
    Grub will only boot working Windows, so when Windows turns fast start up back on or needs chkdsk, you have to directly boot Windows. Still best to have Windows repair disk in case major repairs needed.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •