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

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

#21Messageil y a 2 ans

Bonjour, je viens de faire les diverses commandes mais je pense que cela n'a pas fonctionné...
il me semble que je n'ai toujours que le noyau 5.4
au moment de nano, j'ai fait ctrl + x puis le terminal revient de suite... qu'est-ce que le "o" que tu m'as indiqué, Stephane ?

su
Mot de passe : 
[jean-luc-pc jean-luc]# cp /etc/mkinitcpio.d/linux54.preset  /etc/mkinitcpio.d/linux510.preset
cp : voulez-vous écraser '/etc/mkinitcpio.d/linux510.preset' ? 
[jean-luc-pc jean-luc]# cp /etc/mkinitcpio.d/linux54.preset  /etc/mkinitcpio.d/linux515.preset
[jean-luc-pc jean-luc]# exit
exit
[jean-luc@jean-luc-pc ~]$ sudo nano /etc/mkinitcpio.d/linux510.preset
[sudo] Mot de passe de jean-luc : 
[jean-luc@jean-luc-pc ~]$ sudo nano /etc/mkinitcpio.d/linux515.preset
[jean-luc@jean-luc-pc ~]$ sudo mkinitcpio -P
==> WARNING: Preset file `/etc/mkinitcpio.d/linux510.preset' is empty or does not contain any presets.
==> Building image from preset: /etc/mkinitcpio.d/linux515.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/linux515.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
==> 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
je vais redémarrer...

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

#22Messageil y a 2 ans

Ctrl+X pour sauvegarder et O pour confirmer le nom ( ou entrée )
revérifie le contenu pour le preset linux510 ,
par la suite

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

#23Messageil y a 2 ans

Non, cela n'a pas marché, je n'ai toujours que le 5.4 dans le menu grub

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

#24Messageil y a 2 ans

tu peux démarrer avec la version 5.4 ?
te connecter si probleme en TTY ? ( Ctrl+Alt +F2 a F7 )
==> tu vérifie dans ce cas
1) les versions des fichiers en linux*.preset ( attendu 5.4 , 5.10 et 5.15 )
2) sudo mkinitcpio -P
3) sudo update-grub

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

#25Messageil y a 2 ans

oui je suis en ce moment sous la version 5.4

comment fait-on pour vérifier les versions des fichiers en linux*.preset ?

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

#26Messageil y a 2 ans

sudo cat /etc/mkinitcpio.d/linux54.preset
sudo cat /etc/mkinitcpio.d/linux510.preset
sudo cat /etc/mkinitcpio.d/linux515.preset
sinon

sudo kate /etc/mkinitcpio.d/linux54.preset
sudo kate /etc/mkinitcpio.d/linux510.preset
sudo kate /etc/mkinitcpio.d/linux515.preset
a verifier aussi

sudo lsblk -fs ( UIID pour /boot/efi )
sudo cat /etc/fstab ( UUID doit être le même )
Dernière modification par stephaneil y a 2 ans, modifié au total 1 fois.

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

#27Messageil y a 2 ans

sudo cat /etc/mkinitcpio.d/linux54.preset
[sudo] Mot de passe de jean-luc : 
# mkinitcpio preset file for the 'linux54' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-5.4-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-5.4-x86_64.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-5.4-x86_64-fallback.img"
fallback_options="-S autodetect"
[jean-luc@jean-luc-pc ~]$ sudo cat /etc/mkinitcpio.d/linux510.preset
[jean-luc@jean-luc-pc ~]$ sudo cat /etc/mkinitcpio.d/linux515.preset
# mkinitcpio preset file for the 'linux54' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-5.4-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-5.4-x86_64.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-5.4-x86_64-fallback.img"
fallback_options="-S autodetect"
[jean-luc@jean-luc-pc ~]$ sudo lsblk -fs
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
     squash 4.0                                                    0   100% /var/lib/snapd/snap/core/9993
loop1
     squash 4.0                                                    0   100% /var/lib/snapd/snap/core18/1880
loop2
     squash 4.0                                                    0   100% /var/lib/snapd/snap/gtk2-common-themes/9
loop3
     squash 4.0                                                    0   100% /var/lib/snapd/snap/core18/1885
loop4
     squash 4.0                                                    0   100% /var/lib/snapd/snap/gtk2-common-themes/13
loop5
     squash 4.0                                                    0   100% /var/lib/snapd/snap/gtk-common-themes/1506
loop6
     squash 4.0                                                    0   100% /var/lib/snapd/snap/core/10126
loop7
     squash 4.0                                                    0   100% /var/lib/snapd/snap/gtk-common-themes/1502
loop8
     squash 4.0                                                    0   100% /var/lib/snapd/snap/kde-frameworks-5-core18/32
sda1 vfat   FAT32       BEC2-E59D                             299,1M     0% /boot/efi
└─sda
                                                                            
sda2 ext4   1.0         40e12692-1068-4752-916d-a6de0d785b0c  203,8G    73% /
└─sda
                                                                            
sdb2 ext4   1.0         2c53d9de-7ea7-42ff-ab09-3b3a50a349dd  253,8G     8% /run/media/jean-luc/2c53d9de-7ea7-42ff-ab09-3b3a50a349dd
└─sdb
                                                                            
sr0                                                                         
[jean-luc@jean-luc-pc ~]$ sudo cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=BEC2-E59D                            /boot/efi      vfat    umask=0077 0 2
UUID=40e12692-1068-4752-916d-a6de0d785b0c /              ext4    defaults,noatime 0 1
il semble que c'est vide pour le 5.10

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

#28Messageil y a 2 ans

tu n'es pas capable d'éditer un fichier avec nano :confus::pleure:
sudo cat /etc/mkinitcpio.d/linux515.preset
# mkinitcpio preset file for the 'linux54' package
ALL_kver="/boot/vmlinuz-5.4-x86_64"
Tu vois bien que tu as encore 5.4 dans le fichier linux515.preset alors que nous t'avions dit de remplacer par 5.15 !

Puisque tu es avec kde, tu peux aussi éditer ces 2 fichiers directement avec kate (sans sudo) si c'est plus simple pour toi...

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

#29Messageil y a 2 ans

a refaire pour linux510.preset
et pour la linux515.preset , modifier la valeur dans le fichier

corrige pour les 2 fichiers en erreur
puis

sudo mkinitcpio -P ( vérifie pas  de code erreur )
sudo update-grub 

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

#30Messageil y a 2 ans

échec de nouveau ! j'ai pourtant via Kate rempli le fichier vide du 510 et modifier le 515...

sudo mkinitcpio -P 
[sudo] Mot de passe de jean-luc :  
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default' 
 -> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img 
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.10-x86_64' 
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback' 
 -> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodete
ct 
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.10-x86_64' 
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default' 
 -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img 
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.15-x86_64' 
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback' 
 -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodete
ct 
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.15-x86_64' 
==> 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 
[jean-luc@jean-luc-pc ~]$ sudo update-grub  
Création du fichier de configuration GRUB… 
Thème trouvé : /usr/share/grub/themes/manjaro/theme.txt 
Image Linux trouvée : /boot/vmlinuz-5.4-x86_64 
Image mémoire initiale trouvée : /boot/amd-ucode.img /boot/initramfs-5.4-x86_64.img 
Found initrd fallback image: /boot/initramfs-5.4-x86_64-fallback.img 
Attention : le sondeur de systèmes d'exploitation sera exécuté pour détecter d'autres partitions amorçables. 
Sa sortie sera utilisée pour détecter les binaires amorçables qu'elles contiennent et créer de nouvelles entrées 
d'amorçage. 
Ajout de l'entrée du menu d'amorçage pour les paramètres du firmware UEFI … 
Found memtest86+ image: /boot/memtest86+/memtest.bin 
fait
Image

Image

Image

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

#31Messageil y a 2 ans

puisque tu boot sur le 54,
le plus simple, serait sans doute de supprimer les noyaux 510 et 515 puis les réinstaller

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

#32Messageil y a 2 ans

papajoke a écrit : il y a 2 ans puisque tu boot sur le 54,
le plus simple, serait sans doute de supprimer les noyaux 510 et 515 puis les réinstaller
C'est justement ce que j'avais aussi pensé... solution la plus simple finalement, bon c'est OK maintenant, j'ai bien les 3 kernels dans le menu grub.

Merci à vous.
Répondre