[Kernel] Maj qui s'est mal passée (résolu)

Reconnaissance et configuration du matériel / kernel linux
Lultime
newbie
Messages : 4
Inscription : mer. 07 août 2013, 16:29

[Kernel] Maj qui s'est mal passée (résolu)

Message par Lultime »

Salut,

Hier j'ai mis à jour le kernel, et il y a eu un problème : une image ne s'est pas créée (laquelle, je ne sais plus), et j'ai éteint le PC. Donc évidemment, à chaque fois que je veux le démarrer, j'ai droit à ce message d'erreur :

Code : Tout sélectionner

Waiting 10 for device /dev/sda2 ...
ERROR: device '/dev/sda2' not found. Skipping fsck
ERROR: Unable to find root device '/dev/sda2'.
You are being dropped to a recovery shell
   Type 'exit' to try and continue booting
sh: can't access tty; job control turned off
Alors j'ai fait un live CD (avec lequel j'ai booté, bien sûr), puis j'ai vérifié le système de fichier avec e2fsck, et enfin j'ai réinstaller le kernel. Tous ça s'est fait sans problème, pourtant j'ai toujours le même message d'erreur. Donc le problème ne vient pas de là, je pense.
Le message dit que l'ordinateur ne trouve pas /dev/sda2. Des idées pour corriger ça ?

Merci à tous ceux qui m'aideront,
Lultime
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17625
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [Kernel] Maj qui s'est mal passée

Message par benjarobin »

1) Comment as tu réinstallé le kernel ? L'as tu bien fait avec pacman depuis un chroot ?
2) Je te conseil vivement l'utilisation d'UUID
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Lultime
newbie
Messages : 4
Inscription : mer. 07 août 2013, 16:29

Re: [Kernel] Maj qui s'est mal passée

Message par Lultime »

1) Oui.
2) Qu'est-ce ? Et surtout comment ça s'utilise ?
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17625
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [Kernel] Maj qui s'est mal passée

Message par benjarobin »

Une partition peux être identifié de 3 manières :
- Via la notation sdXY

Code : Tout sélectionner

ls -l /dev/sda6
brw-rw---- 1 root disk 8, 6  7 août  12:01 /dev/sda6
- Via son label :

Code : Tout sélectionner

ls -l /dev/disk/by-label/ArchLinux
lrwxrwxrwx 1 root root 10  7 août  12:01 /dev/disk/by-label/ArchLinux -> ../../sda6
- Via son UUID :

Code : Tout sélectionner

ls -l /dev/disk/by-uuid/e77bc280-de5d-464d-8790-05b5f1598505
lrwxrwxrwx 1 root root 10  7 août  12:01 /dev/disk/by-uuid/e77bc280-de5d-464d-8790-05b5f1598505 -> ../../sda6
Ici pour sda6, l'UUID est e77bc280-de5d-464d-8790-05b5f1598505.
Alors pourquoi utiliser un UUID : Tout simplement car la notation /dev/sdXY n'est pas constante dans le temps si tu as plusieurs disques, sda et sdb peuvent s'inverser

Une commande utile pour connaitre les UUID / label est blkid, à exécuter en root
Après il suffit d'éditer ton fstab et surtout ton fichier de configuration de ton bootloader pour utiliser les UUID

Bien que ce soit une bonne pratique, je ne sais pas si cela résoudra ton souci.
- Tu n'as pas de partition /boot spéraré
- Peut-on avoir la fin du log de pacman (/var/log/pacman.log), typiquement depuis la dernière mise à jour
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Lultime
newbie
Messages : 4
Inscription : mer. 07 août 2013, 16:29

Re: [Kernel] Maj qui s'est mal passée

Message par Lultime »

Le fstab était déjà correct et le fichier de configuration du bootloader (/boot/syslinux/syslinux.cfg) utilisent désormais les UUIID (je l'ai corrigé), mais ça n'a rien changé, si ce n'est le message d'erreur (puisqu'il ne désigne plus /dev/sda2).

J'ai une partition /boot séparée.
Voici le log de pacman (d'abord la première maj qui a foiré, puis celle que j'ai refaite après en chroot) :

Code : Tout sélectionner

[2013-08-07 00:22] [ALPM] error: could not extract usr/lib/modules/3.10.5-1-ARCH/kernel/drivers/video/via/viafb.ko.gz (Lzma library error: Corrupted input data)
[2013-08-07 00:22] [ALPM] error: problem occurred while upgrading linux
[2013-08-07 00:22] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2013-08-07 00:22] [ALPM-SCRIPTLET] depmod: ERROR: failed to load symbols from /lib/modules/3.10.5-1-ARCH/kernel/drivers/video/via/viafb.ko.gz: Invalid argument
[2013-08-07 00:22] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio.  Please wait...
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> Starting build: 3.10.5-1-ARCH
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `usbcore'
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> Starting build: 3.10.5-1-ARCH
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `cdrom'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `libosd'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `osd'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `mmc_core'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `sd_mod'
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `usbcore'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `usbcore'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `usbcore'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `snd'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `snd-rawmidi'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `usbcore'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `hv_vmbus'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `lcd'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `usbcore'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `usbcore'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `i2c-core'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `i2c-core'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `i2c-core'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `i2c-core'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `i2c-core'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `i2c-core'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `i2c-core'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `i2c-core'
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> ERROR: module not found: `i2c-core'
[2013-08-07 00:22] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
[2013-08-07 00:22] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2013-08-07 00:22] [PACMAN] upgraded linux (3.10.3-1 -> 3.10.5-1)

[2013-08-07 15:37] [PACMAN] Running 'pacman -S linux'
[2013-08-07 15:38] [ALPM-SCRIPTLET] WARNING: /boot appears to be a separate partition but is not mounted.
[2013-08-07 15:38] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2013-08-07 15:38] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio.  Please wait...
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> Starting build: 3.10.5-1-ARCH
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> Image generation successful
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> Starting build: 3.10.5-1-ARCH
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: bfa
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2013-08-07 15:38] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2013-08-07 15:38] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
[2013-08-07 15:39] [ALPM-SCRIPTLET] ==> Image generation successful
[2013-08-07 15:39] [PACMAN] reinstalled linux (3.10.5-1)
Je n'ai mis que ce qui concernait le paquet linux, car il n'y a que pour ce paquet qu'il y a des erreurs.

Et nouvel élément, je ne sais pas si ça va aidé : quand je veux monté le disque en rootfs (sans live CD), j'ai le message d'erreur suivant :

Code : Tout sélectionner

mount: you must specify the filesystem type
Peut-être que ce n'est pas spécifié dans /boot/syslinux/syslinux.cfg ?
Avatar de l’utilisateur
Ypnose
Maître du Kyudo
Messages : 1363
Inscription : sam. 01 mai 2010, 13:17

Re: [Kernel] Maj qui s'est mal passée

Message par Ypnose »

Code : Tout sélectionner

[2013-08-07 15:38] [ALPM-SCRIPTLET] WARNING: /boot appears to be a separate partition but is not mounted.
Tu n'as pas monté ta partoche /boot avant le chroot (et accessoirement tu n'as pas lu le wiki).
Lultime
newbie
Messages : 4
Inscription : mer. 07 août 2013, 16:29

Re: [Kernel] Maj qui s'est mal passée

Message par Lultime »

Voilà, j'ai encore réinstallé le paquet linux en montant /dev/sda1 dans /boot cette fois-ci... et maintenant tout fonctionne.

Merci beaucoup à vous deux pour votre précieuse aide.
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [Kernel] Maj qui s'est mal passée

Message par FoolEcho »

:resolu: (édition du titre du premier message, stp :chinois: )
«The following statement is not true. The previous statement is true.» :nage:
Répondre