[installation] lancement GRUB echoue

Questions et astuces concernant l'installation et la configuration d'archlinux
iznobe
Hankyu
Messages : 46
Inscription : mer. 14 mai 2025, 21:16

[installation] lancement GRUB echoue

Message par iznobe »

Bonjour , lors de la selection de la ligne pour lancer achlinux lors de l' affichage du GRUB , j' obtiens une erreur :

Code : Tout sélectionner

erreur : fichier /boot/initramfs-linux.img non disponible .
puis , un kernel panic , et je suis alors obligé de hard reboot l ' ordi .

Je peux entrer en chroot dans arch et l' installation c ' est terminée avec succés .
Pourtant quand je regarde dans /boot , il me semble que tout y est :roll:

bref , voici un rapport boot-info lancé de ma session ubuntu : https://pastebin.com/PT8DWc25


j ' ai essayé d' innombrables choses trouvées sur le forum pour tenter de mettre en place " correctement " ce qu ' il semblait manquer , mais sans succès .

le contenu de /boot apres chroot , je ne suis pas certain que ce soit la bonne manière de procéder vu que l' installation est censée être en EFI :

Code : Tout sélectionner

iznobe@iznobe-pc:~$ sudo mount --mkdir /dev/nvme0n1p2 /mnt/boot/efi && sudo mount -v /dev/nvme0n1p3 /mnt &&    sudo mount -v --bind /dev /mnt/dev &&  sudo mount -v -t proc /proc /mnt/proc &&  sudo mount -v --bind /run  /mnt/run &&  sudo mount -v -t sysfs /sys /mnt/sys && sudo chroot /mnt
[sudo] Mot de passe de iznobe : 
mount : /dev/nvme0n1p3 monté sur /mnt.
mount : /dev lié sur /mnt/dev.
mount : /proc monté sur /mnt/proc.
mount : /run lié sur /mnt/run.
mount : /sys monté sur /mnt/sys.
[root@iznobe-pc /]# ls -l /boot
total 173444
drwx------ 5 root root      4096 May 14 22:17 efi
drwxr-xr-x 2 root root      4096 May 14 19:45 grub
-rw------- 1 root root 134046409 May 14 19:34 initramfs-linux-fallback.img
-rw------- 1 root root  14801858 May 14 19:34 initramfs-linux.img
-rw-r--r-- 1 root root  13286400 May 12 19:56 intel-ucode.img
-rw-r--r-- 1 root root  15450624 May 14 19:22 vmlinuz-linux
[root@iznobe-pc /]# 
le fstab :

Code : Tout sélectionner

[root@iznobe-pc /]# cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p3
UUID=224086d1-a670-4587-ad74-604b39bd7444	/         	ext4      	rw,relatime	0 1

# /dev/nvme0n1p2 LABEL=BOOT_EFI
UUID=853D-995A      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2

# /dev/sdc4 SWAP
/dev/sda8           	none      	swap      	defaults,pri=-2	0 0
[root@iznobe-pc /]#
le dossier /boot/grub semble desesperement vide apres un reboot ( memapres l' avoir " peuplé ) :

Code : Tout sélectionner

[root@iznobe-pc /]# mount -t efivarfs none /sys/firmware/efi/efivars
[root@iznobe-pc /]# ls -l /boot/grub/
total 0
[root@iznobe-pc /]#
si je fais ( comme dans le fstab ) :

Code : Tout sélectionner

[root@iznobe-pc /]# mount /dev/nvme0n1p2 /boot
[root@iznobe-pc /]# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  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 224086d1-a670-4587-ad74-604b39bd7444
    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_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-224086d1-a670-4587-ad74-604b39bd7444' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root 224086d1-a670-4587-ad74-604b39bd7444
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=224086d1-a670-4587-ad74-604b39bd7444 rw zswap.enabled=0 rootfstype=ext4 loglevel=3 quiet
	echo	'Loading initial ramdisk ...'
	initrd	/intel-ucode.img /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-224086d1-a670-4587-ad74-604b39bd7444' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-224086d1-a670-4587-ad74-604b39bd7444' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 224086d1-a670-4587-ad74-604b39bd7444
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=224086d1-a670-4587-ad74-604b39bd7444 rw zswap.enabled=0 rootfstype=ext4 loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-224086d1-a670-4587-ad74-604b39bd7444' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root 224086d1-a670-4587-ad74-604b39bd7444
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=224086d1-a670-4587-ad74-604b39bd7444 rw zswap.enabled=0 rootfstype=ext4 loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-fallback.img
	}
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-224086d1-a670-4587-ad74-604b39bd7444' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 853D-995A
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=224086d1-a670-4587-ad74-604b39bd7444 rw zswap.enabled=0 rootfstype=ext4 loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-224086d1-a670-4587-ad74-604b39bd7444' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 853D-995A
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=224086d1-a670-4587-ad74-604b39bd7444 rw zswap.enabled=0 rootfstype=ext4 loglevel=3 quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux-fallback.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
	fwsetup --is-supported
	if [ "$?" = 0 ]; then
		menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
			fwsetup
		}
	fi
fi
### 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 ###
[root@iznobe-pc /]# 

Code : Tout sélectionner

[root@iznobe-pc /]# ls -l /boot/grub/
total 72
drwxr-xr-x 2 root root  4096 May 14 14:13 fonts
-rwxr-xr-x 1 root root  5855 May 14 22:35 grub.cfg
-rwxr-xr-x 1 root root  1024 May 14 14:13 grubenv
drwxr-xr-x 2 root root  8192 May 14 22:25 locale
drwxr-xr-x 3 root root  4096 May 14 14:13 themes
drwxr-xr-x 2 root root 45056 May 14 22:25 x86_64-efi
[root@iznobe-pc /]#
il me semble alors que toute la structure est correcte , mais rien à faire .
j ' ai aussi passé avec la partition /dev/nvme0n1p2 sur /boot :

Code : Tout sélectionner

[root@iznobe-pc /]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /vmlinuz-linux
Found initrd image: //intel-ucode.img //initramfs-linux.img
Found fallback initrd image(s) in /:  intel-ucode.img initramfs-linux-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Adding boot menu entry for UEFI Firmware Settings ...
done
[root@iznobe-pc /]# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.
[root@iznobe-pc /]#
et resultat identique :?

j ' aurais besoin de vos lumieres pour demarrer archlinux du coup .

Cordialement .
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17563
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [installation] lancement GRUB echoue

Message par benjarobin »

Bonjour,
Ce que tu indiques et/ou réalise n'est pas "cohérent".
Alors depuis un ISO d'installation d'Arch, peux tu donner la sortie de (afin de vérifier que tout est bon au niveau table de partition) :

Code : Tout sélectionner

gdisk -l /dev/nvme0n1
Après, le plus simple est de tout nettoyer (méthode bourrin) et de tout réinstaller (je fais l’hypothèse qu'il n'y a pas d'autres OS d'installé) :

Code : Tout sélectionner

efibootmgr
La commande efibootmgr dois te lister les bootloader enregistrés dans la NVRAM de ta carte mère.
Tu dois supprimer toutes les entrées en lien avec Grub/Arch Linux. Donc pour chaque entrée BootXXXX que tu veux supprimer :

Code : Tout sélectionner

efibootmgr -b XXXX -B
Puis nettoyage et montage des partitions en dehors du chroot :

Code : Tout sélectionner

mount /dev/nvme0n1p3  /mnt
rm -rf /mnt/boot/*
mkdir /mnt/efi
mount /dev/nvme0n1p2 /mnt/efi
rm -rf /mnt/efi/*  # A adapter si tu as un Windows, tu ne supprimes pas tout
Tu dois corriger le fstab pour monter la partition ESP dans /efi, et non /boot
Le Wiki parle toujours de /boot/efi mais c'est une mauvaise pratique et qui porte à confusion, il est bien plus simple et compréhensible de monter la partition ESP dans /efi.
Mais il est en effet aussi possible de monter la partition ESP en tant que partition de boot, donc dans /boot (la partition a 2 usages), mais vraiment, je ne le recommande pas, surtout dans ton cas où la partition principale est en ext4 (cas simple).

Tu peux éditer le fichier à la main, ou utiliser cette commande :

Code : Tout sélectionner

sed -i "s|/boot|/efi|" /mnt/etc/fstab
Entrée dans le chroot, et réparation...

Code : Tout sélectionner

arch-chroot /mnt

# Donc tout ce qui est en dessous est réalisé depuis le chroot
pacman -S linux grub

# En fonction de ton CPU
pacman -S amd-ucode
pacman -S intel-ucode

grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=Archlinux
grub-mkconfig -o /boot/grub/grub.cfg
Tu peux quitter le chroot, et reboot.
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
iznobe
Hankyu
Messages : 46
Inscription : mer. 14 mai 2025, 21:16

Re: [installation] lancement GRUB echoue

Message par iznobe »

Bonjour , pour gdisk -l :

Code : Tout sélectionner

iznobe@iznobe-pc:~$ sudo gdisk -l /dev/nvme0n1
[sudo] Mot de passe de iznobe : 
GPT fdisk (gdisk) version 1.0.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/nvme0n1: 1000215216 sectors, 476.9 GiB
Model: ADATA SX8200PNP                         
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): FA603A6B-EA88-11EA-84D7-2CF05D2920F2
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1000215182
Partitions will be aligned on 2048-sector boundaries
Total free space is 218299535 sectors (104.1 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048       262146047   125.0 GiB   0700  
   2       780824576       782872575   1000.0 MiB  EF00  
   3       717076480       778774527   29.4 GiB    8304  
   4       975673344       976769023   535.0 MiB   2700  
   5       262146048       348141567   41.0 GiB    8300  
   6       429899776       511225855   38.8 GiB    8300  
   7       511225856       594196479   39.6 GiB    8300  
   8       348141568       429899775   39.0 GiB    8300  
   9       594196480       655635933   29.3 GiB    8300  
  10       655636480       717076479   29.3 GiB    8300  
iznobe@iznobe-pc:~$
efibootmgr :

Code : Tout sélectionner

iznobe@iznobe-pc:~$ efibootmgr
BootCurrent: 000B
Timeout: 0 seconds
BootOrder: 0001,000B,000A,0006,0000,0008
Boot0000* GRUB	HD(2,GPT,861b53ef-2096-4ddb-81c4-07a6b72d5c51,0x2e8a7000,0x1f4000)/File(\EFI\GRUB\GRUBX64.EFI)
Boot0001* arch_grub	HD(2,GPT,861b53ef-2096-4ddb-81c4-07a6b72d5c51,0x2e8a7000,0x1f4000)/File(\EFI\arch_grub\grubx64.efi)
Boot0006* ubuntu	HD(2,GPT,a4c43c7b-b7cf-445d-841a-55012161911a,0x1d1b0c000,0xff800)/File(\EFI\UBUNTU\SHIMX64.EFI)0000424f
Boot0008* Windows Boot Manager	HD(2,GPT,861b53ef-2096-4ddb-81c4-07a6b72d5c51,0x2e8a7000,0x1f4000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)0000424f
Boot000A* ubuntu	HD(2,GPT,861b53ef-2096-4ddb-81c4-07a6b72d5c51,0x2e8a7000,0x1f4000)/File(\EFI\UBUNTU\SHIMX64.EFI)0000424f
Boot000B* debian	HD(2,GPT,861b53ef-2096-4ddb-81c4-07a6b72d5c51,0x2e8a7000,0x1f4000)/File(\EFI\DEBIAN\GRUBX64.EFI)0000424f
iznobe@iznobe-pc:~$
tous mes OS sont installés sur le disque nvme0n1 ( sauf 1 ) :

Code : Tout sélectionner

iznobe@iznobe-pc:~$ sudo os-prober
/dev/nvme0n1p10:Debian GNU/Linux trixie/sid:Debian:linux
/dev/nvme0n1p3:Arch Linux:Arch:linux
/dev/nvme0n1p5:Linux Mint 22 Wilma (22):LinuxMint:linux
/dev/nvme0n1p6:Ubuntu 20.04.6 LTS (20.04):Ubuntu:linux
/dev/nvme0n1p7:Ubuntu 22.04.5 LTS (22.04):Ubuntu1:linux
/dev/nvme0n1p9:Linux Mint 21.3 Wilma (21.3):LinuxMint1:linux
/dev/sda4:Ubuntu 24.04.1 LTS (24.04):Ubuntu2:linux
iznobe@iznobe-pc:~$ 
Du coup , je ne me sens pas trop de tout viré :mrgreen:

y aurait une manière de faire ça plus " soft " que la manière " bourrin "?

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

je n' ai supprimé de la NVRAM que l' entrée pour arch .

c' est un peu brouillon , mais voici ce que j' ai fais , en essayant de suivre au plus prés tes indications :

Code : Tout sélectionner

iznobe@iznobe-pc:/mnt/efi$ sudo mount --mkdir -v /dev/nvme0n1p2 /mnt/efi
mount : /dev/nvme0n1p2 monté sur /mnt/efi.
iznobe@iznobe-pc:/mnt/efi$ ls -l
total 0
iznobe@iznobe-pc:/mnt/efi$ cd
iznobe@iznobe-pc:~$ cd /mnt/efi
bash: cd: /mnt/efi: Permission non accordée
iznobe@iznobe-pc:~$ sudo -i
root@iznobe-pc:~# ls -l
total 8
-rw------- 1 root root  573 mars   6 00:13 mbox
drwxr-xr-x 2 root root 4096 oct.   9  2024 snap
root@iznobe-pc:~# cd /mnt/efi
root@iznobe-pc:/mnt/efi# ls -l
total 173444
drwx------ 10 root root      4096 mai   14 21:07  EFI
drwx------  6 root root      4096 mai   15 08:23  grub
-rwx------  1 root root 134046409 mai   14 21:24  initramfs-linux-fallback.img
-rwx------  1 root root  14801858 mai   14 21:24  initramfs-linux.img
-rwx------  1 root root  13286400 mai   12 19:56  intel-ucode.img
drwx------  4 root root      4096 mai   14 14:13 'System Volume Information'
-rwx------  1 root root  15450624 mai   14 21:24  vmlinuz-linux
root@iznobe-pc:/mnt/efi# rm -rf /mnt/boot/*
root@iznobe-pc:/mnt/efi# cd EFI/
root@iznobe-pc:/mnt/efi/EFI# cd ..
root@iznobe-pc:/mnt/efi# rm in*
root@iznobe-pc:/mnt/efi# ls -l
total 15104
drwx------ 10 root root     4096 mai   14 21:07  EFI
drwx------  6 root root     4096 mai   15 08:23  grub
drwx------  4 root root     4096 mai   14 14:13 'System Volume Information'
-rwx------  1 root root 15450624 mai   14 21:24  vmlinuz-linux
root@iznobe-pc:/mnt/efi# rm vm*
root@iznobe-pc:/mnt/efi# cd EFI
root@iznobe-pc:/mnt/efi/EFI# ls -l
total 32
drwx------ 2 root root 4096 mai   14 21:07 arch_grub
drwx------ 2 root root 4096 mai   14 14:13 Boot
drwx------ 2 root root 4096 mai   14 14:13 debian
drwx------ 4 root root 4096 mai   14 19:48 EFI
drwx------ 2 root root 4096 mai   14 14:13 GRUB
drwx------ 4 root root 4096 mai   14 14:13 Microsoft
drwx------ 2 root root 4096 mai   14 14:13 tools
drwx------ 3 root root 4096 mai   14 14:13 ubuntu
root@iznobe-pc:/mnt/efi/EFI# rm -rf arch_grub/
root@iznobe-pc:/mnt/efi/EFI# ls
Boot  debian  EFI  GRUB  Microsoft  tools  ubuntu
root@iznobe-pc:/mnt/efi/EFI# exit
déconnexion
iznobe@iznobe-pc:~$ sudo chroot /mnt
[root@iznobe-pc /]# mount -t efivarfs none /sys/firmware/efi/efivars
[root@iznobe-pc /]# pacman -S linux grub
warning: linux-6.14.6.arch1-1 is up to date -- reinstalling
warning: grub-2:2.12.r292.g73d1c959-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) grub-2:2.12.r292.g73d1c959-1  linux-6.14.6.arch1-1

Total Installed Size:  175.23 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                                                                                      [######################################################################] 100%
(2/2) checking package integrity                                                                                    [######################################################################] 100%
(2/2) loading package files                                                                                         [######################################################################] 100%
(2/2) checking for file conflicts                                                                                   [######################################################################] 100%
(2/2) checking available disk space                                                                                 [######################################################################] 100%
:: Processing package changes...
(1/2) reinstalling linux                                                                                            [######################################################################] 100%
(2/2) reinstalling grub                                                                                             [######################################################################] 100%
:: To use the new features provided in this GRUB update, it is recommended
   to install it to the MBR or UEFI. Due to potential configuration
   incompatibilities, it is advised to run both, installation and generation
   of configuration:
     # grub-install ...
     # grub-mkconfig -o /boot/grub/grub.cfg
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.14.6-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: '6.14.6-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci_renesas'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'bfa'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
(4/4) Updating the info directory file...
[root@iznobe-pc /]# pacman -S intel-ucode
warning: intel-ucode-20250512-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) intel-ucode-20250512-1

Total Installed Size:  27.03 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                      [######################################################################] 100%
(1/1) checking package integrity                                                                                    [######################################################################] 100%
(1/1) loading package files                                                                                         [######################################################################] 100%
(1/1) checking for file conflicts                                                                                   [######################################################################] 100%
(1/1) checking available disk space                                                                                 [######################################################################] 100%
warning: could not get file information for boot/intel-ucode.img
:: Processing package changes...
(1/1) reinstalling intel-ucode                                                                                      [######################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.14.6-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: '6.14.6-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci_renesas'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'bfa'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
[root@iznobe-pc /]# grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=Archlinux
Installing for x86_64-efi platform.
Installation finished. No error reported.
[root@iznobe-pc /]# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /vmlinuz-linux
Found initrd image: //intel-ucode.img //initramfs-linux.img
Found fallback initrd image(s) in /:  intel-ucode.img initramfs-linux-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Adding boot menu entry for UEFI Firmware Settings ...
done
[root@iznobe-pc /]# exit
exit
iznobe@iznobe-pc:~$

je reboote , mais du coup , je suppose que je n' aurais plus d' entrée grub correspondante ?

j ' ai redemarré sur debian pour mettre à jour grub .
Dernière modification par iznobe le jeu. 15 mai 2025, 15:11, modifié 1 fois.
iznobe
Hankyu
Messages : 46
Inscription : mer. 14 mai 2025, 21:16

Re: [installation] lancement GRUB echoue

Message par iznobe »

Bon , il y a un timeout sur le fstab , mais je reponds de Archlinux , donc deja un grand MERCI :D
j ' avoue que je n' ai pas trop compris ce qui a fait que l' entrée GRUB fonctionne maintenant , vu que j' ai du passé les 2 dernieres commande au moins 10 fois et celles d' avant plusieurs fois , toutefois , sans faire de nettoyage préalable .

Problème résolu donc !


Pour le timeout , ce doit etre lié à la partition de swap ( sdc4 ) qui n' est pas monté ni activé :

Code : Tout sélectionner

[iznobe@archlinux ~]$ lsblk -fe7
NAME         FSTYPE FSVER LABEL           UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                           
|-sda1       ext4   1.0   Seagate_4T      4f8cc284-cd84-4eeb-b412-7539f81664c4                
|-sda2       vfat   FAT32 SDA_EFI         BC94-9CBD                                           
|-sda3       ext4   1.0   azer            da31d701-9ced-49df-b78f-17e77a74028d                
`-sda4       ext3   1.0   ubuntu_24.04    89f71135-b459-4c74-bfa3-e9d27df4369d                
sdb                                                                                           
|-sdb1       ext4   1.0   WD8             1db8a5b3-ff12-4d31-9463-b188ffefe43b                
`-sdb2       ext4   1.0   SAUV            d9dc9f4e-a24a-4573-9465-13711480f272                
sdc                                                                                           
|-sdc3       ext4   1.0   Data            01c9b796-0869-4ff9-a2a1-6c0f56ed5257                
`-sdc4       swap   1                     09e6bc69-3287-4694-aa3b-a72afae17c1f                
sdd                                                                                           
|-sdd1       ext4   1.0   WD8PRO1_P1      6298e7b7-7e63-4f5c-8216-ab1f70a1876d                
`-sdd2       ext4   1.0   WD8PRO1_P2      34468dc8-3d25-4fab-a948-745b4e234842                
sde                                                                                           
`-sde1       ext4   1.0   WD8PRO2         084604bc-1b9e-4cdd-bae4-ac9a9fe1303f                
zram0        swap   1     zram0           a59a9ca9-a65c-4cfc-80c7-999334921912                [SWAP]
nvme0n1                                                                                       
|-nvme0n1p1  ntfs         windows_10      08CCB0D8CCB0C0EC                                    
|-nvme0n1p2  vfat   FAT32 BOOT_EFI        853D-995A                             941,5M     6% /efi
|-nvme0n1p3  ext4   1.0                   224086d1-a670-4587-ad74-604b39bd7444   20,2G    25% /
|-nvme0n1p4  ntfs                         0E52DDB352DD9FAF                                    
|-nvme0n1p5  ext4   1.0   LM_21_SSD       eb18366b-2ac9-4a7e-8f93-ba2caa30e90e                
|-nvme0n1p6  ext4   1.0   U_20.04_SSD     06bc0f51-50e8-4ed4-8090-903acdb7df3f                
|-nvme0n1p7  ext4   1.0   U_22.budgie_SSD 8ab22881-60b3-47aa-a0bf-54c292afae81                
|-nvme0n1p8  ext4   1.0   U_24.04_SSD     dca54497-1ab2-4c12-bc82-53b817300288                
|-nvme0n1p9  ext4   1.0   LM_SSD_NEW      df3cd676-80e7-46ef-a28e-5dbe3ea5ddf7                
`-nvme0n1p10 ext4   1.0   DEBIAN_XFCE     50149f7c-d2c3-4119-b937-328b22a577d4                
[iznobe@archlinux ~]$ swapon -s
Nom fichier                             Type            Taille          Utilis�         Priorit�
/dev/zram0                              partition       4194300         0               100
[iznobe@archlinux ~]$
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17563
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [installation] lancement GRUB echoue

Message par benjarobin »

Attention, faire juste chroot et non arch-chroot ce n'est pas tout à fait ma même chose. Tu devrais utiliser arch-chroot qui s'occupe de monter plein d'éléments comme :
proc, sysfs, efivars, devtmpfs, devpts, /dev/shm, /run, /tmp
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
iznobe
Hankyu
Messages : 46
Inscription : mer. 14 mai 2025, 21:16

Re: [installation] lancement GRUB echoue

Message par iznobe »

Bonjour .

Oui , mais pas possible de visualiser ta réponse en démarrant sur la clé Arch .

Je ne l ai pas mis dans ma réponse, mais j ' ai fait un chroot manuel propre , tout de même avant .

Dans ma réponse, on ne voit que la " reprise" sans le montage effectué précédemment.

Merci encore 👍
Répondre