Page 1 sur 1

[Chroot]could not determine filesystem mount points(résolu)

Publié : sam. 17 mars 2012, 10:36
par Distag
Bonjour,

Ce matin j'ai fait une mise a jour de mon systeme. Il y avait une mise a jour du packet linux et d'autre packets. Le premier truc qui m'a paru suspect etait que les clefs de certain packets etaient corrompu. J'ai continué mon installation en ne mettant pas a jour les packets corrompus. Je quite mon PC et je l'etient. Puis plus tard, j'essaye de le realumer et j'ai un probleme. Apparemment, d'apres les log de pacman que j'ai reussi a recupperer avec SystemRescueCd, les modules intel_agp, i915 et ext4 n'ont pas ete trouvé lors de la mise a jour du kernel. Ce qui est problematique, car grub doit lancé au demarage mon noyau avec root=/dev/sda3 qui lui est en ext4, je me retrouve donc avec un jolie message du noyau qui me dit qu'il ne peut pas acceder a ma partition racine.
Pour essayer de regler le probleme, je suis actuellement en chroot sur cette partition racine, j'ai essaye de remettre a jour le packet linux, mais pacman me revoie l'erreur:

Code : Tout sélectionner

error: could not determine filesystem mount points
error: not enough free disk space
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
Quelqu'un peut-il m'aider, car là je suis a limite de mes connaissances et je ne sais pas comment regler ce probleme de chroot, ni comment trouver par la suite d'ou vient ce probleme de mise a jour.
Merci d'avance.

Re: [Chroot & Màj] could not determine filesystem mount poin

Publié : sam. 17 mars 2012, 10:54
par FoolEcho
De quand date ta mise à jour précédente ? Si c'est récent (et vu les modules non trouvés), je pense que tu es dans un cas différent de https://bbs.archlinux.org/viewtopic.php?id=133927 , donc ne te précipite pas.
Il nous faudrait quelques infos en plus:
- la partie du log de pacman qui correspond au début de tes ennuis
- mount ; df -m
- pacman -Qik linux

Re: [Chroot & Màj] could not determine filesystem mount poin

Publié : sam. 17 mars 2012, 11:22
par Distag
Je fais une mise a jour presque tous les jours.

A partir du chroot:

Code : Tout sélectionner

[2012-03-17 09:08] Running 'pacman -Sy'
[2012-03-17 09:08] synchronizing package lists
[2012-03-17 09:08] Running 'pacman -S -u'
[2012-03-17 09:08] starting full system upgrade
[2012-03-17 09:10] Running 'pacman -Sy'
[2012-03-17 09:10] synchronizing package lists
[2012-03-17 09:10] Running 'pacman -S -u'
[2012-03-17 09:10] starting full system upgrade
[2012-03-17 09:10] Running 'pacman -S extra/libreoffice-fr'
[2012-03-17 09:10] Running 'pacman -S extra/libreoffice-fr'
[2012-03-17 09:10] Running 'pacman -Rcsn libreoffice-fr'
[2012-03-17 09:10] removed libreoffice-writer (3.4.5-2)
[2012-03-17 09:10] removed libreoffice-common (3.4.5-2)
[2012-03-17 09:10] removed libreoffice-fr (3.4.5-2)
[2012-03-17 09:10] removed libwps (0.2.2-2)
[2012-03-17 09:10] removed graphite (1:1.0.3-1)
[2012-03-17 09:10] removed hyphen (2.8.3-1)
[2012-03-17 09:10] removed libtextcat (2.2-9)
[2012-03-17 09:10] removed orbit2 (2.14.19-2)
[2012-03-17 09:10] removed redland (1:1.0.15-3)
[2012-03-17 09:10] removed libwpd (0.9.2-2)
[2012-03-17 09:10] removed libidl2 (0.8.14-2)
[2012-03-17 09:10] removed rasqal (1:0.9.28-1)
[2012-03-17 09:10] removed raptor (2.0.6-1)
[2012-03-17 09:10] Running 'pacman -Sy'
[2012-03-17 09:10] synchronizing package lists
[2012-03-17 09:10] Running 'pacman -S -u'
[2012-03-17 09:10] starting full system upgrade
[2012-03-17 09:11] Running 'pacman -Rcsn smbclient'
[2012-03-17 09:11] Running 'pacman -S extra/libreoffice-fr'
[2012-03-17 09:11] Running 'pacman -Sy'
[2012-03-17 09:11] synchronizing package lists
[2012-03-17 09:11] Running 'pacman -S core/util-linux core/e2fsprogs core/udev core/linux core/krb5 extra/xproto extra/libxt extra/libx11 extra/xf86-input-synaptics extra/libwbclient multilib/lib32-libx11'
[2012-03-17 09:12] upgraded udev (181-4 -> 181-5)
[2012-03-17 09:12] upgraded util-linux (2.21-5 -> 2.21-6)
[2012-03-17 09:12] upgraded e2fsprogs (1.42-1 -> 1.42.1-1)
[2012-03-17 09:12] error: could not extract lib/modules/3.2.11-1-ARCH/kernel/drivers/net/ethernet/atheros/atl1c/atl1c.ko.gz (Lzma library error: Corrupted input data)
[2012-03-17 09:12] error: problem occurred while upgrading linux
[2012-03-17 09:12] >>> Updating module dependencies. Please wait ...
[2012-03-17 09:12] >>> Generating initial ramdisk, using mkinitcpio.  Please wait...
[2012-03-17 09:12] ==> Building image from preset: 'default'
[2012-03-17 09:12]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2012-03-17 09:12] ==> Starting build: 3.2.11-1-ARCH
[2012-03-17 09:12]   -> Parsing hook: [autodetect]
[2012-03-17 09:12]   -> Parsing hook: [base]
[2012-03-17 09:12]   -> Parsing hook: [udev]
[2012-03-17 09:12]   -> Parsing hook: [sata]
[2012-03-17 09:12] ==> ERROR: module not found: `intel_agp'
[2012-03-17 09:12] ==> ERROR: module not found: `i915'
[2012-03-17 09:12] ==> ERROR: module not found: `ext4'
[2012-03-17 09:12] ==> WARNING: No modules were added to the image. This is probably not what you want.
[2012-03-17 09:12] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2012-03-17 09:12] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2012-03-17 09:12] ==> Image generation successful
[2012-03-17 09:12] ==> Building image from preset: 'fallback'
[2012-03-17 09:12]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2012-03-17 09:12] ==> Starting build: 3.2.11-1-ARCH
[2012-03-17 09:12]   -> Parsing hook: [base]
[2012-03-17 09:12]   -> Parsing hook: [udev]
[2012-03-17 09:12]   -> Parsing hook: [sata]
[2012-03-17 09:12] ==> ERROR: module not found: `intel_agp'
[2012-03-17 09:12] ==> ERROR: module not found: `i915'
[2012-03-17 09:12] ==> ERROR: module not found: `ext4'
[2012-03-17 09:12] ==> WARNING: No modules were added to the image. This is probably not what you want.
[2012-03-17 09:12] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
[2012-03-17 09:12] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2012-03-17 09:12] ==> Image generation successful
[2012-03-17 09:12] upgraded linux (3.2.9-1 -> 3.2.11-1)
[2012-03-17 09:38] Running 'pacman -Sy'
[2012-03-17 09:38] synchronizing package lists
[2012-03-17 09:40] Running 'pacman -Sy'
[2012-03-17 09:40] synchronizing package lists
[2012-03-17 09:40] starting full system upgrade
[2012-03-17 09:42] Running 'pacman -Sy'
[2012-03-17 09:42] synchronizing package lists
[2012-03-17 09:45] Running 'pacman -Sy'
[2012-03-17 09:45] synchronizing package lists
[2012-03-17 09:46] Running 'pacman -Syf base'
[2012-03-17 09:46] synchronizing package lists
[2012-03-17 09:50] Running 'pacman -Syf base'
[2012-03-17 09:50] synchronizing package lists
[2012-03-17 09:52] Running 'pacman -Sy base'
[2012-03-17 09:52] synchronizing package lists
[2012-03-17 10:04] Running 'pacman -Sy'
[2012-03-17 10:04] synchronizing package lists
[2012-03-17 10:04] Running 'pacman -Sy'
[2012-03-17 10:04] synchronizing package lists
[2012-03-17 10:04] starting full system upgrade
[2012-03-17 10:06] Running 'pacman -Sy'
[2012-03-17 10:06] synchronizing package lists
[2012-03-17 10:06] starting full system upgrade
[2012-03-17 10:09] Running 'pacman -S linux'
[2012-03-17 10:12] Running 'pacman -U /var/cache/pacman/pkg/linux-3.2.11-1-x86_64.pkg.tar.xz'
[2012-03-17 10:29] Running 'pacman -S linux'

Code : Tout sélectionner

~ # mount ; df -m
warning: failed to read mtab
df: cannot read table of mounted file systems: No such file or directory

Code : Tout sélectionner

~ # pacman -Qik linux
Name           : linux
Version        : 3.2.11-1
URL            : http://www.kernel.org/
Licenses       : GPL2
Groups         : base
Provides       : kernel26
Depends On     : coreutils  linux-firmware  module-init-tools>=3.16  mkinitcpio>=0.7
Optional Deps  : crda: to set the correct wireless channels of your country
Required By    : None
Conflicts With : kernel26
Replaces       : kernel26
Installed Size : 58812.00 KiB
Packager       : Tobias Powalowski <tpowa@archlinux.org>
Architecture   : x86_64
Build Date     : Thu Mar 15 09:27:07 2012
Install Date   : Sat Mar 17 09:12:09 2012
Install Reason : Explicitly installed
Install Script : Yes
Description    : The Linux Kernel and modules

[…Plus de 2000 lignes d'erreur…]

linux: 3599 total files, 2645 missing files
Deja si je peux refaire une mise a jour sur le chroot ce serait bien, mais pour l'instant c'est impossible.

Pour le chroot, j'ai fait comme ceci:

Code : Tout sélectionner

cd /
mkdir toto
mount /dev/sda3 /toto
mount /dev/sda4 /toto/home
mount /dev/sda1 /toto/boot
cp /etc/resolve.conf /toto/etc/resolve.conf 
chroot /toto /bin/bash

Re: [Chroot & Màj] could not determine filesystem mount poin

Publié : sam. 17 mars 2012, 11:42
par tyctyc
Salut

Tu n'utilise pas les UUID dans ton fstab pour identifier tes partitions???

J'ai vu que dans ton 1er message tu parler de root=/dev/sda3.

peut-être qu'il n'arrive pas identifier les partitions.

En plus sa fonctionne beaucoup mieux avec les UUID javait déjà eu des soucie sans les UUID

Re: [Chroot & Màj] could not determine filesystem mount poin

Publié : sam. 17 mars 2012, 11:50
par Distag
Dans fstab, c'est des UUID.
Mais le probleme vient du noyau auquel il manque des modules comme le montre le log ci-dessus, pacman a installé un noyau incomplet. Si je pouvais le mettre a jour, je pense que je n'aurais plus de probleme sauf que comme je suis sous chroot pour debuger, il me refuse de faire des mises a jour.

Re: [Chroot & Màj] could not determine filesystem mount poin

Publié : sam. 17 mars 2012, 12:19
par FoolEcho
Ton chroot n'est pas correct, il te faut aussi monter les fichiers spéciaux:

Code : Tout sélectionner

mount --bind /dev /toto/dev
mount -t sysfs sys /toto/sys/
mount -t proc /proc /toto/proc
(il y a /mnt sinon, plutôt que "toto" :mrgreen: )

Re: [Chroot & Màj] could not determine filesystem mount poin

Publié : sam. 17 mars 2012, 12:33
par Distag
C'est sur que cela mache mieux quand on a tous les fichiers utils.
Moral, de l'histoire toujours regarder ce que pacman renvoie lors de l'instalation du noyaux.

Merci a tous, sujet resolu.