Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

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

  1. #11
    Join Date
    May 2020
    Beans
    7

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

    I tried to grub-install with a few variations but it failed to execute.

    I followed these steps

    Code:
    sudo fdisk -l
    
    Disk /dev/nvme0n1: 476.96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SAMSUNG MZVLB512HAJQ-000L2              
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 71CC76EF-8E07-4372-8A8F-2F9CB8013ED6
    
    Device             Start        End   Sectors   Size Type
    /dev/nvme0n1p1      2048     534527    532480   260M EFI System
    /dev/nvme0n1p2    534528     567295     32768    16M Microsoft reserved
    /dev/nvme0n1p3    567296  476532735 475965440   227G Microsoft basic data
    /dev/nvme0n1p4 945737728  998166527  52428800    25G Microsoft basic data
    /dev/nvme0n1p5 998166528 1000214527   2048000  1000M Windows recovery environment
    /dev/nvme0n1p6 476532736  945737727 469204992 223.8G Linux filesystem
    
    Partition table entries are not in disk order.
    
    
    ubuntu@ubuntu:~$ sudo blkid
    /dev/nvme0n1p1: LABEL="SYSTEM_DRV" UUID="A20B-FE9F" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="896c368c-516a-495c-b50c-55fc8026b930"
    /dev/nvme0n1p3: LABEL="Windows" UUID="3E120CCA120C88DB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e0d798b0-def1-4614-9c66-5acfd7b4c440"
    /dev/nvme0n1p4: LABEL="LENOVO" UUID="D4B43793B43776D8" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="0e3d7dcd-7594-4c5a-9bc9-f01ffc96eddc"
    /dev/nvme0n1p5: LABEL="WINRE_DRV" UUID="46CA0E87CA0E7409" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="c89e22fc-8129-420b-8b59-66a55f03e871"
    /dev/nvme0n1p6: UUID="40b8ea6a-5078-4bb3-97c1-945dd585cc3f" TYPE="ext4" PARTUUID="4e8ff545-e9e7-4ba0-b3ee-498996cbab33"
    /dev/sda1: LABEL="UBUNTU 20_0" UUID="2438-1546" TYPE="vfat" PARTUUID="000c522c-01"
    /dev/loop0: TYPE="squashfs"
    /dev/loop1: TYPE="squashfs"
    /dev/loop2: TYPE="squashfs"
    /dev/loop3: TYPE="squashfs"
    /dev/loop4: TYPE="squashfs"
    /dev/loop5: TYPE="squashfs"
    /dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="2b4cfee5-fef0-4566-b341-e7df6e208d03"
    
    sudo mkdir /mnt/ubuntu
    
    sudo mount /dev/nvme0n1p6 /mnt/ubuntu
    
    sudo grub-install --boot-directory=/mnt/ubuntu/boot /dev/nvme0n1
    
    Installing for i386-pc platform.
    grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
    grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
    grub-install: error: will not proceed with blocklists.
    
    
    buntu@ubuntu:~$ sudo grub-install --efi-directory=/mnt/ubuntu/boot/efi
    Installing for i386-pc platform.
    grub-install: error: install device isn't specified.
    
    
    buntu@ubuntu:~$ sudo grub-install --efi-directory=/mnt/ubuntu/boot/efi nvme0n1p6
    Installing for i386-pc platform.
    grub-install: error: failed to get canonical path of `/cow'.

    Note that /mnt/ubuntu/boot/efi folder is empty

    My questions are:
    Which device or disk I need to provide to the grub-install command? Is it the Linux partition /dev/nvme0n1p6 , the EFI partition /dev/nvme0n1p1 or the disk nvme0n1 ?
    What is the full grub-install command that you think I can run?
    Last edited by avi-aus; 2 Weeks Ago at 07:42 AM. Reason: Added code tags

  2. #12
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    28,550
    Distro
    Ubuntu 18.04 Bionic Beaver

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

    Please use code tags - if you are using New Reply button - highlight text and use the # button in the text box header.

    If using Quick Reply then [code] at the beginning and [/code] at the end.

  3. #13
    Join Date
    Jun 2014
    Beans
    5,901

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

    I tried to grub-install with a few variations but it failed to execute.
    You haven't posted the commands you did try so it is not possible to point out any errors. Did you use the commands suggested by oldfred in post 8, the ones he said worked? Installing to the device rather than the partition would be the correct method and should put Grub files on both the EFI and system partition.

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

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

    You have an UEFI system with UEFI install of Windows.
    But are trying to install the BIOS boot version of grub.
    For BIOS on gpt you need the bios_grub partition. But you do not want the BIOS boot anyway.

    How you boot install media, UEFI or BIOS, is then how it installs. You always want to boot in UEFI mode.
    You should have two options in UEFI boot menu to boot flash drive. One "UEFI:flash" and other "flash" where flash will be name or label of flash drive. Some have totally different sub-menus, with all UEFI entries in one & all BIOS/Legacy/CSM in the other.

    For both BIOS & UEFI you always specify the drive to install into, not a partition. With UEFI it knows & finds the ESP - efi system partition to actually place the boot files.
    With BIOS part of grub is in MBR, part is in sectors after MBR, and part is in / (root).

    See also link in my signature.
    Shows installer with screen shots. Both BIOS purple accessibility screen & UEFI black grub menu screen
    https://help.ubuntu.com/community/UEFI
    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.

  5. #15
    Join Date
    May 2020
    Beans
    7

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

    It looks like I was missing the mount of EFI partition.

    I followed the steps in https://linuxsuperuser.com/reinstall...loader-ubuntu/ and managed to complete the grub update successfully.

    After that I got the following error "Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"

    To fix the above I booted from liveUSB mounted the partitions as for above
    and ran following:
    root@ubuntu:/# update-initramfs -u -k 5.4.0-29-generic

    The above based on https://askubuntu.com/questions/4193...known-block0-0

    I can now boot Ubuntu with no issues.
    Thanks all for the replies
    Last edited by avi-aus; 1 Week Ago at 01:28 PM.

Page 2 of 2 FirstFirst 12

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
  •