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 18/01/2021, à 15:04

Féfile

[Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Bonjour,

J'ai installé récemment Ubuntu 20.04.1 LTS sur ma machine. Je l'utilise en OS principal, je n'ai plus Windows.
Cependant certaines fois l'OS ne se lancait pas et j'avais un écran noir. J'ai utilisé boot-repair ce qui a résolut le problème un moment, mais j'ai de nouveau ce problème assez souvent.
Je pense que j'ai du rater l'installation d'ubuntu mais je ne sais pas quoi faire.

Voici mon lien pastebin :  https://paste.ubuntu.com/p/cm9gS7hrCG/

Merci pour votre aide.

Dernière modification par Féfile (Le 27/01/2021, à 22:46)

Hors ligne

#2 Le 19/01/2021, à 15:49

malbo

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Bonjour,
Je colle ci-dessous le contenu de ton Boot-info :

boot-repair-4ppa125                                              [20210118_1352]

============================== Boot Info Summary ===============================

 => No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi 
                       /efi/BOOT/fbx64.efi /efi/BOOT/grubx64.efi 
                       /efi/BOOT/mmx64.efi /efi/ubuntu/grubx64.efi 
                       /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi 
                       /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

    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


================================ 1 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on sda2

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-42-generic root=UUID=1ccd4842-6dde-4f34-9a0f-348c0998b38c ro quiet splash vt.handoff=7


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

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

efibootmgr -v
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0004,0000,0001
Boot0000* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...G................
Boot0003* ubuntu	HD(1,GPT,b1ee595c-1372-4c02-b5dc-fb19c92e0c45,0x800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0004* ubuntu	HD(1,GPT,b1ee595c-1372-4c02-b5dc-fb19c92e0c45,0x800,0x100000)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO

f7a57b08bc7c1c85417ae4cea582d1d4   sda1/BOOT/bkpbootx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda1/BOOT/bootx64.efi
bed45d1c9554cea09924d3814cb7c446   sda1/BOOT/fbx64.efi
1476c8ed1ce8271aab2fbe89d534cfa4   sda1/BOOT/grubx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/BOOT/mmx64.efi
1476c8ed1ce8271aab2fbe89d534cfa4   sda1/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda1/ubuntu/shimx64.efi


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

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda2	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

sda2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda2	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 878322D7-EC7A-4B23-A1EA-5BCE9EFA9050
        Start       End   Sectors  Size Type
sda1     2048   1050623   1048576  512M EFI System
sda2  1050624 500117503 499066880  238G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:256GB:scsi:512:512:gpt:ATA HFS256G32MND-220:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:256GB:256GB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                             
├─sda1 vfat     6FB4-C0C5                            b1ee595c-1372-4c02-b5dc-fb19c92e0c45       EFI System Partition
└─sda2 ext4     1ccd4842-6dde-4f34-9a0f-348c0998b38c 62c5fb9a-97af-4865-88b1-7d0e362a534a       

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
sda2              212.8G   4% /

Mount options: __________________________________________________________________

sda2              rw,relatime,errors=remount-ro

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid 1ccd4842-6dde-4f34-9a0f-348c0998b38c root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   1ccd4842-6dde-4f34-9a0f-348c0998b38c
Ubuntu, with Linux 5.4.0-42-generic   1ccd4842-6dde-4f34-9a0f-348c0998b38c
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=1ccd4842-6dde-4f34-9a0f-348c0998b38c /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
/swapfile                                 none            swap    sw              0       0
UUID=6FB4-C0C5  /boot/efi       vfat    defaults      0       1

======================= sda2/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=""

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

           GiB - GB             File                                 Fragment(s)
 166,643680573 = 178,932289536  boot/grub/grub.cfg                             1
   4,840068817 = 5,196984320    boot/vmlinuz                                   2
   4,840068817 = 5,196984320    boot/vmlinuz-5.4.0-42-generic                  2
   5,140094757 = 5,519134720    boot/initrd.img                                7
   5,140094757 = 5,519134720    boot/initrd.img-5.4.0-42-generic               7
   5,140094757 = 5,519134720    boot/initrd.img.old                            7

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

-rwxr-xr-x 1 root root 17123 juil. 31 02:34 10_linux
-rwxr-xr-x 1 root root 42128 juil. 31 02:34 10_linux_zfs
-rwxr-xr-x 1 root root 12894 juil. 31 02:34 20_linux_xen
-rwxr-xr-x 1 root root 12059 juil. 31 02:34 30_os-prober
-rwxr-xr-x 1 root root  1424 juil. 31 02:34 30_uefi-firmware
-rwxr-xr-x 1 root root   214 juil. 31 02:34 40_custom
-rwxr-xr-x 1 root root   216 juil. 31 02:34 41_custom


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda2,
using the following options:        sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s  use-standard-efi-file  restore-efi-backups  

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on the L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !

Je te suggère d'essayer la modif que je détaille dans ce post : https://forum.ubuntu-fr.org/viewtopic.p … #p22393416

Hors ligne

#3 Le 20/01/2021, à 16:43

Féfile

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Bonjour,

Merci, je vais essayer et je vous redis.

EDIT :

Alors j'ai effectué le changement et mis a jour le grub. La machine boot correctement cependant j'ai maintenant un message "error : can't find command 'hwmatch' à l'allumage. Je ne sais pas si c'est du à cette modification.

Dernière modification par Féfile (Le 20/01/2021, à 16:50)

Hors ligne

#4 Le 20/01/2021, à 18:32

malbo

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Je te prie de passer la commande suivante dans un terminal :

cat /boot/grub/grub.cfg

Et d'en donner le retour complet dans ta réponse. Ce qu'on appelle "retour complet" est expliqué dans ce post de cqfd93 : https://forum.ubuntu-fr.org/viewtopic.p … #p22040823

Hors ligne

#5 Le 20/01/2021, à 22:00

Féfile

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Très bien merci !
Voila le retour de la commande

cecile@cecile-UX303UA:~$ 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 [ "${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=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-1ccd4842-6dde-4f34-9a0f-348c0998b38c' {
	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='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  1ccd4842-6dde-4f34-9a0f-348c0998b38c
	else
	  search --no-floppy --fs-uuid --set=root 1ccd4842-6dde-4f34-9a0f-348c0998b38c
	fi
	linux	/boot/vmlinuz-5.4.0-42-generic root=UUID=1ccd4842-6dde-4f34-9a0f-348c0998b38c ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-5.4.0-42-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-1ccd4842-6dde-4f34-9a0f-348c0998b38c' {
	menuentry 'Ubuntu, with 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-1ccd4842-6dde-4f34-9a0f-348c0998b38c' {
		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='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  1ccd4842-6dde-4f34-9a0f-348c0998b38c
		else
		  search --no-floppy --fs-uuid --set=root 1ccd4842-6dde-4f34-9a0f-348c0998b38c
		fi
		echo	'Loading Linux 5.4.0-42-generic ...'
		linux	/boot/vmlinuz-5.4.0-42-generic root=UUID=1ccd4842-6dde-4f34-9a0f-348c0998b38c ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.4.0-42-generic
	}
	menuentry 'Ubuntu, with 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-1ccd4842-6dde-4f34-9a0f-348c0998b38c' {
		recordfail
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  1ccd4842-6dde-4f34-9a0f-348c0998b38c
		else
		  search --no-floppy --fs-uuid --set=root 1ccd4842-6dde-4f34-9a0f-348c0998b38c
		fi
		echo	'Loading Linux 5.4.0-42-generic ...'
		linux	/boot/vmlinuz-5.4.0-42-generic root=UUID=1ccd4842-6dde-4f34-9a0f-348c0998b38c ro recovery nomodeset 
		echo	'Loading initial ramdisk ...'
		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+ ###
### END /etc/grub.d/20_memtest86+ ###

### 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/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 ###
cecile@cecile-UX303UA:~$ 

J'ai également pu voir dans le précédent post que tu m'a donné (https://forum.ubuntu-fr.org/viewtopic.p … #p22393416) qu'il était conseillé de mettre le bios à jour donc je vais regarder.

Merci de ton aide !

Dernière modification par Féfile (Le 20/01/2021, à 22:05)

Hors ligne

#6 Le 21/01/2021, à 07:55

malbo

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Bonjour,
Effectivement, il y a bien une occurrence de hwmatch dans le retour de commande (qui est le contenu du fichier de configuration de Grub). C'est dans cette ligne :

    if hwmatch ${prefix}/gfxblacklist.txt 3; then

Donc au démarrage, Grub a bien une instruction qui a un rapport avec ça. Combien de temps (environ) le message "error : can't find command 'hwmatch' est-il affiché au démarrage ?

Hors ligne

#7 Le 21/01/2021, à 15:18

Féfile

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Bonjour,

En gros le logo Asus s'affiche avec cette commande en haut a gauche de l'écran pendant 3/5 secondes puis l'écran est rafraîchi avec a nouveau le logo asus ainsi que celui de Ubuntu et alors la machine démarre.

Hors ligne

#8 Le 21/01/2021, à 15:29

malbo

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Je ne sais pas interpréter ce que tu décris et surtout pourquoi tu vois à nouveau le logo Asus après que le message a disparu. Peut-être qu'un contributeur plus expérimenté pourra le faire. Quant à moi, je vais m'arrêter là parce que je ne suis pas compétent pour intervenir dans les fichiers de Grub dans le but de supprimer ce message  "error : can't find command 'hwmatch'".

Hors ligne

#9 Le 21/01/2021, à 15:55

Féfile

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Très bien, merci quand même pour ton aide smile

Hors ligne

#10 Le 21/01/2021, à 18:25

malbo

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Excuse-moi, j'avais oublié que j'ai déjà vu ce problème et j'ai même donné la solution dans ce post : http://forum.ubuntu-fr.org/viewtopic.ph … #p22226766
Je vais détailler la procédure :
1) ouverture avec gedit du fichier /etc/default/grub avec pouvoir administrateur. Pour ce faire, passe la commande suivante (n'essaie même pas de la taper : utilise le copier-coller):

gedit admin:///etc/default/grub

2) n'importe où dans le texte du fichier /etc/default/grub, ajoute la ligne suivante :

GRUB_GFXPAYLOAD_LINUX=keep

3) enregistre dans gedit et quitte gedit
4) réalise la mise à jour de Grub en passant cette commande :

sudo update-grub

Dernière modification par malbo (Le 21/01/2021, à 18:27)

Hors ligne

#11 Le 25/01/2021, à 16:25

Féfile

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Bonjour,

Oui, j’avais trouvé ces lignes sur un autre site, cela à resolu le problème !
Merci

Hors ligne

#12 Le 25/01/2021, à 18:07

malbo

Re : [Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

C'est une bonne nouvelle.
Je te prie de fermer la discussion en procédant comme suit :
1) te connecter sur le forum
2) cliquer sur "Modifier" en bas à droite de ton PREMIER post
3) modifier le titre de la discussion pour qu'il devienne :

[Résolu] Ubuntu 20.04.1 LTS boot une fois sur deux

Hors ligne