Page 1 sur 1

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

Publié : jeu. 30 juil. 2015, 09:59
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.

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

Publié : jeu. 30 juil. 2015, 10:10
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)

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

Publié : jeu. 30 juil. 2015, 11:14
par Urania
Merci pour votre aide.
Afin d'éviter un autre soucis du même genre, j'ai opté pour la solution: "incrond"

++

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

Publié : ven. 21 août 2015, 07:56
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

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

Publié : ven. 21 août 2015, 09:43
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

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

Publié : ven. 21 août 2015, 11:50
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.

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

Publié : ven. 21 août 2015, 13:15
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)

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

Publié : ven. 21 août 2015, 13:53
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

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

Publié : ven. 21 août 2015, 14:01
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.


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

Publié : ven. 21 août 2015, 14:34
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

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

Publié : ven. 21 août 2015, 14:47
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

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

Publié : ven. 21 août 2015, 17:13
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

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

Publié : ven. 21 août 2015, 17:20
par benjarobin
@waitnsea Euh ?! Pas vraiment.

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

Publié : ven. 21 août 2015, 17:31
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.