Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 05/06/2021, à 09:36

bk

GRUB (ubuntu 20.10) invisible au démarrage

Bonjour, le grub n'est pas affiché au démarrage , j'ai essayé la solution

GRUB_TERMINAL=console

comme indiqué sur ce forum https://forum.ubuntu-fr.org/viewtopic.php?id=2058060 et sur d'autres en anglais mais je ne vois toujours rien. À noter que je ne vois pas non plus le logo Asus avant le grub, donc peut-être que le problème ne vient pas que d'ubuntu ?
https://paste.ubuntu.com/p/yZ6fBGGWXm/ ( un boot-info au cas où)

# 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_HIDDEN_TIMEOUT=0
GRUB_TIMEOUT_STYLE=menu
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer"
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" 

mon fichier grub et 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
}

terminal_input console
terminal_output console
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  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-84332f5d-f73a-4895-9149-3883e1b1e39c' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd1,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt6 --hint-efi=hd1,gpt6 --hint-baremetal=ahci1,gpt6  84332f5d-f73a-4895-9149-3883e1b1e39c
	else
	  search --no-floppy --fs-uuid --set=root 84332f5d-f73a-4895-9149-3883e1b1e39c
	fi
	linux	/boot/vmlinuz-5.8.0-55-generic root=UUID=84332f5d-f73a-4895-9149-3883e1b1e39c ro  quiet splash pci=noaer $vt_handoff
	initrd	/boot/initrd.img-5.8.0-55-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-84332f5d-f73a-4895-9149-3883e1b1e39c' {
	menuentry 'Ubuntu, with Linux 5.8.0-55-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-55-generic-advanced-84332f5d-f73a-4895-9149-3883e1b1e39c' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt6 --hint-efi=hd1,gpt6 --hint-baremetal=ahci1,gpt6  84332f5d-f73a-4895-9149-3883e1b1e39c
		else
		  search --no-floppy --fs-uuid --set=root 84332f5d-f73a-4895-9149-3883e1b1e39c
		fi
		echo	'Loading Linux 5.8.0-55-generic ...'
		linux	/boot/vmlinuz-5.8.0-55-generic root=UUID=84332f5d-f73a-4895-9149-3883e1b1e39c ro  quiet splash pci=noaer $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.8.0-55-generic
	}
	menuentry 'Ubuntu, with Linux 5.8.0-55-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-55-generic-recovery-84332f5d-f73a-4895-9149-3883e1b1e39c' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt6 --hint-efi=hd1,gpt6 --hint-baremetal=ahci1,gpt6  84332f5d-f73a-4895-9149-3883e1b1e39c
		else
		  search --no-floppy --fs-uuid --set=root 84332f5d-f73a-4895-9149-3883e1b1e39c
		fi
		echo	'Loading Linux 5.8.0-55-generic ...'
		linux	/boot/vmlinuz-5.8.0-55-generic root=UUID=84332f5d-f73a-4895-9149-3883e1b1e39c ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.8.0-55-generic
	}
	menuentry 'Ubuntu, with Linux 5.8.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-53-generic-advanced-84332f5d-f73a-4895-9149-3883e1b1e39c' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt6 --hint-efi=hd1,gpt6 --hint-baremetal=ahci1,gpt6  84332f5d-f73a-4895-9149-3883e1b1e39c
		else
		  search --no-floppy --fs-uuid --set=root 84332f5d-f73a-4895-9149-3883e1b1e39c
		fi
		echo	'Loading Linux 5.8.0-53-generic ...'
		linux	/boot/vmlinuz-5.8.0-53-generic root=UUID=84332f5d-f73a-4895-9149-3883e1b1e39c ro  quiet splash pci=noaer $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.8.0-53-generic
	}
	menuentry 'Ubuntu, with Linux 5.8.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.8.0-53-generic-recovery-84332f5d-f73a-4895-9149-3883e1b1e39c' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt6 --hint-efi=hd1,gpt6 --hint-baremetal=ahci1,gpt6  84332f5d-f73a-4895-9149-3883e1b1e39c
		else
		  search --no-floppy --fs-uuid --set=root 84332f5d-f73a-4895-9149-3883e1b1e39c
		fi
		echo	'Loading Linux 5.8.0-53-generic ...'
		linux	/boot/vmlinuz-5.8.0-53-generic root=UUID=84332f5d-f73a-4895-9149-3883e1b1e39c ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.8.0-53-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+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-AC8F-F2CB' {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  AC8F-F2CB
	else
	  search --no-floppy --fs-uuid --set=root AC8F-F2CB
	fi
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

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

### BEGIN /etc/grub.d/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 ### 

Merci d'avance pour l'aide smile

Hors ligne

#2 Le 05/06/2021, à 12:08

geole

Re : GRUB (ubuntu 20.10) invisible au démarrage

Bonjour
Comme tu as déjà essayé la solution de dépannage.
J'ai aussi noté

OS#1:   L'OS actuellement utilisé - Ubuntu 20.10 CurrentSession on sdb6

BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot enabled.

Je te propose une solution de contournement basée sur refind

A)   Au plus simple,

sudo apt install refind

Je ne sais pas trop comment cette installation se passe pour la version 20.10 en mode secure

B) Sinon,  avec un script  à faire avec le support d'installation testé en mode secure version 20.10
https://forum.ubuntu-fr.org/viewtopic.p … #p22441416


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#3 Le 05/06/2021, à 20:23

bk

Re : GRUB (ubuntu 20.10) invisible au démarrage

Bonsoir,
si tu ne savais pas comment se passait l'installation pour un secure boot sur ubuntu 20.10, voici une réponse partielle ; je ne peux plus du tout accéder à linux. Il est probable qu'après avoir lancé refind le secure boot lui ait dit non et donc l'ordi bloque( ordi allumé et écran noir, j'ai appuyé sur les touches entrée alt etc un peu au hasard mais rien ne se passe). Et vu que l'affichage ne marche pas du tout , aucun moyen de savoir ce qu'il se passe ! Je vais essayer demain de lancer mon DD à partir d'un autre ordi, à ce moment là si je désinstalle simplement refind ce sera bon je pense (?)

Hors ligne

#4 Le 05/06/2021, à 23:09

ikewdu

Re : GRUB (ubuntu 20.10) invisible au démarrage

Salut,

Je ne vois pas d'explication immédiate à ton souci d'affichage de grub, mais je pense que si ton PC ne démarre plus sur Linux, c'est que tu as saturé le système :

fdisk -l (filtered):
sdb6  1885351936 1924412482   39060547  18.6G Linux filesystem
df (filtered): 
sdb6     1.5G  87% /

Tu as prévu beaucoup trop juste, car ta partition racine était déjà occupée à 87 % au moment du rapport.

Hors ligne

#5 Le 06/06/2021, à 16:08

geole

Re : GRUB (ubuntu 20.10) invisible au démarrage

bk a écrit :

Bonsoir,
si tu ne savais pas comment se passait l'installation pour un secure boot sur ubuntu 20.10, voici une réponse partielle ; je ne peux plus du tout accéder à linux. Il est probable qu'après avoir lancé refind le secure boot lui ait dit non et donc l'ordi bloque( ordi allumé et écran noir, j'ai appuyé sur les touches entrée alt etc un peu au hasard mais rien ne se passe). Et vu que l'affichage ne marche pas du tout , aucun moyen de savoir ce qu'il se passe ! Je vais essayer demain de lancer mon DD à partir d'un autre ordi, à ce moment là si je désinstalle simplement refind ce sera bon je pense (?)

Bonjour
Va dans le bios de ton ordinateur et déactive le secure boot....


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#6 Le 06/06/2021, à 17:24

geole

Re : GRUB (ubuntu 20.10) invisible au démarrage

ikewdu a écrit :

Salut,

Je ne vois pas d'explication immédiate à ton souci d'affichage de grub, mais je pense que si ton PC ne démarre plus sur Linux, c'est que tu as saturé le système :

fdisk -l (filtered):
sdb6  1885351936 1924412482   39060547  18.6G Linux filesystem
df (filtered): 
sdb6     1.5G  87% /

Tu as prévu beaucoup trop juste, car ta partition racine était déjà occupée à 87 % au moment du rapport.

Hors sujet
Enfin une bonne nouvelles
1)

sudo dd if=/dev/zero  of=Fichier bs=8M

==> plantage disant qu'il n'y a plus de place disque disponible.
=> Message du logiciel disant d'enquêter car la partition racine n'a plus que 0 octets de libre
Mais décision de booter.
2) Tout se passe bien.

df -ht ext4 --block-size=MB
Sys. de fichiers blocs de 1MB Utilisé Disponible Uti% Monté sur
/dev/sda12            18857MB 17875MB        0MB 100% /

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04"
 

Dernière modification par geole (Le 06/06/2021, à 17:26)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#7 Le 06/06/2021, à 19:14

lucmars

Re : GRUB (ubuntu 20.10) invisible au démarrage

Mes deux sous : depuis la 2004 on a un grub qui s'affiche en mono-boot et le contraire en dual-boot !

Pas d'amélioration depuis apparemment, non?


Gaulois Matter !

Hors ligne