Problèmes et questions concernant le noyau et le support matériel.

Problème après maj foireuse due à une freeze

#1Messageil y a 2 ans

Bonsoir,
J'ai lancé la maj qui m'était proposé en fin d'après-midi et laissé les choses se dérouler.
Quand je suis revenu sur mon ordi, celui-ci s'était bien sûr mis en veille, mais impossible de le réveiller.. je pense qu'un nouveau problème de freeze l'a affecté.
J'ai rebooté avec le bouton reset mais hélas la maj n'a sûrement pas été jusqu'à son terme, je reste bloqué sur le menu du grub, j'ai beau essayer tous les noyaux installés rien n'y fait, ça revient inéluctablement sur le menu grub.

Que dois-je faire ?
Dernière modification par jeanluckil y a 2 ans, modifié au total 3 fois.

Problème après maj foireuse due à une freeze

#2Messageil y a 2 ans

demarrer sur une clé USB manjaro live iso
ouvrir un terminal et un navigateur sur ce topic
*possible que tu dois aussi verifier état de tes fichiers*

et effectuer un chroot

sudo manjaro-chroot -a
<commandes en root>
exit ( fin du chroot )
essaye déjà

sudo manjaro-chroot -a
pacman -Syy ( verification internet/reseau ok )
pacman -Syyu ( finir la maj)
mkinicpio -P ( verifie ici si tout se passe bien )
exit ( fin du chroot )

Problème après maj foireuse due à une freeze

#3Messageil y a 2 ans

j'ai démarré sur une clé usb et j'obtiens ceci pour commencer :


Image

Problème après maj foireuse due à une freeze

#4Messageil y a 2 ans

ensuite à la commande pacman -Syy :

error : failed to synchronize all databases (unable to lock database)

Problème après maj foireuse due à une freeze

#5Messageil y a 2 ans

Bonsoir,
A priori, ta copie d'écran contient plus des warnings que des erreurs.
Pour le message d'erreur sur pacman, ça prouve que ta màj ne s'est pas terminée proprement. Il reste un fichier qui bloque ta nouvelle instance de pacman :

sudo rm /var/lib/pacman/db.lck
puis relance pacman

Bonne chance
Denis

Problème après maj foireuse due à une freeze

#6Messageil y a 2 ans

OK j'ai supprimé ce fichier et continué la suite de la maj qui n'était pas complète.

Mais au redémarrage dans le menu grub je n'ai plus que le noyau 5.4 alors que la commande mhwd-kernel -li me donne :

mhwd-kernel -li
Currently running: 5.4.164-1-MANJARO (linux54)
The following kernels are installed in your system:
   * linux510
   * linux515
   * linux54

Problème après maj foireuse due à une freeze

#7Messageil y a 2 ans

il y a une erreur à la génération de 5.10 et 5.15
refait la commande mkinitcpio -P sous chroot et regarde bien le résultat
tu as sans doute un pacnew non appliqué

Problème après maj foireuse due à une freeze

#8Messageil y a 2 ans

je viens de refaire la commande mkinicpio -P

mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux54.preset: 'default'
  -> -k /boot/vmlinuz-5.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.4-x86_64.img
==> Starting build: 5.4.164-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.4-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux54.preset: 'fallback'
  -> -k /boot/vmlinuz-5.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.4-x86_64-fallback.img -S autodetect
==> Starting build: 5.4.164-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.4-x86_64-fallback.img
==> Image generation successful
au redémarrage je n'ai toujours que le noyau 5.4 dans le menu grub, pourtant

mhwd-kernel -li
Currently running: 5.13.19-2-MANJARO (linux513)
The following kernels are installed in your system:
   * linux510
   * linux515
   * linux54
ce qui est bizarre, c'est indiqué que le 5.13 est utilisé

Problème après maj foireuse due à une freeze

#9Messageil y a 2 ans

Personne pour m'aider à me sortir de cette impasse ??? :sos:

Problème après maj foireuse due à une freeze

#10Messageil y a 2 ans

C'est assez curieux, mais il y a de plus en plus de cas de traces de noyaux fantômes ou non reconnus...
Donne nous le retour de :

ls /etc/mkinitcpio.d/
ls /boot/
Perso, je tenterais ceci:

sudo mhwd-kernel -i linux515 rmc
sudo update-grub
Si tu as les deux entrées voire trois, c'est bon, on fera du ménage dans /etc/mkinitcpio.d/ en virant tous les *preset qui ne correspondent pas au retour de mhwd-kernel -li
et aussi les fichiers *.initramfs*.kver et vmlinuz-* dans /boot non listés.

Problème après maj foireuse due à une freeze

#11Messageil y a 2 ans

voici le résultat des 3 premières commandes :

ls /etc/mkinitcpio.d/
linux513.preset
[manjaro@manjaro ~]$ ls /boot/
amd-ucode.img                       initramfs-5.13-x86_64.img  memtest86+
grub                                intel-ucode.img            vmlinuz-5.13-x86_64
initramfs-5.13-x86_64-fallback.img  linux513-x86_64.kver
[manjaro@manjaro ~]$ sudo mhwd-kernel -i linux515 rmc
avertissement : database file for 'core' does not exist (use '-Sy' to download)
avertissement : database file for 'extra' does not exist (use '-Sy' to download)
avertissement : database file for 'community' does not exist (use '-Sy' to download)
avertissement : database file for 'multilib' does not exist (use '-Sy' to download)
avertissement : database file for 'core' does not exist (use '-Sy' to download)
avertissement : database file for 'extra' does not exist (use '-Sy' to download)
avertissement : database file for 'community' does not exist (use '-Sy' to download)
avertissement : database file for 'multilib' does not exist (use '-Sy' to download)
avertissement : database file for 'core' does not exist (use '-Sy' to download)
avertissement : database file for 'extra' does not exist (use '-Sy' to download)
avertissement : database file for 'community' does not exist (use '-Sy' to download)
avertissement : database file for 'multilib' does not exist (use '-Sy' to download)
Error: Please make sure if the given kernel(s) exist(s).
available kernels:
[manjaro@manjaro ~]$ 

Problème après maj foireuse due à une freeze

#12Messageil y a 2 ans

bonsoir

je pense que la version 5.13 est celle de la clé USB
donc on passe par chroot
==> supprime les preset obsoletes ( anciens noyaux )
==> supprime aussi les versions anciennes de modules
==> regenerer les images pour les 3 noyaux ( 515 , 510 , 54 ,)

sudo manjaro-chroot -a
mhwd-kernel -li
ls /etc/mkinitcpio.d/*.preset
ls /boot/*
ls /lib/modules/*

mkinitcpio -P
exit ( fin du chroot )
Dernière modification par stephaneil y a 2 ans, modifié au total 2 fois.

Problème après maj foireuse due à une freeze

#13Messageil y a 2 ans

Voici le résultat :

sudo manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda2]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro /]# mhwd-kernel -li
Currently running: 5.13.19-2-MANJARO (linux513)
The following kernels are installed in your system:
   * linux510
   * linux515
   * linux54
[manjaro /]# ls /etc/mkinitcpio.d/*.preset
/etc/mkinitcpio.d/linux54.preset
[manjaro /]# ls /boot/
amd-ucode.img  initramfs-5.4-x86_64-fallback.img  linux515-x86_64.kver  vmlinuz-5.4-x86_64
efi            initramfs-5.4-x86_64.img           linux54-x86_64.kver
grub           linux510-x86_64.kver               memtest86+
[manjaro /]# ls /usr/bin/modules/
ls: cannot access '/usr/bin/modules/': No such file or directory
[manjaro /]# ls /usr/lib/modules/
5.10.84-1-MANJARO  5.4.164-1-MANJARO          extramodules-5.15-MANJARO
5.15.7-1-MANJARO   extramodules-5.10-MANJARO  extramodules-5.4-MANJARO
[manjaro /]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux54.preset: 'default'
  -> -k /boot/vmlinuz-5.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.4-x86_64.img
==> Starting build: 5.4.164-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.4-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux54.preset: 'fallback'
  -> -k /boot/vmlinuz-5.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.4-x86_64-fallback.img -S autodetect
==> Starting build: 5.4.164-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.4-x86_64-fallback.img
==> Image generation successful
[manjaro /]# mhwd-kernel -li
Currently running: 5.13.19-2-MANJARO (linux513)
The following kernels are installed in your system:
   * linux510
   * linux515
   * linux54
[manjaro /]# exit
exit
 --> umount: [/mnt/boot/efi]
 --> umount: [/mnt]
Je vais éteindre et redémarrer l'ordi...... à plus

Problème après maj foireuse due à une freeze

#14Messageil y a 2 ans

Bon j'ai enlevé la clé usb et redémarré l'ordi, mais dans le menu grub toujours 1 seul noyau, le 5.4 sur lequel je suis à présent.
Pourtant :

mhwd-kernel -li
Currently running: 5.4.164-1-MANJARO (linux54)
The following kernels are installed in your system:
   * linux510
   * linux515
   * linux54

Problème après maj foireuse due à une freeze

#15Messageil y a 2 ans

vu
tu n'as qu'un seul fichier /etc/mkinitcpio.d/linux54.preset ,

idem par chroot

sudo manjaro-chroot -a
cp /etc/mkinitcpio.d/linux54.preset  /etc/mkinitcpio.d/linux510.preset
cp /etc/mkinitcpio.d/linux54.preset  /etc/mkinitcpio.d/linux515.preset

puis tu edite ( mettre 5.4 en 5.10 Ctrl+x et O pour sauver)
nano /etc/mkinitcpio.d/linux510.preset

puis tu edite ( mettre 5.4 en 5.15 Ctrl+x et O pour sauver)
nano /etc/mkinitcpio.d/linux515.preset

mkinitcpio -P
sync
exit 
et tu redémarre

ou si tu demarre sous 5.4

sudo cp /etc/mkinitcpio.d/linux54.preset  /etc/mkinitcpio.d/linux510.preset
sudo cp /etc/mkinitcpio.d/linux54.preset  /etc/mkinitcpio.d/linux515.preset

puis tu edite ( mettre 5.4 en 5.10 Ctrl+x et O pour sauver)
sudo nano /etc/mkinitcpio.d/linux510.preset

puis tu edite ( mettre 5.4 en 5.15 Ctrl+x et O pour sauver)
sudo nano /etc/mkinitcpio.d/linux515.preset

sudo mkinitcpio -P
et tu redémarre
Dernière modification par stephaneil y a 2 ans, modifié au total 3 fois.

Problème après maj foireuse due à une freeze

#16Messageil y a 2 ans

Bonjour,

questions avant de procéder aux commandes données :

* pourquoi, Stephane, tu me parles du noyau 5.11 qui n'existe pas ? ne serait-ce pas plutôt le 5.15 ?

* n'y a-t-il pas un risque de mettre le 5.4 en une autre version, agissant sous le noyau 5.4 lui-même ?

Problème après maj foireuse due à une freeze

#17Messageil y a 2 ans

bonjour
1)
Oui, c'est une faute de frappe 511 -> 515
2)
pas compris la question ...
ici tu prends celui qui existe (54) et avec tu vas créer les 2 autres 510 et 515
Dans les "nouveaux" 510 et 515 (donc pas touche à 54 !), tu remplaces 4 fois dans chaque fichier "5.4" par la bonne valeur (5.10 ou 5.15)

A la fin, par exemple, ton linux515.reset ressemblera à la sortie de cette commande

sed 's/5.4/5.15/' /etc/mkinitcpio.d/linux54.preset

Problème après maj foireuse due à une freeze

#18Messageil y a 2 ans

OK merci... voici le résultat pour commencer :

sudo cp /etc/mkinitcpio.d/linux54.preset > /etc/mkinitcpio.d/linux510.preset
sudo cp /etc/mkinitcpio.d/linux54.preset > /etc/mkinitcpio.d/linux515.preset
bash: /etc/mkinitcpio.d/linux510.preset: Permission non accordée
bash: /etc/mkinitcpio.d/linux515.preset: Permission non accordée

Problème après maj foireuse due à une freeze

#19Messageil y a 2 ans

oui, on ne peut faire une redirection avec sudo
EDIT: oops heureusement que stephane est réveillé ! pas moi :rigole:

su
cp /etc/mkinitcpio.d/linux54.preset  /etc/mkinitcpio.d/linux510.preset
cp /etc/mkinitcpio.d/linux54.preset  /etc/mkinitcpio.d/linux515.preset
exit
puis edition de ces 2 fichiers

Problème après maj foireuse due à une freeze

#20Messageil y a 2 ans

ma faute pas de " >" tu aura la copie par cp
Répondre