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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
11-29-2021, 03:13 PM
|
#1
|
Member
Registered: Jun 2018
Posts: 132
Rep: 
|
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.
|
|
|
11-29-2021, 09:07 PM
|
#2
|
Senior Member
Registered: Aug 2016
Posts: 3,345
|
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.
|
|
|
11-30-2021, 12:55 PM
|
#3
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
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.
|
|
|
11-30-2021, 01:32 PM
|
#4
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
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
|
|
|
11-30-2021, 08:02 PM
|
#5
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
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.
|
|
|
11-30-2021, 08:10 PM
|
#6
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
post the output of
Code:
ls /boot
ls /lib/modules
Last edited by colorpurple21859; 12-01-2021 at 01:38 AM.
|
|
|
12-01-2021, 07:16 AM
|
#7
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
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
$
|
|
|
12-01-2021, 07:50 AM
|
#8
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
post /boot/grub/grub.cfg and /etc/default/grub
|
|
|
12-01-2021, 09:13 AM
|
#9
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
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"
|
|
|
12-01-2021, 09:18 AM
|
#10
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
edit /etc/default/grub and change GRUB_DEFAULT=8 to GRUB_DEFAULT=0
rerun update-grub
|
|
|
12-01-2021, 12:41 PM
|
#11
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
I have just set GRUB_DEFAULT to 0 and rerun update-grub although I wonder what this is going to change regarding my problem.
|
|
|
12-01-2021, 01:05 PM
|
#12
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
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 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.
|
|
|
12-01-2021, 01:54 PM
|
#13
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
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.
|
|
|
12-01-2021, 02:05 PM
|
#14
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,843
|
boot into debian and post the output of
|
|
|
12-01-2021, 02:35 PM
|
#15
|
Member
Registered: Jun 2018
Posts: 132
Original Poster
Rep: 
|
Code:
# efibootmgr
EFI variables are not supported on this system.
|
|
|
All times are GMT -5. The time now is 10:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|