Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Bookworm grub will not boot proper to second OS

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

[Solved] Bookworm grub will not boot proper to second OS

#1 Post by Augie77 »

Debian 12 - Bookworm : My grub has gotten, well...grubby. I have a dual boot with Mint on the second partition and Bookworm on the third partition. When in Debian and rebooting for the grub to go to Mint, I have the emerald Debian grub theme presented and I select Mint and I get the Emerald Screen of Death with the warning - "error: out of memory. Press any key to continue...", and the system locks up and I have to power off/on boot the box. When I am in Mint, I have the vanilla black/white Mint grub and I can select either Mint or Debian and have a successfull boot to either OS.

In the BIOS I have Fast Boot, Secure Boot, and Platform Trust Tech all Disabled. When I have the boot priorities set as Debian first then I get the Debian grub, and with Mint as first I get the Mint grub. Booting to Mint only fails with Debian set as first boot priority, the emerald grub is presented and i select Mint. This issue was present when I had Debian KDE installed and is now present with Debian XFCE installed and was there from the first initial boot after installation.

I have ran

Code: Select all

 os-prober and update-grub 
and both completed successfully. I have hunted around the site for this specific problem and did not find a resolution; below is some more information, useful and maybe not useful. What steps do I need to take to fix the emerald grub?

Code: Select all

sudo os-prober
/dev/nvme0n1p2:Linux Mint 21.3 Virginia (21.3):LinuxMint:linux

Code: Select all

sudo update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-18-amd64
Found initrd image: /boot/initrd.img-6.1.0-18-amd64
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Linux Mint 21.3 Virginia (21.3) on /dev/nvme0n1p2
Adding boot menu entry for UEFI Firmware Settings ...
done

Code: Select all

sudo parted -l
Model: ATA SanDisk SDSSDH3 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End    Size   File system  Flags
 1      0.00B  250GB  250GB  ext4


Model: ATA SD Ultra 3D 500G (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name              Flags
 1      1049kB  238GB  238GB  ext4         mint-timeshift
 3      238GB   347GB  110GB  ext4         Homi-Debian
 2      347GB   500GB  153GB  ext4         debian-timeshift


Model: Micron CT1000X10PROSSD9 (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size   File system  Name  Flags
 1      1049kB  502GB   502GB  ext4
 2      502GB   1000GB  498GB  ext4


Model: Sabrent SB-RKT4P-500 (nvme)
Disk /dev/nvme0n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system  Name                  Flags
 1      1049kB  538MB  537MB   fat32        EFI System Partition  boot, esp
 2      538MB   100GB  99.7GB  ext4         Virginia
 3      100GB   300GB  200GB   ext4         Bookworm
 4      300GB   500GB  200GB   ext4         Spare


Model: Sabrent SB-RKT4P-500 (nvme)
Disk /dev/nvme1n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name        Flags
 1      1049kB  225GB  225GB  ext4         RECORDS-01
 2      225GB   364GB  139GB  ext4         RECORDS-02
 3      364GB   500GB  136GB  ext4         RECORDS-03

Code: Select all

sudo lsblk -f
NAME        FSTYPE FSVER LABEL            UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda         ext4   1.0   Genealogy-Files  e92d6692-f244-451e-8021-c2cc4a3c7cd1                
sdb                                                                                           
├─sdb1      ext4   1.0   mint-timeshift   776a1aeb-1447-4a2e-866b-aa4a14f2dbc7                
├─sdb2      ext4   1.0   debian-timeshift e5d9488e-9aa3-465a-9525-b88b9bc023be  107.7G    17% /mnt/debian-timeshift
└─sdb3      ext4   1.0   Homi-Debian      afb5da76-eb38-4813-a22e-e6855b874fe7   94.7G     0% /mnt/Homi-Debian
sdc                                                                                           
├─sdc1      ext4   1.0   Homi             90152bd5-b51c-4282-97c5-500dafa81a54                
└─sdc2      ext4   1.0   10ProSpare       797ad244-8cca-4893-9f1b-ea9292a60901                
nvme0n1                                                                                       
├─nvme0n1p1 vfat   FAT32                  99B6-9E20                             499.1M     2% /boot/efi
├─nvme0n1p2 ext4   1.0                    25d3b077-c06e-436c-908a-9956990502a7                
├─nvme0n1p3 ext4   1.0   Bookworm         a475fb0a-bcf4-4c60-9a49-f546cf8d1c40  162.2G     6% /
└─nvme0n1p4 ext4   1.0   Spare            f07d2152-0e5f-450f-9f3b-beea9d6c28a9                
nvme1n1                                                                                       
├─nvme1n1p1 ext4   1.0   RECORDS-01       e42f0df7-fd09-4e97-aeff-5c0e87d4fb90                
├─nvme1n1p2 ext4   1.0   RECORDS-02       b7912ad5-7243-4d47-a21d-208a9a7d9c6a                
└─nvme1n1p3 ext4   1.0   RECORDS-03       34385e7c-6c36-4f8f-8445-42a9e47f9bd6    

Code: Select all

sudo efibootmgr -v
BootCurrent: 0000
Timeout: 3 seconds
BootOrder: 0000,0002
Boot0000* debian	HD(1,GPT,9e88d124-5c16-4d86-b97f-25f8e68d8c7b,0x800,0x100000)/File(\EFI\debian\shimx64.efi)
Boot0002* ubuntu	HD(1,GPT,9e88d124-5c16-4d86-b97f-25f8e68d8c7b,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Last edited by Augie77 on 2024-04-01 19:41, edited 2 times in total.

User avatar
lewulff
Posts: 107
Joined: 2008-12-07 16:55
Location: Tagaytay Philippines
LinkedIN: www.linkedin.com/in/
Has thanked: 3 times
Been thanked: 14 times
Contact:

Re: Bookworm grub not boot proper to second OS

#2 Post by lewulff »

Can you provide the contents of /etc/default/grub for both distros (not sure if it is in the same place in Mint)

Also, do you have efibootmgr installed (it is in the Debian bookworm repository, should also be available Mint)? If so can you run it and provide the output?

Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

Re: Bookworm grub not boot proper to second OS

#3 Post by Augie77 »

Hello Lee, here are the requested files. I have also added the grub.cfg file from Mint Virginia and Bookworm. I did notice the Bookworm grub.cfg when viewed in Thunar, the icon for the file had an small 'x' on it and the file type was 'unknown'. Perhaps that is significant?

the Bookworm requests first...

Code: Select all


sudo efibootmgr

BootCurrent: 0000
Timeout: 5 seconds
BootOrder: 0000,0002
Boot0000* debian
Boot0002* ubuntu

---------------------------------------------

etc/default/grub

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

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=""

# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
# for guest OSes installed via LVM or raw disk devices, running
# os-prober can cause damage to those guest OSes as it mounts
# filesystems to look for things.
GRUB_DISABLE_OS_PROBER=false

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

--------------------------------------------------------------------------------

boot/grub/grub.cfg


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root a475fb0a-bcf4-4c60-9a49-f546cf8d1c40
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root a475fb0a-bcf4-4c60-9a49-f546cf8d1c40
insmod png
if background_image /usr/share/desktop-base/emerald-theme/grub/grub-4x3.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-a475fb0a-bcf4-4c60-9a49-f546cf8d1c40' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root a475fb0a-bcf4-4c60-9a49-f546cf8d1c40
	echo	'Loading Linux 6.1.0-18-amd64 ...'
	linux	/boot/vmlinuz-6.1.0-18-amd64 root=UUID=a475fb0a-bcf4-4c60-9a49-f546cf8d1c40 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-6.1.0-18-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-a475fb0a-bcf4-4c60-9a49-f546cf8d1c40' {
	menuentry 'Debian GNU/Linux, with Linux 6.1.0-18-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-18-amd64-advanced-a475fb0a-bcf4-4c60-9a49-f546cf8d1c40' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root a475fb0a-bcf4-4c60-9a49-f546cf8d1c40
		echo	'Loading Linux 6.1.0-18-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-18-amd64 root=UUID=a475fb0a-bcf4-4c60-9a49-f546cf8d1c40 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-18-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 6.1.0-18-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-18-amd64-recovery-a475fb0a-bcf4-4c60-9a49-f546cf8d1c40' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root a475fb0a-bcf4-4c60-9a49-f546cf8d1c40
		echo	'Loading Linux 6.1.0-18-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-18-amd64 root=UUID=a475fb0a-bcf4-4c60-9a49-f546cf8d1c40 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-18-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Linux Mint 21.3 Virginia (21.3) (on /dev/nvme0n1p2)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-25d3b077-c06e-436c-908a-9956990502a7' {
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
	linux /boot/vmlinuz-6.5.0-26-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro quiet loglevel=3 splash
	initrd /boot/initrd.img-6.5.0-26-generic
}
submenu 'Advanced options for Linux Mint 21.3 Virginia (21.3) (on /dev/nvme0n1p2)' $menuentry_id_option 'osprober-gnulinux-advanced-25d3b077-c06e-436c-908a-9956990502a7' {
	menuentry 'Linux Mint 21.3 Xfce (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5.0-26-generic--25d3b077-c06e-436c-908a-9956990502a7' {
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
		linux /boot/vmlinuz-6.5.0-26-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro quiet loglevel=3 splash
		initrd /boot/initrd.img-6.5.0-26-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 6.5.0-26-generic (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5.0-26-generic--25d3b077-c06e-436c-908a-9956990502a7' {
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
		linux /boot/vmlinuz-6.5.0-26-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro quiet loglevel=3 splash
		initrd /boot/initrd.img-6.5.0-26-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 6.5.0-26-generic (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.5.0-26-generic-root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro recovery nomodeset dis_ucode_ldr-25d3b077-c06e-436c-908a-9956990502a7' {
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
		linux /boot/vmlinuz-6.5.0-26-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro recovery nomodeset dis_ucode_ldr
		initrd /boot/initrd.img-6.5.0-26-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-101-generic (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-101-generic--25d3b077-c06e-436c-908a-9956990502a7' {
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
		linux /boot/vmlinuz-5.15.0-101-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro quiet loglevel=3 splash
		initrd /boot/initrd.img-5.15.0-101-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-101-generic (recovery mode) (on /dev/nvme0n1p2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-101-generic-root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro recovery nomodeset dis_ucode_ldr-25d3b077-c06e-436c-908a-9956990502a7' {
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
		linux /boot/vmlinuz-5.15.0-101-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro recovery nomodeset dis_ucode_ldr
		initrd /boot/initrd.img-5.15.0-101-generic
	}
}

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###


Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

Re: Bookworm grub not boot proper to second OS

#4 Post by Augie77 »

Lee...here are the Mint Virginia files requested.

Code: Select all


efibootmgr

BootCurrent: 0002
Timeout: 5 seconds
BootOrder: 0002,0000
Boot0000* debian
Boot0002* ubuntu

-------------------------------------------------

etc/default/grub


# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

-------------------------------------------------------------------------------

boot/grub/grub.cfg


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${initrdfail}" = 2 ]; then
   set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
   set next_entry="${prev_entry}"
   set prev_entry=
   save_env prev_entry
   if [ "${next_entry}" ]; then
      set initrdfail=2
   fi
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function initrdfail {
    if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
      if [ -z "${initrdfail}" ]; then
        set initrdfail=1
        if [ -n "${boot_once}" ]; then
          set prev_entry="${default}"
          save_env prev_entry
        fi
      fi
      save_env initrdfail
    fi; fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=0
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 0 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if [ ${grub_platform} != pc ]; then
      set linux_gfx_mode=keep
    elif hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Linux Mint 21.3 Xfce' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-25d3b077-c06e-436c-908a-9956990502a7' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
	linux	/boot/vmlinuz-6.5.0-26-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro  quiet loglevel=3 splash 
	initrd	/boot/initrd.img-6.5.0-26-generic
}
submenu 'Advanced options for Linux Mint 21.3 Xfce' $menuentry_id_option 'gnulinux-advanced-25d3b077-c06e-436c-908a-9956990502a7' {
	menuentry 'Linux Mint 21.3 Xfce, with Linux 6.5.0-26-generic' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.0-26-generic-advanced-25d3b077-c06e-436c-908a-9956990502a7' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
		echo	'Loading Linux 6.5.0-26-generic ...'
		linux	/boot/vmlinuz-6.5.0-26-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro  quiet loglevel=3 splash 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.5.0-26-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 6.5.0-26-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.5.0-26-generic-recovery-25d3b077-c06e-436c-908a-9956990502a7' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
		echo	'Loading Linux 6.5.0-26-generic ...'
		linux	/boot/vmlinuz-6.5.0-26-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.5.0-26-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-101-generic' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-101-generic-advanced-25d3b077-c06e-436c-908a-9956990502a7' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
		echo	'Loading Linux 5.15.0-101-generic ...'
		linux	/boot/vmlinuz-5.15.0-101-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro  quiet loglevel=3 splash 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.15.0-101-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-101-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-101-generic-recovery-25d3b077-c06e-436c-908a-9956990502a7' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 25d3b077-c06e-436c-908a-9956990502a7
		echo	'Loading Linux 5.15.0-101-generic ...'
		linux	/boot/vmlinuz-5.15.0-101-generic root=UUID=25d3b077-c06e-436c-908a-9956990502a7 ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.15.0-101-generic
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux 12 (bookworm) (on /dev/nvme0n1p3)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-a475fb0a-bcf4-4c60-9a49-f546cf8d1c40' {
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root a475fb0a-bcf4-4c60-9a49-f546cf8d1c40
	linux /boot/vmlinuz-6.1.0-18-amd64 root=UUID=a475fb0a-bcf4-4c60-9a49-f546cf8d1c40 ro quiet
	initrd /boot/initrd.img-6.1.0-18-amd64
}
submenu 'Advanced options for Debian GNU/Linux 12 (bookworm) (on /dev/nvme0n1p3)' $menuentry_id_option 'osprober-gnulinux-advanced-a475fb0a-bcf4-4c60-9a49-f546cf8d1c40' {
	menuentry 'Debian GNU/Linux (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.0-18-amd64--a475fb0a-bcf4-4c60-9a49-f546cf8d1c40' {
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root a475fb0a-bcf4-4c60-9a49-f546cf8d1c40
		linux /boot/vmlinuz-6.1.0-18-amd64 root=UUID=a475fb0a-bcf4-4c60-9a49-f546cf8d1c40 ro quiet
		initrd /boot/initrd.img-6.1.0-18-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 6.1.0-18-amd64 (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.0-18-amd64--a475fb0a-bcf4-4c60-9a49-f546cf8d1c40' {
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root a475fb0a-bcf4-4c60-9a49-f546cf8d1c40
		linux /boot/vmlinuz-6.1.0-18-amd64 root=UUID=a475fb0a-bcf4-4c60-9a49-f546cf8d1c40 ro quiet
		initrd /boot/initrd.img-6.1.0-18-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 6.1.0-18-amd64 (recovery mode) (on /dev/nvme0n1p3)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-6.1.0-18-amd64-root=UUID=a475fb0a-bcf4-4c60-9a49-f546cf8d1c40 ro single-a475fb0a-bcf4-4c60-9a49-f546cf8d1c40' {
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root a475fb0a-bcf4-4c60-9a49-f546cf8d1c40
		linux /boot/vmlinuz-6.1.0-18-amd64 root=UUID=a475fb0a-bcf4-4c60-9a49-f546cf8d1c40 ro single
		initrd /boot/initrd.img-6.1.0-18-amd64
	}
}

set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###


User avatar
pbear
Posts: 386
Joined: 2023-08-27 15:05
Location: San Francisco
Has thanked: 2 times
Been thanked: 63 times

Re: Bookworm grub not boot proper to second OS

#5 Post by pbear »

Don't see anything amiss in what you've posted so far. Please report the output of apt list --installed grub* in both systems. sudo not needed, as it's merely a query.
Also, please post your system information. Install inxi: sudo apt install inxi. Then run inxi -Fxxz

To confirm the obvious, yes, Debian generally boots other systems added to Grub by os-prober.

Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

Re: Bookworm grub not boot proper to second OS

#6 Post by Augie77 »

Alrighty pbear, here you go.

Debian Bookworm files requested

Code: Select all


apt list --installed grub
Listing... Done

inxi -Fxxz
System:
  Kernel: 6.1.0-18-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 wm: xfwm dm: LightDM
    Distro: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop Mobo: ASRock model: H670M Pro RS serial: <filter>
    UEFI: American Megatrends LLC. v: 14.01 date: 01/16/2024
CPU:
  Info: 12-core (8-mt/4-st) model: 12th Gen Intel Core i7-12700 bits: 64
    type: MST AMCP arch: Alder Lake rev: 2 cache: L1: 1024 KiB L2: 12 MiB
    L3: 25 MiB
  Speed (MHz): avg: 800 min/max: 800/4800:4900:3600 cores: 1: 800 2: 800
    3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800
    13: 800 14: 800 15: 800 16: 800 17: 800 18: 800 19: 800 20: 800
    bogomips: 84480
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel AlderLake-S GT1 vendor: ASRock driver: i915 v: kernel ports:
    active: DP-1,HDMI-A-2 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:4680
  Device-2: Logitech Logi Webcam C920e type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-1.4:8 chip-ID: 046d:08e7
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver:
    X: loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96
  Monitor-1: DP-1 pos: primary,left model: Samsung LS24AG30x res: 1920x1080
    dpi: 93 diag: 604mm (23.8")
  Monitor-2: HDMI-A-2 mapped: HDMI-2 pos: right model: HP 2311
    res: 1920x1080 dpi: 96 diag: 584mm (23")
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 770
    (ADL-S GT1) direct-render: Yes
Audio:
  Device-1: Intel Alder Lake-S HD Audio vendor: ASRock driver: snd_hda_intel
    bus-ID: 1-1.4:8 v: kernel chip-ID: 046d:08e7 bus-ID: 00:1f.3
    chip-ID: 8086:7ad0
  Device-2: Logitech Logi Webcam C920e type: USB
    driver: snd-usb-audio,uvcvideo
  API: ALSA v: k6.1.0-18-amd64 status: kernel-api
  Server-1: PulseAudio v: 16.1 status: active (root, process)
Network:
  Device-1: Intel Ethernet I219-V vendor: ASRock driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:1a1d
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.5 TiB used: 36.25 GiB (1.4%)
  ID-1: /dev/nvme0n1 vendor: Sabrent model: SB-RKT4P-500 size: 465.76 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 29.9 C
  ID-2: /dev/nvme1n1 vendor: Sabrent model: SB-RKT4P-500 size: 465.76 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 26.9 C
  ID-3: /dev/sda model: SD Ultra 3D 500GB size: 465.76 GiB speed: 6.0 Gb/s
    serial: <filter>
  ID-4: /dev/sdb vendor: SanDisk model: SDSSDH3 250G size: 232.89 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-5: /dev/sdc type: USB vendor: Micron model: CT1000X10PROSSD9
    size: 931.51 GiB serial: <filter>
Partition:
  ID-1: / size: 182.21 GiB used: 10.74 GiB (5.9%) fs: ext4 dev: /dev/nvme0n1p3
  ID-2: /boot/efi size: 511 MiB used: 11.9 MiB (2.3%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 26.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 354 Uptime: 2m Memory: 14.46 GiB used: 2.49 GiB (17.2%)
  Init: systemd v: 252 target: graphical (5) default: graphical Compilers:
  gcc: 12.2.0 alt: 12 Packages: pm: dpkg pkgs: 2537 Shell: Bash v: 5.2.15
  running-in: xfce4-terminal inxi: 3.3.26



Mint Virginia requests

Code: Select all

apt list --installed grub
Listing... Done


inxi -Fxxz
System:
  Kernel: 6.5.0-26-generic x86_64 bits: 64 compiler: N/A Desktop: Xfce 4.18.1
    tk: Gtk 3.24.33 wm: xfwm dm: LightDM Distro: Linux Mint 21.3 Virginia
    base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: ASRock model: H670M Pro RS serial: <superuser required>
    UEFI: American Megatrends LLC. v: 14.01 date: 01/16/2024
CPU:
  Info: 12-core (8-mt/4-st) model: 12th Gen Intel Core i7-12700 bits: 64
    type: MST AMCP arch: Alder Lake rev: 2 cache: L1: 1024 KiB L2: 12 MiB
    L3: 25 MiB
  Speed (MHz): avg: 807 high: 943 min/max: 800/4800:4900:3600 cores: 1: 800
    2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800
    12: 800 13: 800 14: 800 15: 800 16: 800 17: 800 18: 800 19: 800 20: 943
    bogomips: 84480
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel AlderLake-S GT1 vendor: ASRock driver: i915 v: kernel
    ports: active: DP-1,HDMI-A-2 empty: HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:4680
  Device-2: Logitech Logi Webcam C920e type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-1.4:8 chip-ID: 046d:08e7
  Display: x11 server: X.Org v: 1.21.1.4 compositors: 1: xfwm v: 4.18.0
    2: Compton v: 1 driver: X: loaded: modesetting unloaded: fbdev,vesa
    gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96
  Monitor-1: DP-1 pos: primary,left model: Samsung LS24AG30x res: 1920x1080
    dpi: 93 diag: 604mm (23.8")
  Monitor-2: HDMI-2 mapped: HDMI-A-2 pos: right model: HP 2311
    res: 1920x1080 dpi: 96 diag: 584mm (23")
  OpenGL: renderer: Mesa Intel UHD Graphics 770 (ADL-S GT1)
    v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes
Audio:
  Device-1: Intel vendor: ASRock driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:7ad0
  Device-2: Logitech Logi Webcam C920e type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-1.4:8 chip-ID: 046d:08e7
  Sound Server-1: ALSA v: k6.5.0-26-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Ethernet I219-V vendor: ASRock driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:1a1d
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.56 TiB used: 329.49 GiB (12.6%)
  ID-1: /dev/nvme0n1 vendor: Sabrent model: SB-RKT4P-500 size: 465.76 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 36.9 C
  ID-2: /dev/nvme1n1 vendor: Sabrent model: SB-RKT4P-500 size: 465.76 GiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
  ID-3: /dev/sda model: SD Ultra 3D 500GB size: 465.76 GiB speed: 6.0 Gb/s
    serial: <filter>
  ID-4: /dev/sdb vendor: SanDisk model: SDSSDH3 250G size: 232.89 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-5: /dev/sdc type: USB vendor: Micron model: CT1000X10PROSSD9
    size: 931.51 GiB serial: <filter>
  ID-6: /dev/sdd type: USB vendor: SanDisk model: Cruzer Glide
    size: 57.73 GiB serial: <filter>
Partition:
  ID-1: / size: 90.36 GiB used: 51.01 GiB (56.5%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 11.9 MiB (2.3%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 30.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 398 Uptime: 1m Memory: 14.45 GiB used: 1.93 GiB (13.4%)
  Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12
  Packages: apt: 2510 Shell: Bash v: 5.1.16 running-in: xfce4-terminal
  inxi: 3.3.13
 

Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

Re: Bookworm grub not boot proper to second OS

#7 Post by Augie77 »

I took another look at the list for installed grub and ran this command, I think this may be what you were looking for. I had missed the ' * ' on the first attempt. :oops:


Bookworm installed grub

Code: Select all


apt list --installed grub*
Listing... Done
grub-common/stable,stable-security,now 2.06-13+deb12u1 amd64 [installed]
grub-efi-amd64-bin/stable,stable-security,now 2.06-13+deb12u1 amd64 [installed,automatic]
grub-efi-amd64-signed/stable,stable-security,now 1+2.06+13+deb12u1 amd64 [installed,automatic]
grub-efi-amd64/stable,stable-security,now 2.06-13+deb12u1 amd64 [installed]
grub2-common/stable,stable-security,now 2.06-13+deb12u1 amd64 [installed,automatic]


Mint Virginia installed grub

Code: Select all

apt list --installed grub*
Listing... Done
grub-common/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed]
grub-efi-amd64-bin/jammy-updates,jammy-security,now 2.06-2ubuntu14.4 amd64 [installed]
grub-efi-amd64-signed/jammy-updates,jammy-security,now 1.187.6+2.06-2ubuntu14.4 amd64 [installed]
grub-gfxpayload-lists/jammy,now 0.7 amd64 [installed]
grub-pc-bin/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed]
grub-pc/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed]
grub2-common/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed]


User avatar
pbear
Posts: 386
Joined: 2023-08-27 15:05
Location: San Francisco
Has thanked: 2 times
Been thanked: 63 times

Re: Bookworm grub not boot proper to second OS

#8 Post by pbear »

Any particular reason you're running the 6.5 kernel in Mint? If so, maybe upgrading the kernel in Debian will help with the Grub problem. Long shot, though, if there wasn't a particular reason.

Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

Re: Bookworm grub not boot proper to second OS

#9 Post by Augie77 »

pbear wrote: 2024-04-01 14:57 Any particular reason you're running the 6.5 kernel in Mint? If so, maybe upgrading the kernel in Debian will help with the Grub problem. Long shot, though, if there wasn't a particular reason.
Not that I recall, other than it was available in Update Manager so I selected it. I can update Bookworm, which image should I select? Also, I did notice the Bookworm grub.cfg file when viewed in Thunar the icon for the file had an small 'x' on it and the file type was 'unknown'. Is that a problem?

Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

Re: Bookworm grub not boot proper to second OS

#10 Post by Augie77 »

Synaptic only shows available the currently installed kernel, plus earlier versions. I then entered the backports in the repository for Synaptic and still do not see a later release.

I am searching Synaptic for 'linux-image' and 'linux-header'.


backports.png

Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

Re: Bookworm grub not boot proper to second OS

#11 Post by Augie77 »

OK, well I have it now. I needed to add
deb http://deb.debian.org/debian bookworm-backports main
to etc/apt/sources.list.

Those pesky Debian instructions do come in handy. :lol:
I removed the previous two entries for backports from the repository Other Software tab as they caused an error during the terminal update.

I see there is a 6.5.0 and a 6.6.13 available, any suggestions on which one to select? I intend to use Debian as my main OS so I can always boot to it initially and if I ever need to use Mint, I can boot to BIOS and select Mint as the first boot. Still, I would rather find out the issue here and fix it.

Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

Re: Bookworm grub not boot proper to second OS

#12 Post by Augie77 »

When all else fails, and you can no longer blame the OS, or the User...you then look at the BIOS. :lol:

Looking back on the fail error, it was always a memory error, as in it was out of memory. I do not know which of the two below settings fixed the grub boot issue from Debian to Mint, but I suspect it was the Above 4G Decoding, I changed it from Enable to Disable.


Edit: I can't stand a mystery and so not knowing which option was the culprit, I tested further. It seems the memory allocation/address for the onboard Intel graphics processor was the culprit. I changed the Shared Memory for the onboard graphics from 1024m to Auto. After a handful of restarts I am confident this was the issue. The motherboard is an Asrock H670M Pro RS with firmware 14.01 and the feature option was under Advanced/Chipsets.


My thanks to all, and I hope this will help someone in the future.
Last edited by Augie77 on 2024-04-02 01:42, edited 2 times in total.

User avatar
pbear
Posts: 386
Joined: 2023-08-27 15:05
Location: San Francisco
Has thanked: 2 times
Been thanked: 63 times

Re: [Solved] Bookworm grub will not boot proper to second OS

#13 Post by pbear »

Congratulations, well done. The mystery remains of why Mint could boot both but Debian only itself. OTOH, I'd probably be content to make a note to self about the kernel and move on. My understanding, by the way, is that you want to disable backports except when using. No need to remove from sources.list. Commenting it out (placing a # at the beginning of the line) will be sufficient.

As for the kernel, if the issue comes up again in some other context, I'd install 6.5 to match Mint. And don't delete 6.1 until you're sure 6.5 is working well in Debian.

Augie77
Posts: 71
Joined: 2024-03-23 04:05
Has thanked: 19 times
Been thanked: 9 times

Re: [Solved] Bookworm grub will not boot proper to second OS

#14 Post by Augie77 »

pbear wrote: 2024-04-02 01:17 Congratulations, well done. The mystery remains of why Mint could boot both but Debian only itself. OTOH, I'd probably be content to make a note to self about the kernel and move on. My understanding, by the way, is that you want to disable backports except when using. No need to remove from sources.list. Commenting it out (placing a # at the beginning of the line) will be sufficient.

As for the kernel, if the issue comes up again in some other context, I'd install 6.5 to match Mint. And don't delete 6.1 until you're sure 6.5 is working well in Debian.
Sounds like good advice, I only tried backports as I understood that was where to find the later kernels. As it is, Bookworm and my hardware are quite happy on the .iso installed kernel so I will leave it at this kernel version unless, as you mentioned, something goes asunder.

I appreciate the help, many thanks.

Post Reply