Pb DualBoot Ubuntu20.04 / Debian 7

Tags: #<Tag:0x00007f63e57bb308> #<Tag:0x00007f63e57bb218>

Bonjour,

Sur un Samsung R719 où Tangostudio (basé sur Debian 7) était installé, j’ai installé à côté Ubuntu 20.04.

Depuis impossible de démarrer Debian. Il est bien affiché dans Grub, mais si je le sélectionne, c’est l’écran noir et rien ne se passe… Du coup je dois directement éteindre à l’interrupteur.
Mais c’est ok pour Ubuntu.

Voici mon info-boot: https://paste.ubuntu.com/p/ctM9QRgdvC/

J’ai cherché sur le net des solutions, mais là, je crois que ça dépasse mes quelques connaissances
J’ai essayé quelques commandes
os-prober qui détecte les 2 os
update-grub
mount /dev/sda1 /mnt , mais ça change rien…

Merci pour votre aide

Bonjour et bienvenue sur le forum,

Qu’attendais-tu de cette commande ?
Est-ce que tu peux nous donner le contenu du fichier /boot/grub/grub.cfg ?

Bonjour Almtesh,

et merci pour ta réponse.

Pour la commande:
mount /dev/sda1 /mnt

j’espérais que ça règle le problème. En effet, Debian apparaissant dans le Grub je pensais que c’est peut-être juste le grub qui ne trouve pas le chemin pour démarrer Debian. ( Je connais pas beaucoup de choses en informatique…). Peut-être à cause que la partition où Debian se situe n’est pas montée.
Telle était ma pensée.

Voici le contenu du fichier /boot/grub/grub.cfg qui se trouve dans Ubuntu

#
# 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_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
else
  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
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=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=hidden
    set timeout=10
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 10 ; 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 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 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
	else
	  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
	fi
	linux	/boot/vmlinuz-5.8.0-38-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-5.8.0-38-generic
}
submenu 'Options avancées pour Ubuntu' $menuentry_id_option 'gnulinux-advanced-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
	menuentry 'Ubuntu, avec Linux 5.8.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-38-generic-advanced-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
		else
		  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
		fi
		echo	'Chargement de Linux 5.8.0-38-generic…'
		linux	/boot/vmlinuz-5.8.0-38-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.8.0-38-generic
	}
	menuentry 'Ubuntu, avec Linux 5.8.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-38-generic-recovery-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
		else
		  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
		fi
		echo	'Chargement de Linux 5.8.0-38-generic…'
		linux	/boot/vmlinuz-5.8.0-38-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro recovery nomodeset dis_ucode_ldr 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.8.0-38-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-42-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-42-generic-advanced-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
		else
		  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
		fi
		echo	'Chargement de Linux 5.4.0-42-generic…'
		linux	/boot/vmlinuz-5.4.0-42-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-42-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-42-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-42-generic-recovery-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
		else
		  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
		fi
		echo	'Chargement de Linux 5.4.0-42-generic…'
		linux	/boot/vmlinuz-5.4.0-42-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro recovery nomodeset dis_ucode_ldr 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-42-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/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
	else
	  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
	fi
	knetbsd	/boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
	else
	  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux 7 (wheezy) (sur /dev/sda1)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-4c64dd1f-26b4-4035-8d94-a931a7e17fb1' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  4c64dd1f-26b4-4035-8d94-a931a7e17fb1
	else
	  search --no-floppy --fs-uuid --set=root 4c64dd1f-26b4-4035-8d94-a931a7e17fb1
	fi
	linux /boot/vmlinuz-3.2.0-4-realtime-686-pae root=UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 ro initrd=/install/initrd.gz quiet
	initrd /boot/initrd.img-3.2.0-4-realtime-686-pae
}
submenu 'Options avancées pour Debian GNU/Linux 7 (wheezy) (sur /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-4c64dd1f-26b4-4035-8d94-a931a7e17fb1' {
	menuentry 'Debian GNU/Linux, avec Linux 3.2.0-4-realtime-686-pae (sur /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-realtime-686-pae--4c64dd1f-26b4-4035-8d94-a931a7e17fb1' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  4c64dd1f-26b4-4035-8d94-a931a7e17fb1
		else
		  search --no-floppy --fs-uuid --set=root 4c64dd1f-26b4-4035-8d94-a931a7e17fb1
		fi
		linux /boot/vmlinuz-3.2.0-4-realtime-686-pae root=UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 ro initrd=/install/initrd.gz quiet
		initrd /boot/initrd.img-3.2.0-4-realtime-686-pae
	}
	menuentry 'Debian GNU/Linux, avec Linux 3.2.0-4-realtime-686-pae (mode de dépannage) (sur /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-realtime-686-pae-root=UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 ro single initrd=/install/initrd.gz-4c64dd1f-26b4-4035-8d94-a931a7e17fb1' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  4c64dd1f-26b4-4035-8d94-a931a7e17fb1
		else
		  search --no-floppy --fs-uuid --set=root 4c64dd1f-26b4-4035-8d94-a931a7e17fb1
		fi
		linux /boot/vmlinuz-3.2.0-4-realtime-686-pae root=UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 ro single initrd=/install/initrd.gz
		initrd /boot/initrd.img-3.2.0-4-realtime-686-pae
	}
}

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 ###
### 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 ###

Par ailleurs, j’ai accès aux fichiers de Debian via Ubuntu. C’est à dire que j’ai accès également au grub.cfg de Debian. Mais je ne sais pas si c’est pertinent.

Alors, je ne sais pas si c’est normal, mais tu as une option de noyau bizarre pour les boot de Debian :

Je ne crois pas que ça fonctionne trop de mettre initrd=/install/initrd.gz, surtout quand tu as la ligne en dessous.
Essaie à tout hasard de retirer cette option dans le fichier pour voir si ça démarre…

En fait j’ai essayé le initrd=/install/initrd.gzsur le conseil d’une personne du forum Ubuntu pour essayé de réparer la machine.

Ca déconnait déjà avant. Je vais le virer du coup.

Et merci pour faire les boîtes.
Pour l'instant j'ai juste trouver en écrivant
 /```plain au début
 et /``` à  la fin. 

Est-ce qu'il y a un autre moyen de les faire?

J'essaie d'approfondir un peu mes connaissances en informatique 


















Merci beaucoup!

J’ai essayé de retirer cette option comme ceci:
Quand le menu du Grub s’affiche je déplace la ligne en surbrillance pour choisir mon OS et là j’appuie sur E pour accéder à un texte où j’ai effacé initrd=/install/initrd.gz.

C’est comme ça que j’avais rentré cette commande.

Mais ça marche pas… je retrouve toujours cette info dans le /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_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
else
  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
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=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=hidden
    set timeout=10
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 10 ; 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 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 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
	else
	  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
	fi
	linux	/boot/vmlinuz-5.8.0-38-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-5.8.0-38-generic
}
submenu 'Options avancées pour Ubuntu' $menuentry_id_option 'gnulinux-advanced-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
	menuentry 'Ubuntu, avec Linux 5.8.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-38-generic-advanced-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
		else
		  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
		fi
		echo	'Chargement de Linux 5.8.0-38-generic…'
		linux	/boot/vmlinuz-5.8.0-38-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.8.0-38-generic
	}
	menuentry 'Ubuntu, avec Linux 5.8.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-38-generic-recovery-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
		else
		  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
		fi
		echo	'Chargement de Linux 5.8.0-38-generic…'
		linux	/boot/vmlinuz-5.8.0-38-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro recovery nomodeset dis_ucode_ldr 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.8.0-38-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-42-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-42-generic-advanced-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
		else
		  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
		fi
		echo	'Chargement de Linux 5.4.0-42-generic…'
		linux	/boot/vmlinuz-5.4.0-42-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro  quiet splash $vt_handoff
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-42-generic
	}
	menuentry 'Ubuntu, avec Linux 5.4.0-42-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-42-generic-recovery-b495b1c3-f805-48f4-8921-387ef03ed7cb' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
		else
		  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
		fi
		echo	'Chargement de Linux 5.4.0-42-generic…'
		linux	/boot/vmlinuz-5.4.0-42-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro recovery nomodeset dis_ucode_ldr 
		echo	'Chargement du disque mémoire initial…'
		initrd	/boot/initrd.img-5.4.0-42-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/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
	else
	  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
	fi
	knetbsd	/boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  b495b1c3-f805-48f4-8921-387ef03ed7cb
	else
	  search --no-floppy --fs-uuid --set=root b495b1c3-f805-48f4-8921-387ef03ed7cb
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux 7 (wheezy) (sur /dev/sda1)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-4c64dd1f-26b4-4035-8d94-a931a7e17fb1' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  4c64dd1f-26b4-4035-8d94-a931a7e17fb1
	else
	  search --no-floppy --fs-uuid --set=root 4c64dd1f-26b4-4035-8d94-a931a7e17fb1
	fi
	linux /boot/vmlinuz-3.2.0-4-realtime-686-pae root=UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 ro initrd=/install/initrd.gz quiet
	initrd /boot/initrd.img-3.2.0-4-realtime-686-pae
}
submenu 'Options avancées pour Debian GNU/Linux 7 (wheezy) (sur /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-4c64dd1f-26b4-4035-8d94-a931a7e17fb1' {
	menuentry 'Debian GNU/Linux, avec Linux 3.2.0-4-realtime-686-pae (sur /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-realtime-686-pae--4c64dd1f-26b4-4035-8d94-a931a7e17fb1' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  4c64dd1f-26b4-4035-8d94-a931a7e17fb1
		else
		  search --no-floppy --fs-uuid --set=root 4c64dd1f-26b4-4035-8d94-a931a7e17fb1
		fi
		linux /boot/vmlinuz-3.2.0-4-realtime-686-pae root=UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 ro initrd=/install/initrd.gz quiet
		initrd /boot/initrd.img-3.2.0-4-realtime-686-pae
	}
	menuentry 'Debian GNU/Linux, avec Linux 3.2.0-4-realtime-686-pae (mode de dépannage) (sur /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-realtime-686-pae-root=UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 ro single initrd=/install/initrd.gz-4c64dd1f-26b4-4035-8d94-a931a7e17fb1' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  4c64dd1f-26b4-4035-8d94-a931a7e17fb1
		else
		  search --no-floppy --fs-uuid --set=root 4c64dd1f-26b4-4035-8d94-a931a7e17fb1
		fi
		linux /boot/vmlinuz-3.2.0-4-realtime-686-pae root=UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 ro single initrd=/install/initrd.gz
		initrd /boot/initrd.img-3.2.0-4-realtime-686-pae
	}
}

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 ###
### 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 ###

Saurais-tu comment je peux enlever cette commande ?

Bonjour

Avec les privilèges du compte root
lance la ligne de commande suivante :

sed -i '#initrd=/install/initrd.gz ##' /boot/grub/grub.cfg

Debian 7 est obsolète depuis longtemps et n’est plus maintenu.

Et en mode dépannage via le sous-menu options avancées ?

C’est le rapport de bootinfoscript ? Je ne peux pas accéder à ce site d’où je suis.

Visiblement il vaut mieux éviter les conseils des utilisateurs d’Ubuntu concernant Debian.

Impossible, l’effet de l’édition dans GRUB est volatil, cela n’enregistre rien.
Pour modifier le grub.cfg d’Ubuntu, il faut

  • soit l’éditer à la main,

  • soit éditer le grub.cfg de Debian et exécuter update-grub dans Ubuntu,

  • soit éditer /etc/default/grub de Debian, exécuter update-grub dans Debian (via chroot si Debian ne démarre pas) et exécuter update-grub dans Ubuntu

Il faut faire la même chose pour supprimer le paramètre de façon pérenne.

Ceci dit, à ma connaissance le paramètre initrd= est sans effet avec GRUB (qui utilise la commande initrd à la place pour spécifier l’initramfs), il ne sert qu’avec d’autres chargeurs ou quand on lance le noyau en mode « stub EFI », mais il faut alors que le fichier spécifié soit accessible via les services UEFI, en pratique s’il est dans la partition système EFI (FAT) et non dans la partition racine (ext4 ou autre système de fichiers Linux).

Bonjour MicP,

j’ai exécuté la ligne de commande mais étrangement le initrd=/install/initrd.gz
est toujours dans le fichier /boot/grub/grub.cfg
Même après un redémarrage de l’ordi.

Bonjour,

Tangostudio aussi mais ça marchait super sur mon pc comme studio d’enregistrement et faire de la musique.

Pareil, même résultat

Il me semble bien que c’est ça. Je le colle ici


boot-repair-4ppa125                                              [20210117_1117]

============================= Boot Repair Summary ==============================



Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0 has been opened read-only.

Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub2 of
sda3 into the MBR of sda.
Additional repair will be performed: unhide-bootmenu-10s



========================= Reinstall the grub2 of sda3 ==========================

grub-install --version
grub-install (GRUB) 2.04-1ubuntu26.7

==> Reinstall the GRUB of sda3 into the MBR of sda

grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.8.0-38-generic
Found initrd image: /boot/initrd.img-5.8.0-38-generic
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found initrd image: /boot/initrd.img-5.4.0-42-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Debian GNU/Linux 7 (wheezy) on /dev/sda1

Unhide GRUB boot menu in sda3/boot/grub/grub.cfg

Unhide GRUB boot menu in sda1/boot/grub/grub.cfg

Le démarrage de l'ordinateur a été correctement réparé.

Vous pouvez maintenant redémarrer votre ordinateur.


============================ Boot Info After Repair ============================

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos3)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Debian GNU/Linux 7 (wheezy)
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/core.img

sda2: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img


================================ 2 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on sda3
OS#2:   Debian GNU/Linux 7 (wheezy) on sda1

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.8.0-38-generic root=UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb ro quiet splash vt.handoff=7


===================================== UEFI =====================================

This installed-session is not in EFI-mode.



============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda3	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: is-os,	32, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios

Partitions info (2/3): _________________________________________________________

sda3	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda3	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda1	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 298.9 GiB, 320072933376 bytes, 625142448 sectors
Disk identifier: 0x000e341e
      Boot     Start       End   Sectors   Size Id Type
sda1  *         2048 527345797 527343750 251.5G 83 Linux
sda2       608514046 625141759  16627714     8G  5 Extended
sda3       527347712 608511999  81164288  38.7G 83 Linux
sda5       608514048 625141759  16627712     8G 82 Linux swap / Solaris
Partition table entries are not in disk order.

parted -lm (filtered): _________________________________________________________

sda:320GB:scsi:512:512:msdos:ATA Hitachi HCC54323:;
1:1049kB:270GB:270GB:ext4::boot;
3:270GB:312GB:41.6GB:ext4::;
2:312GB:320GB:8513MB:::;
5:312GB:320GB:8513MB:linux-swap(v1)::;
sr0:2785MB:scsi:2048:2048:mac:Slimtype DVD A DS8A3S:;
1:2048B:6143B:4096B::Apple:;
2:2569MB:2573MB:4063kB::EFI:;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                    PARTLABEL
sda                                                                                                                
├─sda1 ext4     4c64dd1f-26b4-4035-8d94-a931a7e17fb1 000e341e-01                                                   
├─sda2                                               000e341e-02                                                   
├─sda3 ext4     b495b1c3-f805-48f4-8921-387ef03ed7cb 000e341e-03                                                   
└─sda5 swap     7a161357-f293-4c9b-8e09-c53c57cc4d70 000e341e-05                                                   

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
sda1              192.4G  17% /mnt/boot-sav/sda1
sda3               29.1G  18% /

Mount options: __________________________________________________________________

sda1              rw,relatime
sda3              rw,relatime,errors=remount-ro

====================== sda1/boot/grub/grub.cfg (filtered) ======================

Debian GNU/Linux, avec Linux 3.2.0-4-realtime-686-pae
Debian GNU/Linux, avec Linux 3.2.0-4-realtime-686-pae (mode de dépannage)
### END /etc/grub.d/30_os-prober ###

========================== sda1/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=7a161357-f293-4c9b-8e09-c53c57cc4d70 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

======================= sda1/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="initrd=/install/initrd.gz"

==================== sda1: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
  80,242313385 = 86,159527936   boot/grub/core.img                             1
  32,130065918 = 34,499395584   boot/vmlinuz-3.2.0-4-realtime-686-pae          1
  32,130065918 = 34,499395584   vmlinuz                                        1
  95,302772522 = 102,330572800  boot/initrd.img-3.2.0-4-realtime-686-pae       1

===================== sda1: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 5977 Jul  3  2013 10_linux
-rwxr-xr-x 1 root root 6335 Jul  3  2013 20_linux_xen
-rwxr-xr-x 1 root root 6522 Jul  3  2013 30_os-prober
-rwxr-xr-x 1 root root  214 Jul  3  2013 40_custom
-rwxr-xr-x 1 root root   95 Jul  3  2013 41_custom

====================== sda3/boot/grub/grub.cfg (filtered) ======================

Ubuntu   b495b1c3-f805-48f4-8921-387ef03ed7cb
Ubuntu, with Linux 5.8.0-38-generic   b495b1c3-f805-48f4-8921-387ef03ed7cb
Ubuntu, with Linux 5.4.0-42-generic   b495b1c3-f805-48f4-8921-387ef03ed7cb
Debian GNU/Linux 7 (wheezy) (on sda1)   4c64dd1f-26b4-4035-8d94-a931a7e17fb1
Debian GNU/Linux, avec Linux 3.2.0-4-realtime-686-pae (on sda1)   4c64dd1f-26b4-4035-8d94-a931a7e17fb1
Debian GNU/Linux, avec Linux 3.2.0-4-realtime-686-pae (mode de dépannage) (on sda1)   osprober-gnulinux-/boot/vmlinuz-3.2.0-4-realtime-686-pae-root=UUID=4c64dd1f-26b4-4035-8d94-a931a7e17fb1 ro single initrd=/install/initrd.gz-4c64dd1f-26b4-4035-8d94-a931a7e17fb1
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda3/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=b495b1c3-f805-48f4-8921-387ef03ed7cb /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=7a161357-f293-4c9b-8e09-c53c57cc4d70 none            swap    sw              0       0

======================= sda3/etc/default/grub (filtered) =======================

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

==================== sda3: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 266,209026337 = 285,839765504  boot/grub/grub.cfg                             1
 285,873947144 = 306,954813440  boot/grub/i386-pc/core.img                     1
 257,030532837 = 275,984433152  boot/vmlinuz                                   1
 254,251094818 = 273,000034304  boot/vmlinuz-5.4.0-42-generic                  1
 257,030532837 = 275,984433152  boot/vmlinuz-5.8.0-38-generic                  1
 254,251094818 = 273,000034304  boot/vmlinuz.old                               1
 257,314098358 = 276,288909312  boot/initrd.img                                2
 259,216476440 = 278,331572224  boot/initrd.img-5.4.0-42-generic               3
 257,314098358 = 276,288909312  boot/initrd.img-5.8.0-38-generic               2
 259,216476440 = 278,331572224  boot/initrd.img.old                            3

===================== sda3: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 17622 Nov 13 00:15 10_linux
-rwxr-xr-x 1 root root 42359 Nov 13 00:15 10_linux_zfs
-rwxr-xr-x 1 root root 12894 Jul 31 02:34 20_linux_xen
-rwxr-xr-x 1 root root 12059 Jul 31 02:34 30_os-prober
-rwxr-xr-x 1 root root  1424 Jul 31 02:34 30_uefi-firmware
-rwxr-xr-x 1 root root   214 Jul 31 02:34 40_custom
-rwxr-xr-x 1 root root   216 Jul 31 02:34 41_custom

Ca semble judicieux!

En tout cas, c’est ce que j’avais fait. Peut-être la commande était là auparavant, aucune idée.
Mais je crois également que cela n’a pas d’incidence. Le problème était déjà là avant ma modif.

Ce qui m’intrigue un peu malgré tout dans mon bootinfo c’est la ligne suivante:

==================== sda1: Location of files loaded by Grub ====================

       GiB - GB             File                                 Fragment(s)
        ?? = ??             boot/grub/grub.cfg                             1

Et enfin j’ai un peu l’impression que le grub n’est pas « rattaché » à Debian. En effet, Debian apparaît bien dans le grub, mais quand je le sélectionne le grub n’amorce pas Debian et ça tombe dans le vide, comme si y avait pas de lien.

Merci pour ton aide

Vraiment rien, aucune ligne de texte affichée à aucun moment ? Ça voudrait dire que le noyau ne se lance pas du tout ou plante très tôt.

Tu pourrais essayer de passer par le GRUB de Debian/Tangostudio :
Au menu de GRUB d’Ubuntu, appuyer sur la touche « c » pour lancer le shell de GRUB (en qwerty) et exécuter les commandes suivantes :

set root=hd0,msdos1
multiboot /boot/grub/core.img
boot

Si tout se passe bien cela devrait afficher le menu de GRUB de Debian à partir duquel tu pourras essayer de lancer le noyau Debian.

Que nenni.
C’est en fait le même résultat.

Par contre, j’ ai essayé avec Rescatux 0.73, un réparateur de grub. page de supergrubdisk.org

Ça ne résoud pas le probleme mais du coup, j’ai pu choisir via le cd de Rescatux sur quelle partition je voulais booter. Après le redémarrage, c’est le grub de Tango Studio qui s’est ouvert, sans que Ubuntu ne soit cité, mais j’ai pu y réaccéder.
J’ai refait la manip avec Rescatux et là j’ai pu retrouver Ubuntu.

Pas très confortable, mais ça peut me suffire. Je voulais juste un peu pratiquer avec Ubuntu, et je n’utilise pas Tango Studio tous les jours.

Mais je suis ouvert si tu as d’autres idées. Si ça marchait correctement, ça me conviendrait également!

Bonjour à tous,

voilà comment j’ai pu résoudre mon problème, ayant auparavant pu ouvrir Debian ( Tango Studio) avec Rescatux
"
Démarre Tango Studio et ouvre un terminal.
On fait une copie de sauvegarde du fichier /etc/grub.d/40_custom

sudo cp /etc/grub.d/40_custom /etc/grub.d/40_custom-back

On va editer ce fichier pour y ajouter quelques lignes sans supprimer celles qui existent. Si tu as gedit installé tu peux le faire avec gedit admin.

gedit admin:////etc/grub.d/40_custom

Sinon tu édites le fichier avec nano

sudo nano /etc/grub.d/40_custom

Voici les lignes qu’il faut ajouter:

menuentry "Ubuntu" {
set root=(hd0,3)
chainloader +1
}

On enregistre la modification.
On réinstalle grub de Tango Studio sur le mbr du disque

sudo grub-install /dev/sda

On met à jour grub

sudo update-grub

Maintenant redémarre, tu devrais avoir grub de Tango Studio avec un menu supplémentaire pour amorcer Ubuntu.
"
Au démarrage j’ai le grub de Tango Studio avec effectivement une ligne en plus indiquant Ubuntu. Et quand je choisis ce dernier je tombe ensuite sur le grub d’Ubuntu.

Merci pour votre engagement!

Tu as donc fait l’inverse (chaîner GRUB d’Ubuntu à partir de GRUB de Tangostudio) de ce qu’on avait essayé avant (chaîner GRUB de Tangostudio à partir de GRUB d’Ubuntu) et qui n’avait pas marché. Il pourrait y avoir une incompatibilité bizarre entre le GRUB d’Ubuntu et le noyau de Tangostudio.

Quelques commentaires/questions :

Un simple update-grub depuis Tangostudio avec os-prober présent et activé n’aurait-il pas suffi pour ajouter Ubuntu au menu de GRUB ?

set root=(hd0,3)
chainloader +1

ne marche que si tu as booté depuis ce disque (sinon le disque ne sera pas hd0) et si GRUB d’Ubuntu a été installé dans le secteur d’amorce de la partition /dev/sda3. Or le rapport que tu avais publié indique que ce n’est pas le cas (« Boot sector info » est vide) :

sda3: ________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

Tu as donc dû faire d’autres choses que tu n’as pas mentionnées pour installer GRUB d’Ubuntu dans /dev/sda3, par exemple avec cette commande depuis Ubuntu :

grub-install --force /dev/sda3

La partition contient un système de fichiers ext4 qui ne permet pas l’embarquage (embedding) de la core image de GRUB et force l’utilisation de listes de blocs par la boot image pour charger le fichier qui contient la core image (d’où l’option --force). Cette configuration est fragile car les blocs alloués à un fichier peuvent changer.

En principe, il serait plus robuste d’utiliser la commande « multiboot » de GRUB pour charger directement la core image de GRUB d’Ubuntu depuis GRUB de Tangostudio :

multiboot (hd0,msdos3)/boot/grub/i386-pc/core.img