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

Thread: upgrade failed, grub confused, working my way back

  1. #11
    aeronutt is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Feb 2009
    Location
    Central MD
    Beans
    864

    Re: upgrade failed, grub confused, working my way back

    Ok, so I decided to try a few things to see if my fears were warranted.
    Let's ignore KDE on P9, I've given up on that.

    1) Run update-grub from KDE p10. YES, all is ok.
    2) Run boot-repair from KDE p10. NO. It runs, but ends with a warning "can't add current OS", then when I reboot, it goes to BIOS no matter what.
    3) Install Ubuntu 24.04. YES, and all OS's work as expected (except KDE p9).
    4) Run boot-repair from Ubuntu 24.04. NO. Same problem as with KDE p10. Ends with the notice below, and reboot goes to BIOS no matter what.

    Here's what boot-repair showed after running it in Ubuntu 24.04 (and forcing BIOS only boots)
    https://drive.google.com/file/d/1bPX...iggTjZAKxHqHG4

    So, maybe the problem is boot-repair.

    I will say, I still don't understand the nvme0n vs nvme1n thing. During one boot, grub showed the OS's selections all on nvme0n, then when I actually selected one and booted, fdisk showed the OS disk as /dev/nvme1n .

  2. #12
    aeronutt is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Feb 2009
    Location
    Central MD
    Beans
    864

    Re: upgrade failed, grub confused, working my way back

    Follow up, I have read from several sources that yes, disk lables assigned at boot are random (even if nothing else changes). I guess I'd never noticed it before, but also knew when I'm writing scripts to not use those labels. lol.

    So I think we're down to a boot-repair bug. And it all started because ubuntu upgrade screwed my system.

  3. #13
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: upgrade failed, grub confused, working my way back

    Back when only booting with HDDs we would sometimes see drive order change. Part of reason UUIDs became way to mount partitions. BIOS would order drives in order they came up and HDDs did not always come up at same speed.
    Have not seen that with SSD, nor NVMe drives. But not a lot of systems with multiple NVMe drives.

    What brand/model system? Is UEFI firmware & NVMe firmware the most current version?
    sudo dmidecode -s bios-version
    udisksctl status
    or install nvme-cli:
    sudo nvme list

    What is the partition mybootfiles? You are not sharing boot files from multiple installs are you?
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #14
    aeronutt is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Feb 2009
    Location
    Central MD
    Beans
    864

    Re: upgrade failed, grub confused, working my way back

    Quote Originally Posted by oldfred View Post
    Back when only booting with HDDs we would sometimes see drive order change. Part of reason UUIDs became way to mount partitions. BIOS would order drives in order they came up and HDDs did not always come up at same speed.
    Have not seen that with SSD, nor NVMe drives. But not a lot of systems with multiple NVMe drives.

    What brand/model system? Is UEFI firmware & NVMe firmware the most current version?
    sudo dmidecode -s bios-version
    udisksctl status
    or install nvme-cli:
    sudo nvme list

    What is the partition mybootfiles? You are not sharing boot files from multiple installs are you?
    "Have not seen that with SSD, nor NVMe drives."
    The /dev/nvme naming switch happens often and as far as I can tell, randomly.

    "What brand/model system? Is UEFI firmware & NVMe firmware the most current version?"
    Dell XPS 15 9530, everything's up to date according to lvfs.

    "sudo dmidecode -s bios-version"
    Code:
    1.12.0
    "udisksctl status"
    Code:
    MODEL                     REVISION  SERIAL               DEVICE
    --------------------------------------------------------------------------
    Samsung SSD 970 EVO Plus 1TB 2B2QEXM7  S59ANM0RA15223N      nvme0n1 
    PC801 NVMe SK hynix 512GB 51003141     SYC1N00711050161L nvme1n1
    "sudo nvme list"
    Code:
    Node                  SN                   Model                                    Namespace Usage                      Format           FW Rev  
    --------------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
    /dev/nvme0n1          S59ANM0RA15223N      Samsung SSD 970 EVO Plus 1TB             1         802.65  GB /   1.00  TB    512   B +  0 B   2B2QEXM7
    /dev/nvme1n1             SYC1N00711050161L PC801 NVMe SK hynix 512GB                1         512.11  GB / 512.11  GB    512   B +  0 B   51003141
    " What is the partition mybootfiles? You are not sharing boot files from multiple installs are you?"
    Correct, no boot files shared. It's a handful of scripts and icons I share at login (used in .profile or .bashrc).
    Basically, my laptop is setup like this:
    512GB NVM:
    - efi partition
    - Windows, and associated partitions.
    - 2 or 3 Linus OS's, always Ubuntu and another 1 or 2 to experiment with.
    1TB NVM:
    - various "data" directories I access only during or after a login. One of the partitions is encrypted.

  5. #15
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: upgrade failed, grub confused, working my way back

    You are showing the Locked NVRAM issue which I am not sure is a real issue or just a bug in modprobe, grub or Boot-Repair.
    But as fatal error seems to stop grub or Boot-Repair from finishing.
    Error seems to be where modprobe does not see efivars. From my system.

    Code:
    fred@z170-noble:~$ sudo modprobe efivars 
    modprobe: FATAL: Module efivars not found in directory /lib/modules/6.8.0-31-generic
    
    But efivars is really here not as module, but many files:
    Code:
    fred@z170-noble:~$ cat /sys/firmware/efi/efivars/ 
    cat: /sys/firmware/efi/efivars/: Is a directory
    
    Note sure if they moved efivars, but error has been around for a while.
    Last edited by oldfred; 3 Weeks Ago at 08:12 PM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #16
    aeronutt is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Feb 2009
    Location
    Central MD
    Beans
    864

    Re: upgrade failed, grub confused, working my way back

    Is there a way to hide a partition or device(disk) from boot-repair while it's doing its thing?

  7. #17
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: upgrade failed, grub confused, working my way back

    Not that I know about.

    You can always use the manual methods to repair, update or totally reinstall grub. You only have to have essential system partition(s) mounted, ESP, / (root) and if separate partition /home. A few, mostly with servers, may have other system folders as partitions that normally have to be mounted.

    If you can boot, you can do those from within your install.
    If you have to use live installer, you can chroot into your install.

    Some combination of these is an example of chroot, depending on your configuration compared to examples:
    UEFI chroot, must include ESP - efi system partition
    http://askubuntu.com/questions/53578...er/57380#57380
    chroot with UEFI, LVM, encryption on NVMe drive
    https://ubuntuforums.org/showthread....8#post13602088
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #18
    aeronutt is offline Grande Half-n-Half Cinnamon Ubuntu
    Join Date
    Feb 2009
    Location
    Central MD
    Beans
    864

    Re: upgrade failed, grub confused, working my way back

    I guess I'll learn how to install manually, not a bad thing to know.
    I've put in a bug report to boot-repair.

    I'm writing a script to record /dev nvme assignments after login, just for the fun of it.

    Thanks again for the great responses and help.

Page 2 of 2 FirstFirst 12

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
  •