LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2021, 03:13 PM   #1
no-windose
Member
 
Registered: Jun 2018
Posts: 94
Blog Entries: 2

Rep: Reputation: Disabled
Cannot boot with current kernel


I cannot boot Linux with the current 5.10 kernel even though it is available on my system.

Code:
# dpkg-query -S vmlinuz
linux-image-5.10.0-9-amd64: /boot/vmlinuz-5.10.0-9-amd64
linux-image-4.9.0-12-amd64: /boot/vmlinuz-4.9.0-12-amd64
#
# uname -r
4.9.0-12-amd64
#
If I try to install kernel 5.10, I get the following warning:

Code:
# apt install linux-image-5.10.0-9-amd64
You are running a kernel (version 4.9.0-12-amd64) and attempting to remove the same version. This can make the system unbootable as it will remove /boot/vmlinuz-4.9.0-12-amd64 and all modules under the directory /lib/modules/4.9.0-12-amd64. This can only be fixed with a copy of the kernel image and the corresponding modules. It is highly recommended to abort the kernel removal unless you are prepared to fix the system after removal.
    Abort kernel removal?
Usually, when I upgrade with apt update && apt upgrade, I get regular kernel updates and I automatically reboot to the newest kernel without getting such a warning.

Does anyone know why I am getting this warning?

Last edited by no-windose; 11-29-2021 at 03:14 PM.
 
Old 11-29-2021, 09:07 PM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
You are currently booted to the 4.9 kernel.
Can you reboot to the 5.10 kernel then do the update?
If not then how about doing a reinstall of the 5.10 kernel packages so it can repair whatever failed that prevents booting to the newer kernel.
 
Old 11-30-2021, 12:55 PM   #3
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Thanks computersavvy. I cannot boot into kernel 5.10 because this option does not appear in my grub.cfg file and I would like to avoid reinstalling the whole system if possible.
 
Old 11-30-2021, 01:32 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
I cannot boot into kernel 5.10 because this option does not appear in my grub.cfg file
open a terminal and run as root
Code:
update-grub
 
Old 11-30-2021, 08:02 PM   #5
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Thanks colorpurple21859. I have already run update-grub to no avail.

I have just found something very strange on my system. I am running Debian Bullseye after having upgraded from Buster, itself upgraded from Stretch.

Code:
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye
However, when I boot and enter the GRUB menu (version 2.04), the only option I get is

Code:
Debian GNU/Linux 9 (stretch)
I am starting to wonder if I haven't made a mess with GRUB as I have both GRUB and GRUB2 packages installed:
Code:
$ aptitude search grub | grep ^i
i A grub-common - GRand Unified Bootloader (common files)
i A grub-pc - GRand Unified Bootloader, version 2 (PC/BIOS version)
i A grub-pc-bin - GRand Unified Bootloader, version 2 (PC/BIOS modules)
i  grub2 - GRand Unified Bootloader, version 2 (dummy package)
i A grub2-common - GRand Unified Bootloader (common files for version 2)
$
Should I remove one of them and which one?

Last edited by no-windose; 11-30-2021 at 08:06 PM.
 
Old 11-30-2021, 08:10 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
post the output of
Code:
ls /boot
ls /lib/modules

Last edited by colorpurple21859; 12-01-2021 at 01:38 AM.
 
Old 12-01-2021, 07:16 AM   #7
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Code:
$ ls /boot
config-4.9.0-12-amd64  initrd.img-4.9.0-12-amd64  System.map-5.10.0-9-amd64
config-5.10.0-9-amd64  initrd.img-5.10.0-9-amd64  vmlinuz-4.9.0-12-amd64
grub                   System.map-4.9.0-12-amd64  vmlinuz-5.10.0-9-amd64
$ 
$ ls /lib/modules
4.9.0-12-amd64  5.10.0-9-amd64
$
 
Old 12-01-2021, 07:50 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
post /boot/grub/grub.cfg and /etc/default/grub
 
Old 12-01-2021, 09:13 AM   #9
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Code:
$ cat /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="8"
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_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  8531969f-2a54-46d3-b30f-eb5205078211
else
  search --no-floppy --fs-uuid --set=root 8531969f-2a54-46d3-b30f-eb5205078211
fi
    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_GB
  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_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  8531969f-2a54-46d3-b30f-eb5205078211
else
  search --no-floppy --fs-uuid --set=root 8531969f-2a54-46d3-b30f-eb5205078211
fi
insmod png
if background_image /usr/share/desktop-base/homeworld-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-8531969f-2a54-46d3-b30f-eb5205078211' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  8531969f-2a54-46d3-b30f-eb5205078211
	else
	  search --no-floppy --fs-uuid --set=root 8531969f-2a54-46d3-b30f-eb5205078211
	fi
	echo	'Loading Linux 5.10.0-9-amd64 ...'
	linux	/boot/vmlinuz-5.10.0-9-amd64 root=UUID=8531969f-2a54-46d3-b30f-eb5205078211 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-5.10.0-9-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8531969f-2a54-46d3-b30f-eb5205078211' {
	menuentry 'Debian GNU/Linux, with Linux 5.10.0-9-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-9-amd64-advanced-8531969f-2a54-46d3-b30f-eb5205078211' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  8531969f-2a54-46d3-b30f-eb5205078211
		else
		  search --no-floppy --fs-uuid --set=root 8531969f-2a54-46d3-b30f-eb5205078211
		fi
		echo	'Loading Linux 5.10.0-9-amd64 ...'
		linux	/boot/vmlinuz-5.10.0-9-amd64 root=UUID=8531969f-2a54-46d3-b30f-eb5205078211 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.10.0-9-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.10.0-9-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-9-amd64-recovery-8531969f-2a54-46d3-b30f-eb5205078211' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  8531969f-2a54-46d3-b30f-eb5205078211
		else
		  search --no-floppy --fs-uuid --set=root 8531969f-2a54-46d3-b30f-eb5205078211
		fi
		echo	'Loading Linux 5.10.0-9-amd64 ...'
		linux	/boot/vmlinuz-5.10.0-9-amd64 root=UUID=8531969f-2a54-46d3-b30f-eb5205078211 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.10.0-9-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-12-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-12-amd64-advanced-8531969f-2a54-46d3-b30f-eb5205078211' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  8531969f-2a54-46d3-b30f-eb5205078211
		else
		  search --no-floppy --fs-uuid --set=root 8531969f-2a54-46d3-b30f-eb5205078211
		fi
		echo	'Loading Linux 4.9.0-12-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-12-amd64 root=UUID=8531969f-2a54-46d3-b30f-eb5205078211 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-12-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-12-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-12-amd64-recovery-8531969f-2a54-46d3-b30f-eb5205078211' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  8531969f-2a54-46d3-b30f-eb5205078211
		else
		  search --no-floppy --fs-uuid --set=root 8531969f-2a54-46d3-b30f-eb5205078211
		fi
		echo	'Loading Linux 4.9.0-12-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-12-amd64 root=UUID=8531969f-2a54-46d3-b30f-eb5205078211 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-12-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 'Ubuntu 20.04 LTS (20.04) (on /dev/sda5)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-73d853bc-5a6f-4336-ab39-7316eabb5096' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  73d853bc-5a6f-4336-ab39-7316eabb5096
	else
	  search --no-floppy --fs-uuid --set=root 73d853bc-5a6f-4336-ab39-7316eabb5096
	fi
	linux /boot/vmlinuz-5.4.0-29-generic root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro nouveau.noaccel=1 quiet splash $vt_handoff
	initrd /boot/initrd.img-5.4.0-29-generic
}
submenu 'Advanced options for Ubuntu 20.04 LTS (20.04) (on /dev/sda5)' $menuentry_id_option 'osprober-gnulinux-advanced-73d853bc-5a6f-4336-ab39-7316eabb5096' {
	menuentry 'Ubuntu (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-29-generic--73d853bc-5a6f-4336-ab39-7316eabb5096' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  73d853bc-5a6f-4336-ab39-7316eabb5096
		else
		  search --no-floppy --fs-uuid --set=root 73d853bc-5a6f-4336-ab39-7316eabb5096
		fi
		linux /boot/vmlinuz-5.4.0-29-generic root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro nouveau.noaccel=1 quiet splash $vt_handoff
		initrd /boot/initrd.img-5.4.0-29-generic
	}
	menuentry 'Ubuntu, with Linux 5.4.0-29-generic (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-29-generic--73d853bc-5a6f-4336-ab39-7316eabb5096' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  73d853bc-5a6f-4336-ab39-7316eabb5096
		else
		  search --no-floppy --fs-uuid --set=root 73d853bc-5a6f-4336-ab39-7316eabb5096
		fi
		linux /boot/vmlinuz-5.4.0-29-generic root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro nouveau.noaccel=1 quiet splash $vt_handoff
		initrd /boot/initrd.img-5.4.0-29-generic
	}
	menuentry 'Ubuntu, with Linux 5.4.0-29-generic (recovery mode) (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-29-generic-root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro recovery nomodeset nouveau.noaccel=1-73d853bc-5a6f-4336-ab39-7316eabb5096' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  73d853bc-5a6f-4336-ab39-7316eabb5096
		else
		  search --no-floppy --fs-uuid --set=root 73d853bc-5a6f-4336-ab39-7316eabb5096
		fi
		linux /boot/vmlinuz-5.4.0-29-generic root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro recovery nomodeset nouveau.noaccel=1
		initrd /boot/initrd.img-5.4.0-29-generic
	}
	menuentry 'Ubuntu, with Linux 5.4.0-26-generic (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-26-generic--73d853bc-5a6f-4336-ab39-7316eabb5096' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  73d853bc-5a6f-4336-ab39-7316eabb5096
		else
		  search --no-floppy --fs-uuid --set=root 73d853bc-5a6f-4336-ab39-7316eabb5096
		fi
		linux /boot/vmlinuz-5.4.0-26-generic root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro nouveau.noaccel=1 quiet splash $vt_handoff
		initrd /boot/initrd.img-5.4.0-26-generic
	}
	menuentry 'Ubuntu, with Linux 5.4.0-26-generic (recovery mode) (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.4.0-26-generic-root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro recovery nomodeset nouveau.noaccel=1-73d853bc-5a6f-4336-ab39-7316eabb5096' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  73d853bc-5a6f-4336-ab39-7316eabb5096
		else
		  search --no-floppy --fs-uuid --set=root 73d853bc-5a6f-4336-ab39-7316eabb5096
		fi
		linux /boot/vmlinuz-5.4.0-26-generic root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro recovery nomodeset nouveau.noaccel=1
		initrd /boot/initrd.img-5.4.0-26-generic
	}
	menuentry 'Ubuntu, with Linux 4.15.0-91-generic (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-91-generic--73d853bc-5a6f-4336-ab39-7316eabb5096' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  73d853bc-5a6f-4336-ab39-7316eabb5096
		else
		  search --no-floppy --fs-uuid --set=root 73d853bc-5a6f-4336-ab39-7316eabb5096
		fi
		linux /boot/vmlinuz-4.15.0-91-generic root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro nouveau.noaccel=1 quiet splash $vt_handoff
		initrd /boot/initrd.img-4.15.0-91-generic
	}
	menuentry 'Ubuntu, with Linux 4.15.0-91-generic (recovery mode) (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.15.0-91-generic-root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro recovery nomodeset nouveau.noaccel=1-73d853bc-5a6f-4336-ab39-7316eabb5096' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos5'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  73d853bc-5a6f-4336-ab39-7316eabb5096
		else
		  search --no-floppy --fs-uuid --set=root 73d853bc-5a6f-4336-ab39-7316eabb5096
		fi
		linux /boot/vmlinuz-4.15.0-91-generic root=UUID=73d853bc-5a6f-4336-ab39-7316eabb5096 ro recovery nomodeset nouveau.noaccel=1
		initrd /boot/initrd.img-4.15.0-91-generic
	}
}

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

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###
Code:
$ cat  /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=8
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
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"
 
Old 12-01-2021, 09:18 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
edit /etc/default/grub and change GRUB_DEFAULT=8 to GRUB_DEFAULT=0
rerun update-grub
 
Old 12-01-2021, 12:41 PM   #11
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
I have just set GRUB_DEFAULT to 0 and rerun update-grub although I wonder what this is going to change regarding my problem.
 
Old 12-01-2021, 01:05 PM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
You didn't mention anything about dual booting debian and ubuntu, such details are needed to properly diagnose the problem. If the problem isn't fixed, you're most likely booting debian from ubuntu grub bootloader. Run
Code:
sudo update-grub
from ubuntu.
If running update-grub from ubuntu doesn't fix the problem, post the contents of ubuntu /boot/grub/grub.cfg and /etc/default/grub.

Last edited by colorpurple21859; 12-01-2021 at 01:42 PM.
 
Old 12-01-2021, 01:54 PM   #13
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Thanks colorpurple21859. I cannot boot Ubuntu from the GRUB menu. I get the following error message if I try:

Code:
error: no such device: 3278bcbd-etc...
error: file `/boot/vmlinuz-4.15-0-99-generic' not found.
error: you need to load the kernel first.

Press any key to continue...
I think "device 3278bcbd-etc..." refers to the ID of a particular hard drive. Over the years, I replaced my hard disk drive with a solid state drive. I did so by copying the whole old drive to the new one with the command dd. By doing so, I must have copied the identity of the old drive onto the grub.cfg file of the new drive. Therefore, I must now be booting with a wrong ID for my new drive.

Last edited by no-windose; 12-01-2021 at 01:57 PM.
 
Old 12-01-2021, 02:05 PM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
boot into debian and post the output of
Code:
efibootmgr
 
Old 12-01-2021, 02:35 PM   #15
no-windose
Member
 
Registered: Jun 2018
Posts: 94

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Code:
# efibootmgr
EFI variables are not supported on this system.
 
  


Reply

Tags
kernel, upgrade



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic trying to boot Slackware-current on an external SSD (/ on /dev/sdc5) with kernel-huge (5.15.3 and 5.15.4) Didier Spaier Slackware 9 11-22-2021 12:30 AM
cannot restart, cannot boot grub, cannot download live CD bkelly Linux - Newbie 14 04-29-2018 04:31 PM
[SOLVED] Slackware 14.2 glibc-2.23 vs Slackware Current glibc-2.24 and the Current 4.4.17 Kernel kjhambrick Slackware 10 08-13-2016 01:00 AM
Cannot boot -current ... have done something stupid chexmix Slackware 26 06-02-2011 10:09 PM
/boot/boot/boot/boot/boot/ muddywaters SUSE / openSUSE 1 09-10-2005 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration