[install] kernel panic - VFS unable to mount root fs
[install] kernel panic - VFS unable to mount root fs
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
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
Dernière modification par joel le sam. 07 juin 2008, 23:07, modifié 1 fois.
- warnaud
- Maître du Kyudo
- Messages : 1640
- Inscription : ven. 11 août 2006, 17:05
- Localisation : Rolle (CH)
Salut,
Tu devrais avoir une entrée du style :
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
Plus ça rate, plus ça a de chance de réussir. En somme, un succès n'est qu'une erreur qui a finit par réussir (même par erreur). Ne déséspérez donc pas et perseverez. Utilisez La Rache™
Patientia quod lard quod barrus planto diligo ut licentia
—¤÷(`[¤*Powered By *¤]´)÷¤—
Archlinux ~ Fvwm ~ Irssi ~ URxvt
Patientia quod lard quod barrus planto diligo ut licentia
—¤÷(`[¤*Powered By *¤]´)÷¤—
Archlinux ~ Fvwm ~ Irssi ~ URxvt
il te faut rajouter la ligne initrd (kernel26.img)
sinon ca serait sympa de formater le titre:
http://forums.archlinux.fr/topic68.html
sinon ca serait sympa de formater le titre:
http://forums.archlinux.fr/topic68.html
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 ?
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 ?
Ça vas mieux, comme ça ?tuxce a écrit :sinon ca serait sympa de formater le titre
Depuis Mandriva :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)?
[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...) ?
- mélodie
- Maître du Kyudo
- Messages : 2784
- Inscription : lun. 30 oct. 2006, 02:06
- Localisation : Pyrénées
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.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)?joel a écrit : Failed to execute init
kernel panic - not syncing : not init found - Try passing init= option to kernel
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 ?