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

Thread: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

  1. #1
    Join Date
    Aug 2024
    Beans
    7

    Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    Hello,
    I am fairly new to using Ubuntu and I am trying to install Ubuntu 22.04 onto my HP Spectre x360. I initially installed it but forgot to check the box to install external drivers, so I think it did not install the driver for my computer's GPU. The screen was just completely black so I tried just restarting it and just installing it again. Since then, I have gotten the error "Failed to install GRUB in /dev/nvme0n1" every single time I have tried installing it. I have secure boot and fast boot both disabled. I have tried changing how I partition the disk in the installer. I have tried with including 500 MB of space for BIOS and for EFI in two separate attempts. In both attempts I have used most of my space partitioned for Ubuntu (about 130 GB) as Ext4 and set the mount point as root (/). Most recently, I have tried setting the boot mode in BIOS to "Legacy Support." I installed boot repair and gotten a report from it but am not really sure what it means. Here is the link to the report: https://paste.ubuntu.com/p/vqVncMhzy3/
    I appreciate the help.

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

    Re: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    Do not mix old BIOS/Legacy/CSM mode & UEFI. That just added to the confusion.
    Just always boot in UEFI mode, install in UEFI mode & have system set to default boot in UEFI mode.
    How you boot install media, is how it installs & repairs. You booted Boot-Repair in Legacy mode. Reboot in UEFI mode & rerun report & then it gives more details on UEFI install. See line 36.

    You show RAID on /dev/nvme1n1. Lines 130 & 137. You typically need to change to AHCI mode, but then for Windows to work have to install AHCI drivers into Windows. Or is this Intel Optane. Optane now discontinued by Intel. Used only as small fast (SSD) hibernation cache for booting Windows as Windiows booted so slow.

    You show Windows fast startup which sets hibernation flag or hibernation is on.

    You show two ESP - efi system partitions, p1 & p5. Most systems only work with one per drive. Make sure p1 has boot,esp flags in gparted and remove p5. That will require reinstall of grub as it probably was using p5.

    HP Pavilion 15t touch (15t cs-200) Post @@ totally remove optane card
    https://ubuntuforums.org/showthread.php?t=2471365
    HP 15 disable Optane
    https://h30434.www3.hp.com/t5/Notebo...o/td-p/7354483 &
    https://askubuntu.com/questions/1331...0-ubuntu-20-10 &
    https://askubuntu.com/questions/1162...h-intel-optane

    HP often only boots once. But can be booted directly from UEFI one time boot menu. All other brands work ok, when grub used efibootmgr to change boot order. But HP reverts to Windows. You have to go into HP settings & change boot order in settings.
    HP - <kbd>escape</kbd> + <kbd>F9</kbd> for UEFI boot menu, <kbd>F10</kbd> for UEFI/bios settings
    Screenshot of HP's UEFI settings change of boot order
    https://ubuntuforums.org/showthread....2490924&page=2
    https://www.phoronix.com/news/HP-BIOSCFG-For-Linux-6.6
    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.

  3. #3
    Join Date
    Aug 2024
    Beans
    7

    Re: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    I switched back to UEFI and tried to switch the EFI partition on p5 to "do not use this partition" in the Installation Type but it does not look like I successfully switched it. Is there a specific way you recommend removing that partition? Here is the Boot-Repair report: https://paste.ubuntu.com/p/4wnv7TrX59/

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

    Re: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    Both of you current UEFI boot entries use p1, as they have same partuuid. See lines 41 & 43.
    So you can use gparted and just delete p5.

    But line 137 shows this:
    isw_raid_member
    Normally that is Intel RST or Optane and you need to change to AHCI. See above.
    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.

  5. #5
    Join Date
    Aug 2024
    Beans
    7

    Re: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    I was able to find the option to disable Optane in BIOS and disabled it. I didn't see anything about switching to AHCI. I also went back into windows and expanded my C: drive and then just partitioned it again to remove the extra EFI partition. I booted and still got the same message. This is the current message from boot repair: https://paste.ubuntu.com/p/7QZY2mjfc8/

  6. #6
    Join Date
    May 2008
    Beans
    4,509
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    Line 57 - One OS detected (Ubuntu 22.04)
    If you are Dual Booting with Windows 10 (or 11), there should be an entry for Windows.
    Is Bitlocker active?

  7. #7
    Join Date
    Aug 2024
    Beans
    7

    Re: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    I'm not sure if Bitlocker is active or not. I am still able to boot into Windows 11. I'm not sure why it doesn't show up as an entry at line 57

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

    Re: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    Grub only boots working Windows. That also means bitlocker must be off, fast startup or hibernation off, and chkdsk not required.
    If you want to keep bitlocker on, just always boot from UEFI one time boot menu, not grub.
    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.

  9. #9
    Join Date
    Aug 2024
    Beans
    7

    Re: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    I would be okay with booting from UEFI, but Ubuntu doesn’t even show in the boot options.

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

    Re: Unable to install GRUB in /dev/nvme0n1 when installing Ubuntu 22.04 Dual Boot HP

    Run a new copy of Boot-Repair report & post link.
    When in UEFI mode, it shows more UEFI boot info that your previous report is missing.
    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.

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
  •