Kernel panic au reboot suite à mise à jour. Le sujet est résolu

Demande d'aide : c'est ici.
Répondre
tony
Membre
Membre
Messages : 184
Inscription : 10 juil. 2023, 00:54
Status : Hors-ligne

diesel a écrit : 14 févr. 2024, 17:50 PS3 : non.
comme l'appui sur "E" ne donne rien chez toi tu ne peux accéder à ce script ( je suppose qu'il s'agit d'un script sans en être certain ) . Normalement l'appui sur "E" se fait au moment où apparaît le menu de grub , et comme dans ton cas il n'apparaît pas : cqfd . Par contre j'ai testé cette méthode très simple et ça marche .

Tant que j'étais dans le démarrage j'en ai profité pour me documenter à ce sujet et je vais tenter d'utiliser une boule de cristal : peut-être que la non apparition de ce menu est liée au fait que la 1ère étape appelée BIOS POST selon https://opensource.com/article/17/2/lin ... nd-startup a échoué à cause du bogue lié à la prise en charge de l'alimentation des cartes nvidia trop anciennes ( cf lien ci-dessus ) , et le processus de démarrage s'est arrêté :
When IBM designed the first PC back in 1981, BIOS was designed to initialize the hardware components. POST is the part of BIOS whose task is to ensure that the computer hardware functioned correctly. If POST fails, the computer may not be usable and so the boot process does not continue.

Si tu en étais resté à cette étape ça pourrait expliquer que le menu grub n'apparaît pas . Je ne prendrai aucun pari sur ma théorie juste fignolée pour que ça tombe bien . En tout cas ça me plaît bien .

ps : solution ( ou contournement ? ) du bogue ici https://www.debian-fr.org/t/bug-kernel- ... 5/89535/13 ---> le post , amélioré par son auteur , a changé de place https://www.debian-fr.org/t/bug-kernel- ... 5/89535/15
Debian 11 / Xfce
PascalHambourg
Contributeur
Contributeur
Messages : 876
Inscription : 05 août 2016, 20:25
Status : Hors-ligne

Je connais deux causes possibles de non-affichage du menu de GRUB :
- la configuration de GRUB dans /etc/default/grub (menu caché, mais l'appui sur une touche devrait le faire apparaître, ou time-out à 0)
- un bug d'affichage du mode graphique sélectionné. Tester en mode texte en décommentant GRUB_TERMINAL=console dans /etc/default/grub
tony
Membre
Membre
Messages : 184
Inscription : 10 juil. 2023, 00:54
Status : Hors-ligne

PascalHambourg a écrit : 14 févr. 2024, 21:08 Je connais deux causes possibles de non-affichage du menu de GRUB :
- la configuration de GRUB dans /etc/default/grub (menu caché, mais l'appui sur une touche devrait le faire apparaître, ou time-out à 0)
- un bug d'affichage du mode graphique sélectionné. Tester en mode texte en décommentant GRUB_TERMINAL=console dans /etc/default/grub
après avoir lu ce post j'ai repris les recherches à propos de ce POST en croisant les sources et hormis une , révisée en 2023 , donc récente , aucune n'indique qu'un test négatif arrête le processus d'amorçage . Celle qui en parle dit ceci :
The computer will continue to boot after the POST, but only if it was successful.
https://www.lifewire.com/what-is-post-2625953 mais le reste de l'article n'est pas aussi catégorique car
This test checks that basic system devices are present and working properly, like the keyboard and other peripheral devices,....
comment imaginer qu'un test négatif du fonctionnement d'un clavier puisse arrêter le processus d'amorçage ? Je vais donc juste retenir que le seul et unique test qui peut arrêter le processus d'amorçage est celui qui montrerait un défaut empêchant la carte graphique de fonctionner correctement , ce qui , en l'espèce , était le cas .

merci pour ces précisions .

ps : j'ai essayé de trouver une explication plus à ma portée car celle donnée plus haut , à partir de "l'initramfs" , en l'état de mes connaissances , ne me parle pas du tout .
Debian 11 / Xfce
Avatar de l’utilisateur
diesel
Membre
Membre
Messages : 162
Inscription : 29 oct. 2022, 22:43
Status : Hors-ligne

Hier matin, j'ai vu passer une mise à jour des drivers nvidia.

Suite à ça, j'ai upgradé mon kernel en 6.1.0-18 et ça marche du tonnerre. :smile:

Amicalement.

Jean-Marie
Avatar de l’utilisateur
diesel
Membre
Membre
Messages : 162
Inscription : 29 oct. 2022, 22:43
Status : Hors-ligne

Puisque le sujet de grub a l'air de vous intéresser, voici copie de mon /etc/default/grub :

Code : Tout sélectionner

# 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_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=quiet
#GRUB_CMDLINE_LINUX_DEFAULT="quiet nosplash"
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"
le contenu du /etc/default/grub.ufc.dist :

Code : Tout sélectionner

# 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 nosplash"
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"
et le contenu de /boot/grub/grub.cfg :

Code : Tout sélectionner

#
# 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 a3bd4c5f-3de3-4441-b7d6-60df08186664
    font="/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_FR
  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=0
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=0
  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 a3bd4c5f-3de3-4441-b7d6-60df08186664
insmod png
if background_image /share/desktop-base/emerald-theme/grub/grub-16x9.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-9fc70383-478c-4c91-956e-11e757ee39b0' {
	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 c1bf9830-c9df-4da0-ac18-ab0796fa13ab
	echo	'Loading Linux 6.1.0-18-amd64 ...'
	linux	/vmlinuz-6.1.0-18-amd64 root=UUID=9fc70383-478c-4c91-956e-11e757ee39b0 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-6.1.0-18-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-9fc70383-478c-4c91-956e-11e757ee39b0' {
	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-9fc70383-478c-4c91-956e-11e757ee39b0' {
		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 c1bf9830-c9df-4da0-ac18-ab0796fa13ab
		echo	'Loading Linux 6.1.0-18-amd64 ...'
		linux	/vmlinuz-6.1.0-18-amd64 root=UUID=9fc70383-478c-4c91-956e-11e757ee39b0 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/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-9fc70383-478c-4c91-956e-11e757ee39b0' {
		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 c1bf9830-c9df-4da0-ac18-ab0796fa13ab
		echo	'Loading Linux 6.1.0-18-amd64 ...'
		linux	/vmlinuz-6.1.0-18-amd64 root=UUID=9fc70383-478c-4c91-956e-11e757ee39b0 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-6.1.0-18-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 6.1.0-17-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-17-amd64-advanced-9fc70383-478c-4c91-956e-11e757ee39b0' {
		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 c1bf9830-c9df-4da0-ac18-ab0796fa13ab
		echo	'Loading Linux 6.1.0-17-amd64 ...'
		linux	/vmlinuz-6.1.0-17-amd64 root=UUID=9fc70383-478c-4c91-956e-11e757ee39b0 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-6.1.0-17-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 6.1.0-17-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-17-amd64-recovery-9fc70383-478c-4c91-956e-11e757ee39b0' {
		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 c1bf9830-c9df-4da0-ac18-ab0796fa13ab
		echo	'Loading Linux 6.1.0-17-amd64 ...'
		linux	/vmlinuz-6.1.0-17-amd64 root=UUID=9fc70383-478c-4c91-956e-11e757ee39b0 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-6.1.0-17-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 ###
### 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 ###
Faites-en bon usage.

Amicalement.

Jean-Marie
Répondre