Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[boot-Kernel Panic]VFS unable to mount root fs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
elfangor
n00b
n00b


Joined: 21 May 2008
Posts: 20

PostPosted: Wed May 28, 2008 11:18 am    Post subject: [boot-Kernel Panic]VFS unable to mount root fs Reply with quote

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
View user's profile Send private message
UB|K
l33t
l33t


Joined: 27 May 2004
Posts: 786
Location: Villeurbanne, France

PostPosted: Wed May 28, 2008 11:24 am    Post subject: Reply with quote

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:
Code:
root (hd0,2)
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3634
Location: Belgium

PostPosted: Wed May 28, 2008 11:31 am    Post subject: Re: [boot-Kernel Panic]VFS unable to mount root fs Reply with quote

elfangor wrote:
initdr /boot/initramfs-genkernel-x86-2.6.24-gentoo-r8

Dyslexique ? :lol:
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
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3634
Location: Belgium

PostPosted: Wed May 28, 2008 11:37 am    Post subject: Reply with quote

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:
Code:
root (hd0,2)

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
View user's profile Send private message
elfangor
n00b
n00b


Joined: 21 May 2008
Posts: 20

PostPosted: Wed May 28, 2008 12:31 pm    Post subject: Re: [boot-Kernel Panic]VFS unable to mount root fs Reply with quote

Merci de vos réponses :)

ghoti wrote:
elfangor wrote:
initdr /boot/initramfs-genkernel-x86-2.6.24-gentoo-r8

Dyslexique ? :lol:
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
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3634
Location: Belgium

PostPosted: Wed May 28, 2008 12:59 pm    Post subject: Re: [boot-Kernel Panic]VFS unable to mount root fs Reply with quote

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
View user's profile Send private message
NEOxAKIRA
Guru
Guru


Joined: 20 May 2007
Posts: 302
Location: France

PostPosted: Wed May 28, 2008 8:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum