I successfully installed Ubuntu 22.10 Windows 7 a few days ago on my HP ENVY 360. Today I opened my laptop and it booted straight into Windows. I tried to boot from the BIOS menu, but it won't show the Ubuntu entry, nor can I find it when trying to boot from an EFI file.
I ran Boot-Repair from a USB stick, and this was the outputted diagnostic: https://paste.ubuntu.com/p/3n48pk9cxp/
============================== Boot Info Summary ===============================
=> No boot loader is installed in the MBR of /dev/mmcblk0.
=> No boot loader is installed in the MBR of /dev/nvme0n1.
mmcblk0p1: _____________________________________________________________________
File system: exfat
Boot sector type: Unknown
Boot sector info:
Operating System:
Boot files:
nvme0n1p1: _____________________________________________________________________
File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/Boot/fbx64.efi
/efi/Boot/mmx64.efi /efi/HP/DI.efi
/efi/HP/BIOSUpdate/BiosMgmt.efi
/efi/HP/BIOSUpdate/CryptRSA.efi
/efi/HP/SystemDiags/CryptRSA.efi
/efi/HP/SystemDiags/DI.efi
/efi/HP/SystemDiags/SysDiags.efi
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/cbmr_driver.efi
nvme0n1p2: _____________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
nvme0n1p3: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /Windows/System32/winload.exe
nvme0n1p4: _____________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
nvme0n1p5: _____________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 22.10
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sda: ___________________________________________________________________________
File system: iso9660
Boot sector type: Grub2 (v1.99-2.00)
Boot sector info: Grub2 (v1.99-2.00) is installed in the boot sector of
sda and looks at sector 0 of the same hard drive for
core.img, but core.img can not be found at this
location.
Mounting failed: mount: /mnt/BootInfo/FD/sda: /dev/sda already mounted or mount point busy.
dmesg(1) may have more information after failed mount system call.
================================ 2 OS detected =================================
OS#1: Ubuntu 22.10 on nvme0n1p5
OS#2: Windows 7 on nvme0n1p3
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: Renoir from Advanced Micro Devices, Inc. [AMD/ATI]
Live-session OS is Ubuntu 64-bit (Ubuntu 22.10, kinetic, x86_64)
===================================== UEFI =====================================
BIOS/UEFI firmware: F.16(15.16) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled (confirmed by mokutil).
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,2001,3001,2002,2004
Boot0000* USB Hard Drive (UEFI) - General USB Flash Disk (General USB Flash Disk) UsbWwid(90c,1000,0,031731510000882)/HD(2,GPT,a9694891-aa3f-477b-ab39-77efbbb2b778,0x793658,0x2138)RC
Boot0001* Windows Boot Manager HD(1,GPT,984bd5ac-e1ac-4321-8e6a-5c0db5fca35d,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.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.}....................
Boot2001* EFI USB Device RC
Boot3001* Internal Hard Disk or Solid State Disk RC
728124f6ec8e22fbdbe7034812c81b95 nvme0n1p1/Boot/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271 nvme0n1p1/Boot/fbx64.efi
fdafb5eece6caeccb788c946a28e6872 nvme0n1p1/Boot/mmx64.efi
9437d1ec93ee65ee93be8e3654fea179 nvme0n1p1/HP/DI.efi
7b5e70643634fef9ae4c3be43e4c379a nvme0n1p1/HP/BIOSUpdate/BiosMgmt.efi
6488d391f74263c9da3c3d47dffa6212 nvme0n1p1/HP/BIOSUpdate/CryptRSA.efi
6488d391f74263c9da3c3d47dffa6212 nvme0n1p1/HP/SystemDiags/CryptRSA.efi
9437d1ec93ee65ee93be8e3654fea179 nvme0n1p1/HP/SystemDiags/DI.efi
a5d16d56dc4eb159dfb3d5a0741b9d52 nvme0n1p1/HP/SystemDiags/SysDiags.efi
df137ed988bb5d6407e38d458ee35e2b nvme0n1p1/Microsoft/Boot/bootmgfw.efi
7ad9a95979c0b6c10f68dac2311f0551 nvme0n1p1/Microsoft/Boot/bootmgr.efi
b8796e68099026aabcebb8fcf75b21f6 nvme0n1p1/Microsoft/Boot/cbmr_driver.efi
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
mmcblk0 : notGPT, no-BIOSboot, has-noESP, not-usb, mmc-disk, no-os, no-wind, 2048 sectors * 512 bytes
nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
mmcblk0p1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
nvme0n1p1 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
nvme0n1p3 : is-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
nvme0n1p4 : no-os, 64, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
nvme0n1p5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios
Partitions info (2/3): _________________________________________________________
mmcblk0p1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p1 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p3 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
nvme0n1p4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
nvme0n1p5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
Partitions info (3/3): _________________________________________________________
mmcblk0p1 : maybesepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, mmcblk0
nvme0n1p1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p3 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, nvme0n1
nvme0n1p5 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, nvme0n1
fdisk -l (filtered): ___________________________________________________________
Disk nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk identifier: E120DBCC-53BE-47B6-9AA9-12921A8FCC0D
Start End Sectors Size Type
nvme0n1p1 2048 534527 532480 260M EFI System
nvme0n1p2 534528 567295 32768 16M Microsoft reserved
nvme0n1p3 567296 421390335 420823040 200.7G Microsoft basic data
nvme0n1p4 998807552 1000200191 1392640 680M Windows recovery environment
nvme0n1p5 421390336 998807551 577417216 275.3G Linux filesystem
Partition table entries are not in disk order.
Disk mmcblk0: 119.25 GiB, 128043712512 bytes, 250085376 sectors
Disk identifier: 0x00000000
Boot Start End Sectors Size Id Type
mmcblk0p1 32768 250085375 250052608 119.2G 7 HPFS/NTFS/exFAT
Disk sda: 7.5 GiB, 8053063680 bytes, 15728640 sectors
Disk identifier: A9694891-AA3F-477B-AB3B-77EFBBB2B778
Start End Sectors Size Type
sda1 64 7943767 7943704 3.8G Microsoft basic data
sda2 7943768 7952271 8504 4.2M EFI System
sda3 7952272 7952871 600 300K Microsoft basic data
sda4 7954432 15726591 7772160 3.7G Linux filesystem
parted -lm (filtered): _________________________________________________________
sda:8053MB:scsi:512:512:gpt:General USB Flash Disk:;
1:32.8kB:4067MB:4067MB::ISO9660:hidden, msftdata;
2:4067MB:4072MB:4354kB::Appended2:boot, esp;
3:4072MB:4072MB:307kB::Gap1:hidden, msftdata;
4:4073MB:8052MB:3979MB:ext4::;
nvme0n1:512GB:nvme:512:512:gpt:SK hynix BC511 HFM512GDJTNI-82A0A:;
1:1049kB:274MB:273MB:fat32:EFI system partition:boot, esp;
2:274MB:290MB:16.8MB::Microsoft reserved partition:msftres;
3:290MB:216GB:215GB:ntfs:Basic data partition:msftdata;
5:216GB:511GB:296GB:ext4::;
4:511GB:512GB:713MB:ntfs::hidden, diag;
mmcblk0:128GB:sd/mmc:512:512:msdos:SD BD4QT:;
1:16.8MB:128GB:128GB:::;
Free space >10MiB: ______________________________________________________________
mmcblk0: 0.00MiB:16.0MiB:16.0MiB
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda iso9660 2022-10-20-07-22-49-00 Ubuntu 22.10 amd64
├─sda1 iso9660 2022-10-20-07-22-49-00 a9694891-aa3f-477b-ab3a-77efbbb2b778 Ubuntu 22.10 amd64 ISO9660
├─sda2 vfat 173E-4012 a9694891-aa3f-477b-ab39-77efbbb2b778 ESP Appended2
├─sda3 a9694891-aa3f-477b-ab38-77efbbb2b778 Gap1
└─sda4 ext4 f3a0f4fc-441f-4c80-9f00-3dc627427c92 2581cfcc-8c61-3244-a775-21f0e91f9bc8 writable
mmcblk0
└─mmcblk0p1 exfat
nvme0n1
├─nvme0n1p1 vfat C607-3D38 984bd5ac-e1ac-4321-8e6a-5c0db5fca35d SYSTEM EFI system partition
├─nvme0n1p2 a765da69-a085-4024-9374-525e1ef49e5b Microsoft reserved partition
├─nvme0n1p3 ntfs C62AE28C2AE27937 8de1dbdd-fdd6-4530-903b-69e4d0fca975 Windows Basic data partition
├─nvme0n1p4 ntfs B286E93986E8FEAB 0d332abe-4fb4-4777-857f-c3a1cd8e41c7
└─nvme0n1p5 ext4 476492de-5dd1-4b96-8711-74e2fbe59e19 4a2abbb6-897a-411c-a052-a76469813c13
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2023-01-10.2/crash] 3.4G 0% /var/crash
/dev/disk/by-label/writable[/install-logs-2023-01-10.2/log] 3.4G 0% /var/log
/dev/mmcblk0p1 45.4G 62% /mnt/boot-sav/mmcblk0p1
/dev/nvme0n1p1 183.8M 28% /mnt/boot-sav/nvme0n1p1
/dev/nvme0n1p3 147.7G 26% /mnt/boot-sav/nvme0n1p3
/dev/nvme0n1p4 89.8M 87% /mnt/boot-sav/nvme0n1p4
/dev/nvme0n1p5 230.3G 10% /mnt/boot-sav/nvme0n1p5
/dev/sda1 0 100% /cdrom
Mount options (filtered): ______________________________________________________
=================== nvme0n1p5/boot/grub/grub.cfg (filtered) ====================
Ubuntu 476492de-5dd1-4b96-8711-74e2fbe59e19
Ubuntu, with Linux 5.19.0-28-generic 476492de-5dd1-4b96-8711-74e2fbe59e19
Ubuntu, with Linux 5.19.0-21-generic 476492de-5dd1-4b96-8711-74e2fbe59e19
Windows Boot Manager (on nvme0n1p1) osprober-efi-C607-3D38
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###
======================== nvme0n1p5/etc/fstab (filtered) ========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=476492de-5dd1-4b96-8711-74e2fbe59e19 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=C607-3D38 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
==================== nvme0n1p5/etc/default/grub (filtered) =====================
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false
================= nvme0n1p5: Location of files loaded by Grub ==================
GiB - GB File Fragment(s)
328.371776581 = 352.586510336 boot/grub/grub.cfg 1
413.086494446 = 443.548246016 boot/vmlinuz 1
331.078674316 = 355.493019648 boot/vmlinuz-5.19.0-21-generic 1
413.086494446 = 443.548246016 boot/vmlinuz-5.19.0-28-generic 1
331.078674316 = 355.493019648 boot/vmlinuz.old 1
289.772003174 = 311.140319232 boot/initrd.img 1
312.006401062 = 335.014322176 boot/initrd.img-5.19.0-21-generic 1
289.772003174 = 311.140319232 boot/initrd.img-5.19.0-28-generic 1
312.006401062 = 335.014322176 boot/initrd.img.old 1
=================== nvme0n1p5: ls -l /etc/grub.d/ (filtered) ===================
-rwxr-xr-x 1 root root 18683 Sep 19 14:00 10_linux
-rwxr-xr-x 1 root root 43263 Sep 19 14:00 10_linux_zfs
-rwxr-xr-x 1 root root 14387 Sep 19 14:00 20_linux_xen
-rwxr-xr-x 1 root root 13369 Sep 19 14:00 30_os-prober
-rwxr-xr-x 1 root root 1372 Sep 19 14:00 30_uefi-firmware
-rwxr-xr-x 1 root root 700 Aug 30 18:33 35_fwupd
-rwxr-xr-x 1 root root 214 Sep 19 14:00 40_custom
-rwxr-xr-x 1 root root 215 Sep 19 14:00 41_custom
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi of
nvme0n1p5,
using the following options: nvme0n1p1/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file
Final advice in case of suggested repair: ______________________________________
Please do not forget to make your UEFI firmware boot on the Ubuntu 22.10 entry (nvme0n1p1/efi/****/grub****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\grub****.efi (**** will be updated in the final message)