View previous topic :: View next topic |
Author |
Message |
elfangor n00b
Joined: 21 May 2008 Posts: 20
|
Posted: Wed May 28, 2008 11:18 am Post subject: [boot-Kernel Panic]VFS unable to mount root fs |
|
|
Bonjour à tous, je suis entrain d'installer gentoo
J'ai compiler mon noyau avec genkernel, formater mes partitions comme dans le guide d'installation(cela correspond à mes besoins).
J'ai cepenndant le message:
Code: |
...
UDF-fs: No partition found (1)
List of all partitions:
0300 19551168 hda driver: ide-disk
0301 40131 hda1
0302 1004062 hda2
0303 18506880
2100 80418240 hde driver: ide-disk
2101 80413326 hde1
0340 4194302 hdb driver: ide-cdrom
No filesystem could mount root, tried: reiserfs ext3 ext4dev ext2 squashfs vfat iso9660 hfsplus hfs ntfs udf xfs
Kernel panic - not syncing/ VFS: Unable to mount root fs on unknown-block(1,0)
|
A noter que je n'utilise qu'un seul de mes deux disques dur present (le hda je croit).
D'apres mes recherches ce serais un problemes de configuration de grub, voici mon grub.conf:
Code: |
default 0
timeout 1
splashimage=(hd0,0) /boot/grub/spash.xpm.gz
title gentoo linux 2.6.23-r8
root(hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r8 root=/dev/ram0 init=linuxrc ramdisk=8192 real_root=/dev/hda3
initdr /boot/initramfs-genkernel-x86-2.6.24-gentoo-r8
|
Merci de votre aide |
|
Back to top |
|
|
UB|K l33t
Joined: 27 May 2004 Posts: 786 Location: Villeurbanne, France
|
Posted: Wed May 28, 2008 11:24 am Post subject: |
|
|
salut,
à priori c'est "root (hd0,0)" qui ne va pas:
si ta partition root est /dev/hda3 alors dans la logique de grub tu devrais avoir:
|
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3634 Location: Belgium
|
Posted: Wed May 28, 2008 11:31 am Post subject: Re: [boot-Kernel Panic]VFS unable to mount root fs |
|
|
elfangor wrote: | initdr /boot/initramfs-genkernel-x86-2.6.24-gentoo-r8 |
Dyslexique ?
La commande, c'est "initrd". C'est donc normal qu'il ne trouve rien dans /dev/ram0 puisque l'initramfs n'a pas pu être chargé |
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3634 Location: Belgium
|
Posted: Wed May 28, 2008 11:37 am Post subject: |
|
|
UB|K wrote: | salut,
à priori c'est "root (hd0,0)" qui ne va pas:
si ta partition root est /dev/hda3 alors dans la logique de grub tu devrais avoir:
|
Ne pas confondre le root de grub et le root de linux !!!!
le root (hd0,0) indique la partition sur laquelle grub va trouver ses stages (et, ici, le noyau).
D'après les éléments donnés, il y a de fortes chances que la partition /boot soit sur /dev/hda1.
C'est donc bien (hd0,0) !
Par contre, la partition racine de linux se trouve sur /dev/hda3 mais cela ne concerne pas grub et il n'y a donc pas lieu de le mettre en notation (hd0,2) |
|
Back to top |
|
|
elfangor n00b
Joined: 21 May 2008 Posts: 20
|
Posted: Wed May 28, 2008 12:31 pm Post subject: Re: [boot-Kernel Panic]VFS unable to mount root fs |
|
|
Merci de vos réponses
ghoti wrote: | elfangor wrote: | initdr /boot/initramfs-genkernel-x86-2.6.24-gentoo-r8 |
Dyslexique ?
La commande, c'est "initrd". C'est donc normal qu'il ne trouve rien dans /dev/ram0 puisque l'initramfs n'a pas pu être chargé |
C'etais bien ça en effet
J'ai cependant une autre erreur:
Code: |
>>Activating mdev
ls: : No such file or directory
>>Determining root device...
>>Mounting root...
mount: Mounting /dev/hda2 on /newroot failed: Invalid argument
!!Could not mount specified ROOT, try again
!!Could not find the root block device in .
Please specify another value or: press Enter for the same, type sheel for a shell or "q" to skip...
|
Il ne trouve pas hda2 si j'ai bien compris?
mon plan de partition:
hda1: boot
hda2: swap
hda3: /
grub:
Code: |
title gentoo linux 2.6.23-r8
root(hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r8 root=/dev/ram0 init=linuxrc ramdisk=8192 real_root=/dev/hda2
initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r8
|
Encore merci
Edit: je croie que je confond la numerotation grub et la numerotation des disk
je vais tester avec:
Code: |
kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r8 root=/dev/ram0 init=linuxrc ramdisk=8192 real_root=/dev/hda3
|
resultat:
Code: |
>>Activating mdev
ls: : No such file or directory
>>Determining root device...
>>Mounting root...
mknod: /newroot/dev/console: No such file or directory
mknod: /newroot/dev/tty1: No such file or directory
>>Booting (initramfs)..
switch_root: bad console ' /dev/console'
Kernel panic è not syncing: Attempted to kill init!
|
Je suis un peu perdu la :s Je ne comprend pas ce qui ne marche pas et je ne sais pas quoi rechercher sur google :s |
|
Back to top |
|
|
ghoti Advocate
Joined: 30 Dec 2002 Posts: 3634 Location: Belgium
|
Posted: Wed May 28, 2008 12:59 pm Post subject: Re: [boot-Kernel Panic]VFS unable to mount root fs |
|
|
elfangor wrote: | >>Mounting root...
mount: Mounting /dev/hda2 on /newroot failed: Invalid argument
!!Could not mount specified ROOT, try again |
Dans /etc/fstab, ROOT, BOOT et SWAP sont à remplacer par leurs vraies valeurs !!! |
|
Back to top |
|
|
NEOxAKIRA Guru
Joined: 20 May 2007 Posts: 302 Location: France
|
Posted: Wed May 28, 2008 8:59 pm Post subject: |
|
|
Code: | # mknod -m 660 /mnt/gentoo/dev/console c 5 1
# mknod -m 660 /mnt/gentoo/dev/null c 1 3
# mknod -m 660 /mnt/gentoo/dev/tty1 c 4 1
|
ces trois commandes effectuées à partir d'un cd live et après avoir monter ta partition root dans /mnt/gentoo/ devraient résoudre tes deux problèmes suivants :
Code: | mknod: /newroot/dev/console: No such file or directory
mknod: /newroot/dev/tty1: No such file or directory |
|
|
Back to top |
|
|
|