[BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Questions et astuces concernant l'installation et la configuration d'archlinux
Répondre
Urania
Hankyu
Messages : 47
Inscription : dim. 19 juil. 2015, 17:36

[BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par Urania »

Bonjour à tous,
Tout fonctionnait correctement jusqu'à une mise à jour complète effectué ce matin (pacman -Syu)
Et la ben je ne peux plus booter.

J'avais suivi ce lien pour régler le pb du boot EFI:

https://gist.github.com/jasonwryan/4618490

Résultat commande systemctl status boot-efi.mount:

Code : Tout sélectionner

Loaded: loaded (/etc/fstab)
Active: failed (result: exit-code) ...
...
...
Process: 434 ExecMount=.../dev/disk/by-uuid/E187-CD76 /boot/efi -n -t vfat ....,codepage=437, ....

..
..
Failed to mount /boot/efi
mount: mauvais type de systeme
J'ai essayé de mounter cette partition à la main, cela ne fonctionne pas non plus.

Résultat commande "fdisk /dev/sda":

Code : Tout sélectionner

/dev/sda1 ...... Systeme EFI
/dev/sda3 ...... Swap
/dev/sda5 ...... LVM
Je suis en LVM / LUKS

Merci pour votre aide.
Dernière modification par Urania le ven. 21 août 2015, 07:57, modifié 2 fois.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17618
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par benjarobin »

Bonjour,
C'est bien les tutoriels (ou pas...), désolé mais je suis assez brusque : tu n'as surement pas compris pas les conséquences de la liste de commande, qui est plutôt une checklist pour quelqu'un comprenant comment cela fonctionne.
Bref, depuis un live CD, monte la racine dans /mnt, et la partition EFI dans /mnt/boot/efi. Puis lances ces commandes :

Code : Tout sélectionner

cd /mnt/boot
cp vmlinuz-linux efi/EFI/arch/vmlinuz-linux.efi
cp initramfs-linux.img efi/EFI/arch/initramfs-linux.img
cp initramfs-linux-fallback.img efi/EFI/arch/initramfs-linux-fallback.img
Il faut automatiser cette opération à chaque mise à jour ! Voir Wiki (https://wiki.archlinux.fr/ESP#Synchroni ... io_.282.29)
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Urania
Hankyu
Messages : 47
Inscription : dim. 19 juil. 2015, 17:36

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par Urania »

Merci pour votre aide.
Afin d'éviter un autre soucis du même genre, j'ai opté pour la solution: "incrond"

++
Urania
Hankyu
Messages : 47
Inscription : dim. 19 juil. 2015, 17:36

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1 (Résolu)

Message par Urania »

Bonjour,
Je me permets de "réouvrir" ce post car à première vu, ce que j'ai fait ne fonctionne pas.
Tout d'abord j'ai finalement opté pour la solution décrite dans le wifi : copie automatique des fichiers dans l'ESP (systemd).

J'ai simplement fait un copier/coller di wiki:

- création du fichier: /etc/systemd/system/efistub-update.path
- création du fichier: /etc/systemd/system/efistub-update.service

Code : Tout sélectionner


systemctl status efistub-update.path
â efistub-update.path - copy EFIStub Kernel to UEFISYS Partition
   Loaded: loaded (/etc/systemd/system/efistub-update.path; enabled; vendor preset: disabled)
   Active: active (waiting) since ven. 2015-08-21 08:08:51 EEST; 37min ago

août 21 08:08:51 Findus systemd[1]: Started copy EFIStub Kernel to UEFISYS Partition.
Il est dit dans le wiki que "efistub-update.path" détecte le changement et fait appel à "efistub-update.service" pour recopier les fichiers ... Mais je ne vois/comprends pas le lien qui existe entre les deux ??

Et pourtant, après ma maj d'hier, j'ai dû recommencer la manip avec le cd live ....

Une idée ?

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

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par benjarobin »

Ce serait intéressant de faire ce test (normalement cela devrait fonctionner, bien que je préfère cette méthode https://wiki.archlinux.fr/ESP#D.C3.A9pl ... ns_l.27ESP)

Code : Tout sélectionner

pacman -S linux
systemctl status -l efistub-update.path
journalctl -b -u efistub-update.path
systemctl status -l efistub-update.service
journalctl -b -u efistub-update.service
Le lien qu'il existe entre les 2 : ils possèdent le même nom
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Xorg
Maître du Kyudo
Messages : 1933
Inscription : dim. 22 janv. 2012, 19:25
Localisation : Entre le clavier et la chaise.

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par Xorg »

Urania a écrit :Et pourtant, après ma maj d'hier, j'ai dû recommencer la manip avec le cd live ....
J'avoue que le truc du path, j'avais déjà essayé, et il y a quelque chose que je ne comprenais pas non plus : le fichier était bien copié, et pourtant ça ne fonctionnait pas au boot, j'étais aussi obligé de démarrer depuis un Live, de réinstaller le noyau et de copier le fichier à la main.

Les méthodes avec Mkinitcpio ne m'ont jamais posé de problèmes, bien que je préfère le déplacement.
Arch Linux x86_64 - Sway
AMD Ryzen 5 3600X - 32 Go de DDR4 - SSD NVMe 1 To + SSD SATA 250 Go - Sapphire NITRO+ Radeon RX 580
Image AUR___Image Wiki___Image GitHub
Avatar de l’utilisateur
waitnsea
Maître du Kyudo
Messages : 2114
Inscription : jeu. 15 mars 2012, 05:08

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par waitnsea »

Bonjour,
Donne la ligne complète, dans ton fstab, qui monte ton /boot/efi (histoire de vérifier qu'il n'y a pas d'option de montage incompatible)
Urania
Hankyu
Messages : 47
Inscription : dim. 19 juil. 2015, 17:36

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par Urania »

# /dev/sda1
UUID=E187-CD76 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
Urania
Hankyu
Messages : 47
Inscription : dim. 19 juil. 2015, 17:36

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par Urania »

pacman -S linux

Code : Tout sélectionner

>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.1.5-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [openswap]
  -> Running build hook: [lvm2]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.1.5-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [openswap]
  -> Running build hook: [lvm2]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
systemctl status -l efistub-update.path

Code : Tout sélectionner

efistub-update.path - copy EFIStub Kernel to UEFISYS Partition
   Loaded: loaded (/etc/systemd/system/efistub-update.path; enabled; vendor preset: disabled)
   Active: active (waiting) since ven. 2015-08-21 14:17:07 EEST; 39min ago

août 21 14:17:07 Findus systemd[1]: Started copy EFIStub Kernel to UEFISYS Partition.
journalctl -b -u efistub-update.path

Code : Tout sélectionner

 journalctl -b -u efistub-update.path
-- Logs begin at dim. 2015-07-19 20:57:57 EEST, end at ven. 2015-08-21 14:57:18 EEST. --
août 21 14:17:07 Findus systemd[1]: Started copy EFIStub Kernel to UEFISYS Partition.

systemctl status -l efistub-update.service

Code : Tout sélectionner

 systemctl status -l efistub-update.service
â efistub-update.service - copy EFISTUB kernel to UEFISTUB Partition
   Loaded: loaded (/etc/systemd/system/efistub-update.service; static; vendor preset: disabled)
   Active: inactive (dead) since ven. 2015-08-21 14:54:49 EEST; 4min 14s ago
  Process: 26554 ExecStart=/usr/bin/cp -f /boot/initramfs-linux.img /boot/initramfs-linux-fallback.img /boot/efi/EFI/arch/ (code=exited, status=0/SUCCESS)
  Process: 26551 ExecStart=/usr/bin/cp -f /boot/vmlinuz-linux /boot/efi/EFI/arch/vmlinuz-linux (code=exited, status=0/SUCCESS)
 Main PID: 26554 (code=exited, status=0/SUCCESS)

août 21 14:54:49 Findus systemd[1]: Starting copy EFISTUB kernel to UEFISTUB Partition...
août 21 14:54:49 Findus systemd[1]: Started copy EFISTUB kernel to UEFISTUB Partition.

journalctl -b -u efistub-update.service

Code : Tout sélectionner

journalctl -b -u efistub-update.service
-- Logs begin at dim. 2015-07-19 20:57:57 EEST, end at ven. 2015-08-21 14:59:51 EEST. --
août 21 14:54:23 Findus systemd[1]: Starting copy EFISTUB kernel to UEFISTUB Partition...
août 21 14:54:23 Findus cp[23300]: /usr/bin/cp: impossible d'évaluer « /boot/vmlinuz-linux »: Aucun fichier ou dossier de ce type
août 21 14:54:23 Findus systemd[1]: efistub-update.service: Main process exited, code=exited, status=1/FAILURE
août 21 14:54:23 Findus systemd[1]: Failed to start copy EFISTUB kernel to UEFISTUB Partition.
août 21 14:54:23 Findus systemd[1]: efistub-update.service: Unit entered failed state.
août 21 14:54:23 Findus systemd[1]: efistub-update.service: Failed with result 'exit-code'.
août 21 14:54:24 Findus systemd[1]: Starting copy EFISTUB kernel to UEFISTUB Partition...
août 21 14:54:24 Findus systemd[1]: Started copy EFISTUB kernel to UEFISTUB Partition.
août 21 14:54:40 Findus systemd[1]: Starting copy EFISTUB kernel to UEFISTUB Partition...
août 21 14:54:40 Findus systemd[1]: Started copy EFISTUB kernel to UEFISTUB Partition.
août 21 14:54:49 Findus systemd[1]: Starting copy EFISTUB kernel to UEFISTUB Partition...
août 21 14:54:49 Findus systemd[1]: Started copy EFISTUB kernel to UEFISTUB Partition.

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

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par benjarobin »

Ton efistub-update.service est faux...

Code : Tout sélectionner

/usr/bin/cp -f /boot/vmlinuz-linux /boot/efi/EFI/arch/vmlinuz-linux
au lieu de

Code : Tout sélectionner

/usr/bin/cp -f /boot/vmlinuz-linux /boot/efi/EFI/arch/vmlinuz-linux.efi
Donc corrige la chose et supprime

Code : Tout sélectionner

/boot/efi/EFI/arch/vmlinuz-linux
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Urania
Hankyu
Messages : 47
Inscription : dim. 19 juil. 2015, 17:36

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par Urania »

Ouppsss .... C'est ce qui arrive lorsque l'on fait 36 choses à la fois :(
On verra si cela fonctionne lors du prochaine update ...

Merci
Avatar de l’utilisateur
waitnsea
Maître du Kyudo
Messages : 2114
Inscription : jeu. 15 mars 2012, 05:08

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par waitnsea »

Urania a écrit :# /dev/sda1
UUID=E187-CD76 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
vfat et relatime sont incompatibles, tu ne réussiras jamais un montage au boot en les laissant. Tu dois essayer avec

Code : Tout sélectionner

defaults
au lieu de

Code : Tout sélectionner

rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
et tu verras après à changer les options une à une
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17618
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par benjarobin »

@waitnsea Euh ?! Pas vraiment.
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
waitnsea
Maître du Kyudo
Messages : 2114
Inscription : jeu. 15 mars 2012, 05:08

Re: [BOOT EFI] boot-efi.mount failed / Après une màj / Linux 4.1.3-1

Message par waitnsea »

Il me semble que le FAT32 ne supporte pas cette option.
J'avais monté /boot/efi en relatime et n'arrivais à booter qu'en commentant la ligne.
J'ai testé les options dans l'éditeur en regardant le retour d'erreur avec

Code : Tout sélectionner

mount -a
et c'est ce que m'a retourné la commande.
Répondre