Page 1 sur 1

[install] kernel panic - VFS unable to mount root fs

Publié : sam. 07 juin 2008, 22:40
par joel
Bonsoir,

Je pensais avoir tout bien configuré en suivant http://wiki.archlinux.fr/install:chroot
J'ai installé ArchLinux sur /dev/sda5
J'ai installé grub, et modifié /boot/grub/menu.lst depuis Mandriva, en y rajoutant ceci :

title archlinux
kernel (hd0,4)/boot/vmlinuz26 BOOT_IMAGE=archlinux root=/dev/sda5 ro quiet splash

J'avais été surpris de ne pas trouver de initrd.img après avoir installé le kernel par la commande : pacman2 -S kernel26

En effet, dans /boot, je ne trouve que :
grub kernel26-fallback.img kernel26.img System.map26 vmlinuz26

Est-ce normal ?

En tout cas, ça ne vas pas, puisqu'au démarrage, Arch reste bloqué sur ce message :

kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block (0,0)

J'ai trouvé 2 posts sur les forums qui évoquent ce problème, mais je n'y ai pas trouvé de solution (peut-être parce que je n'ai pas tout compris...)
http://forums.archlinux.fr/topic1262.html
http://forums.archlinux.fr/topic1888.html

Publié : sam. 07 juin 2008, 22:51
par warnaud
Salut,
Tu devrais avoir une entrée du style :

Code : Tout sélectionner

title  Arch Linux
root   (hd0,4)
kernel /boot/vmlinuz26 root=/dev/sda5 ro
initrd /boot/kernel26.img

Publié : sam. 07 juin 2008, 22:55
par tuxce
il te faut rajouter la ligne initrd (kernel26.img)
sinon ca serait sympa de formater le titre:
http://forums.archlinux.fr/topic68.html

Publié : sam. 07 juin 2008, 23:16
par joel
Merci à vous deux, warnaud et tuxce,

J'ai donc modifié menu.lst selon vos indications, ce qui me donne maintenant :

Failed to execute init
kernel panic - not syncing : not init found - Try passing init= option to kernel

Vous avez une idée de ce que je dois faire ?
tuxce a écrit :sinon ca serait sympa de formater le titre
Ça vas mieux, comme ça ?

Publié : sam. 07 juin 2008, 23:21
par tuxce
joel a écrit : Failed to execute init
kernel panic - not syncing : not init found - Try passing init= option to kernel
apparemment, il ne trouve pas /boot/kernel26.img, tu es sur que c'est la bonne partition (elle contient bien le / et donc le /boot)?

Publié : sam. 07 juin 2008, 23:40
par joel
tuxce a écrit :apparemment, il ne trouve pas /boot/kernel26.img, tu es sur que c'est la bonne partition (elle contient bien le / et donc le /boot)?
Depuis Mandriva :

[joel@localhost ~] $cat /etc/fstab
/dev/sda5 /x32 ext3 relatime 1 2
[joel@localhost ~] $ls /x32/boot/
grub kernel26-fallback.img kernel26.img System.map26 vmlinuz26

Par contre, au cours de l'install, il a fallu que je relance à plusieurs reprises pacman -S kernel26, parce qu'à chaque fois il échouait parce qu'il lui manquait quelque chose.
J'ai ainsi dû installer successivement : grep, libdownload, libarchive, mkinitcpio, udev, sed, et gzip.

Il manquait aussi find, mais
pacman -S find
error: 'find': not found in sync db

Peut-être qu'avec tous ces essais, au final, le kernel s'est mal installé (pourtant, il y avait quelque chose comme "succes" à la fin...) ?

Publié : sam. 07 juin 2008, 23:57
par mélodie
tuxce a écrit :
joel a écrit : Failed to execute init
kernel panic - not syncing : not init found - Try passing init= option to kernel
apparemment, il ne trouve pas /boot/kernel26.img, tu es sur que c'est la bonne partition (elle contient bien le / et donc le /boot)?
J'ai upgradé le portable vers le kernel 2.6.25 et j'ai le même message (ou très ressemblant). En modifiant la ligne initrd au moment du boot, avec kernel26-fallback.img au lieu de kernel26.img ça boote.

C'est comment déjà la commande avec mkinitcpio pour refaire l'initrd ?

Ah j'ai retrouvé des notes:
"On peut générer un nouveau initrd:
On se positionne n'importe où, pourvu qu'on soit en root:
mkinitcpio -k <numéro_du_kernel> -g /boot/kernel26.img"

C'est bien comme ça ?