After using Kubuntu for years in my HP laptop I installed Debian 12. I can't boot properly. I've set the BIOS to boot via UEFI, but every time I end up in the GRUB command prompt. When I intercept the BIOS and use the boot menu, the first 2 entries in the menu are Ubuntu. Debian comes third. This is reflected in de efibootmgr. I tried to repair this sequence but every time the old one gets restored.
I ran a boot-repair diagnosis and it's log is shown below. I'd be grateful for any help.
boot-repair-4ppa2081 [20240910_1121]
============================== Boot Info Summary ===============================
=> Grub2 (v1.99-2.00) is installed in the MBR of /dev/sda and looks at sector
1050624 of the same hard drive for core.img, but core.img can not be found
at this location.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi
/efi/debian/fbx64.efi /efi/debian/grubx64.efi
/efi/debian/mmx64.efi /efi/debian/shimx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/debian/grub.cfg
/efi/ubuntu/grub.cfg
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Debian GNU/Linux 12 (bookworm)
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
================================ 1 OS detected =================================
OS#1 (linux): Het nu gebruikte besturingssysteem - Debian GNU/Linux 12 (bookworm) on sda2
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: 2nd Generation Core Processor Family Integrated Graphics Controller from Intel Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-6.1.0-25-amd64 root=UUID=0e8dccff-f570-4880-b5bd-2c8812689f94 ro quiet
df -Th / : /dev/sda2 ext4 291G 112G 165G 41% /
===================================== UEFI =====================================
BIOS/UEFI firmware: F.22(15.34) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot enabled according to mokutil - Gelieve deze melding te rapporteren aan boot.repair@gmail.com.
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 3000,3001,3007,0003,0002,2001,2002
Boot0000* UbuntuHD(1,GPT,e05280cc-a1d3-414d-b783-50836b1d61a9,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0001* ubuntuHD(1,GPT,e05280cc-a1d3-414d-b783-50836b1d61a9,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* Network Adapter (IPv6 UEFI)PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(38eaa7fb1bd0,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0003* Network Adapter (IPv4 UEFI)PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(38eaa7fb1bd0,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0007* debianHD(1,GPT,e05280cc-a1d3-414d-b783-50836b1d61a9,0x800,0x100000)/File(\EFI\debian\shimx64.efi)
Boot2001* USB Drive (UEFI)RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)RC
Boot3000* Internal Hard Disk or Solid State DiskRC
Boot3001* Internal Hard Disk or Solid State DiskRC
Boot3007* Internal Hard Disk or Solid State DiskRC
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda: is-GPT,no-BIOSboot,has---ESP, not-usb,not-mmc, has-os,no-wind,2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda2: is-os,64, apt-get,signed grub-efi ,grub2,grub-install,grubenv-ok,update-grub,end-after-100GB
sda1: no-os,64, nopakmgr,no-docgrub,nogrub,nogrubinstall,no-grubenv,noupdategrub,not-far
Partitions info (2/3): _________________________________________________________
sda2: isnotESP,fstab-has-goodEFI,no-nt,no-winload,no-recov-nor-hid,no-bmgr,notwinboot, ext4
sda1: is---ESP,part-has-no-fstab,no-nt,no-winload,no-recov-nor-hid,no-bmgr,notwinboot, vfat
Partitions info (3/3): _________________________________________________________
sda2: not--sepboot,with-boot,fstab-without-boot,not-sep-usr,with--usr,fstab-without-usr,std-grub.d,sda
sda1: not--sepboot,no---boot,part-has-no-fstab,not-sep-usr,no---usr,part-has-no-fstab,no--grub.d,sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk identifier: 8F4BB94B-7766-4FC5-9557-2864AF6A02BA
Start End Sectors Size Type
sda1 2048 1050623 1048576 512M EFI System
sda2 1050624 623140863 622090240 296.6G Linux filesystem
sda3 623140864 625141759 2000896 977M Linux swap
parted -lm (filtered): _________________________________________________________
sda:320GB:scsi:512:512:gpt:ATA Hitachi HTS54323:;
1:1049kB:538MB:537MB:fat32::boot, esp;
2:538MB:319GB:319GB:ext4::;
3:319GB:320GB:1024MB:linux-swap(v1)::swap;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 9B91-D161 e05280cc-a1d3-414d-b783-50836b1d61a9
├─sda2 ext4 0e8dccff-f570-4880-b5bd-2c8812689f94 938be351-83f6-4dcd-b5f0-1bc07f59e2bc
└─sda3 swap 433daf32-11cb-4726-a966-5c7844992e92 8415a462-bb6b-4ed7-9aa9-7f9554ffb241
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda2 164.5G 38% /
Mount options (filtered): ______________________________________________________
/dev/sda2 ext4 rw,relatime,errors=remount-ro
===================== sda1/efi/debian/grub.cfg (filtered) ======================
search.fs_uuid 0e8dccff-f570-4880-b5bd-2c8812689f94 root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 6059295f-ac43-4d65-8032-f643559a5823 root hd0,gpt3
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda2/boot/grub/grub.cfg (filtered) ======================
Debian GNU/Linux 0e8dccff-f570-4880-b5bd-2c8812689f94
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sda2/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=0e8dccff-f570-4880-b5bd-2c8812689f94 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=9B91-D161 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda3 during installation
UUID=433daf32-11cb-4726-a966-5c7844992e92 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
======================= sda2/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
==================== sda2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
86,877582550 = 93,284093952 boot/grub/grub.cfg 1
86,633831024 = 93,022367744 boot/vmlinuz-6.1.0-22-amd64 1
7,485153198 = 8,037122048 boot/vmlinuz-6.1.0-25-amd64 1
7,485153198 = 8,037122048 vmlinuz 1
86,633831024 = 93,022367744 vmlinuz.old 1
5,683895111 = 6,103035904 boot/initrd.img-6.1.0-22-amd64 1
40,019870758 = 42,971009024 boot/initrd.img-6.1.0-25-amd64 1
40,019870758 = 42,971009024 initrd.img 1
5,683895111 = 6,103035904 initrd.img.old 1
===================== sda2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 14123 Oct 2 2023 10_linux
-rwxr-xr-x 1 root root 14180 Oct 2 2023 20_linux_xen
-rwxr-xr-x 1 root root 12923 Oct 2 2023 30_os-prober
-rwxr-xr-x 1 root root 1372 Oct 2 2023 30_uefi-firmware
-rwxr-xr-x 1 root root 722 Feb 26 2023 35_fwupd
-rwxr-xr-x 1 root root 214 Oct 2 2023 40_custom
-rwxr-xr-x 1 root root 215 Oct 2 2023 41_custom
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda2,
using the following options: sda1/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 Het nu gebruikte besturingssysteem - Debian GNU/Linux 12 (bookworm) entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !
I ran a boot-repair diagnosis and it's log is shown below. I'd be grateful for any help.
boot-repair-4ppa2081 [20240910_1121]
============================== Boot Info Summary ===============================
=> Grub2 (v1.99-2.00) is installed in the MBR of /dev/sda and looks at sector
1050624 of the same hard drive for core.img, but core.img can not be found
at this location.
sda1: __________________________________________________________________________
File system: vfat
Boot sector type: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi
/efi/debian/fbx64.efi /efi/debian/grubx64.efi
/efi/debian/mmx64.efi /efi/debian/shimx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/debian/grub.cfg
/efi/ubuntu/grub.cfg
sda2: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Debian GNU/Linux 12 (bookworm)
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub
sda3: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
================================ 1 OS detected =================================
OS#1 (linux): Het nu gebruikte besturingssysteem - Debian GNU/Linux 12 (bookworm) on sda2
================================ Host/Hardware =================================
CPU architecture: 64-bit
Video: 2nd Generation Core Processor Family Integrated Graphics Controller from Intel Corporation
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-6.1.0-25-amd64 root=UUID=0e8dccff-f570-4880-b5bd-2c8812689f94 ro quiet
df -Th / : /dev/sda2 ext4 291G 112G 165G 41% /
===================================== UEFI =====================================
BIOS/UEFI firmware: F.22(15.34) from Insyde
The firmware is EFI-compatible, and is set in EFI-mode for this installed-session.
SecureBoot enabled according to mokutil - Gelieve deze melding te rapporteren aan boot.repair@gmail.com.
BootCurrent: 0007
Timeout: 0 seconds
BootOrder: 3000,3001,3007,0003,0002,2001,2002
Boot0000* UbuntuHD(1,GPT,e05280cc-a1d3-414d-b783-50836b1d61a9,0x800,0x100000)/File(\EFI\ubuntu\grubx64.efi)RC
Boot0001* ubuntuHD(1,GPT,e05280cc-a1d3-414d-b783-50836b1d61a9,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* Network Adapter (IPv6 UEFI)PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(38eaa7fb1bd0,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0003* Network Adapter (IPv4 UEFI)PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/MAC(38eaa7fb1bd0,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0007* debianHD(1,GPT,e05280cc-a1d3-414d-b783-50836b1d61a9,0x800,0x100000)/File(\EFI\debian\shimx64.efi)
Boot2001* USB Drive (UEFI)RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)RC
Boot3000* Internal Hard Disk or Solid State DiskRC
Boot3001* Internal Hard Disk or Solid State DiskRC
Boot3007* Internal Hard Disk or Solid State DiskRC
============================= Drive/Partition Info =============================
Disks info: ____________________________________________________________________
sda: is-GPT,no-BIOSboot,has---ESP, not-usb,not-mmc, has-os,no-wind,2048 sectors * 512 bytes
Partitions info (1/3): _________________________________________________________
sda2: is-os,64, apt-get,signed grub-efi ,grub2,grub-install,grubenv-ok,update-grub,end-after-100GB
sda1: no-os,64, nopakmgr,no-docgrub,nogrub,nogrubinstall,no-grubenv,noupdategrub,not-far
Partitions info (2/3): _________________________________________________________
sda2: isnotESP,fstab-has-goodEFI,no-nt,no-winload,no-recov-nor-hid,no-bmgr,notwinboot, ext4
sda1: is---ESP,part-has-no-fstab,no-nt,no-winload,no-recov-nor-hid,no-bmgr,notwinboot, vfat
Partitions info (3/3): _________________________________________________________
sda2: not--sepboot,with-boot,fstab-without-boot,not-sep-usr,with--usr,fstab-without-usr,std-grub.d,sda
sda1: not--sepboot,no---boot,part-has-no-fstab,not-sep-usr,no---usr,part-has-no-fstab,no--grub.d,sda
fdisk -l (filtered): ___________________________________________________________
Disk sda: 298.09 GiB, 320072933376 bytes, 625142448 sectors
Disk identifier: 8F4BB94B-7766-4FC5-9557-2864AF6A02BA
Start End Sectors Size Type
sda1 2048 1050623 1048576 512M EFI System
sda2 1050624 623140863 622090240 296.6G Linux filesystem
sda3 623140864 625141759 2000896 977M Linux swap
parted -lm (filtered): _________________________________________________________
sda:320GB:scsi:512:512:gpt:ATA Hitachi HTS54323:;
1:1049kB:538MB:537MB:fat32::boot, esp;
2:538MB:319GB:319GB:ext4::;
3:319GB:320GB:1024MB:linux-swap(v1)::swap;
blkid (filtered): ______________________________________________________________
NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
├─sda1 vfat 9B91-D161 e05280cc-a1d3-414d-b783-50836b1d61a9
├─sda2 ext4 0e8dccff-f570-4880-b5bd-2c8812689f94 938be351-83f6-4dcd-b5f0-1bc07f59e2bc
└─sda3 swap 433daf32-11cb-4726-a966-5c7844992e92 8415a462-bb6b-4ed7-9aa9-7f9554ffb241
Mount points (filtered): _______________________________________________________
Avail Use% Mounted on
/dev/sda2 164.5G 38% /
Mount options (filtered): ______________________________________________________
/dev/sda2 ext4 rw,relatime,errors=remount-ro
===================== sda1/efi/debian/grub.cfg (filtered) ======================
search.fs_uuid 0e8dccff-f570-4880-b5bd-2c8812689f94 root hd0,gpt2
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================
search.fs_uuid 6059295f-ac43-4d65-8032-f643559a5823 root hd0,gpt3
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg
====================== sda2/boot/grub/grub.cfg (filtered) ======================
Debian GNU/Linux 0e8dccff-f570-4880-b5bd-2c8812689f94
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###
========================== sda2/etc/fstab (filtered) ===========================
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=0e8dccff-f570-4880-b5bd-2c8812689f94 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=9B91-D161 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda3 during installation
UUID=433daf32-11cb-4726-a966-5c7844992e92 none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
======================= sda2/etc/default/grub (filtered) =======================
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
==================== sda2: Location of files loaded by Grub ====================
GiB - GB File Fragment(s)
86,877582550 = 93,284093952 boot/grub/grub.cfg 1
86,633831024 = 93,022367744 boot/vmlinuz-6.1.0-22-amd64 1
7,485153198 = 8,037122048 boot/vmlinuz-6.1.0-25-amd64 1
7,485153198 = 8,037122048 vmlinuz 1
86,633831024 = 93,022367744 vmlinuz.old 1
5,683895111 = 6,103035904 boot/initrd.img-6.1.0-22-amd64 1
40,019870758 = 42,971009024 boot/initrd.img-6.1.0-25-amd64 1
40,019870758 = 42,971009024 initrd.img 1
5,683895111 = 6,103035904 initrd.img.old 1
===================== sda2: ls -l /etc/grub.d/ (filtered) ======================
-rwxr-xr-x 1 root root 14123 Oct 2 2023 10_linux
-rwxr-xr-x 1 root root 14180 Oct 2 2023 20_linux_xen
-rwxr-xr-x 1 root root 12923 Oct 2 2023 30_os-prober
-rwxr-xr-x 1 root root 1372 Oct 2 2023 30_uefi-firmware
-rwxr-xr-x 1 root root 722 Feb 26 2023 35_fwupd
-rwxr-xr-x 1 root root 214 Oct 2 2023 40_custom
-rwxr-xr-x 1 root root 215 Oct 2 2023 41_custom
Suggested repair: ______________________________________________________________
The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda2,
using the following options: sda1/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 Het nu gebruikte besturingssysteem - Debian GNU/Linux 12 (bookworm) entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !
Statistics: Posted by JackJanssen — 2024-09-10 09:48 — Replies 1 — Views 40