Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Kernel] VFS Cannot open root device( résolu)
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
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sat Nov 17, 2012 5:17 pm    Post subject: [Kernel] VFS Cannot open root device( résolu) Reply with quote

Hi,
Je suis dans une situation très similaire à celle de ce post: https://forums.gentoo.org/viewtopic-t-941980.html

différences

boot est /dev/sdb1 (ext2)
root est /dev/sdb7 (ext3)

/boot/grub/grub.conf est comme suit
Code:
 default 0
 timeout 55
 splashimage=(hd1,0)/boot/grub/splash.xpm.gz

 title Gentoo Linux
 root (hd1,0)
 kernel /boot/kernel root=/dev/ram0 real_root=/dev/sdb7 rootfstype=ext3
 initrd /boot/initramfs

 title Gentoo Linux old kernel
 root (hd1,0)
 kernel /boot/kernel.old root=/dev/ram0  real_root=/dev/sdb7 rootfstype=ext3
 initrd /boot/initramfs.old


Changements apportés à genkernel.conf

Code:
OLDCONFIG="yes"
MENUCONFIG="yes"
CLEAN="no"
MRPROPER="no"
MOUNTBOOT="yes"
SYMLINK="yes"
MAKEOPTS="-j5"


Je fais
Code:
genkernel all


Code:
grub-install --no-floppy /dev/sda


J 'obtiens le message suivant au boot


Quote:
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 please append a correct "root=" boot option; here are the available partions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


Si quelqu'un peut me guider un peu car je n'avance plus. Merci


Last edited by augustin2 on Mon Nov 19, 2012 9:29 am; edited 2 times in total
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Sun Nov 18, 2012 8:24 am    Post subject: Reply with quote

Je ne connais pas bien genkernel, mais si je suis la doc (http://www.gentoo.org/doc/fr/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2) il te manque un init=/linuxrc dans ta conf de grub !

PS : peux-tu mettre ton titre du topic en conformité avec les conventions de notre forum s'il te plaît ? Merci :)
_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sun Nov 18, 2012 9:14 am    Post subject: Reply with quote

Bonjour,
Merci pour la réponse
Est-ce que ça va le titre comme ça ?

Concernant ta suggestion je vais regarder ce point
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sun Nov 18, 2012 11:39 am    Post subject: Reply with quote

Suggestion appliquée mais pas de changement.
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Sun Nov 18, 2012 11:47 am    Post subject: Reply with quote

Hmmm en fait, dans la version anglaise du guide (plus à jour), y a pas de ramdisk... http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
Ca doit être ce device là que le kernel ne trouve pas ?

Code:
title Gentoo Linux 3.3.8
root (hd0,0)
kernel /boot/3.3.8 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-3.3.8-gentoo

_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sun Nov 18, 2012 11:56 am    Post subject: Reply with quote

En fait j'ai essayé avec et sans ramdisk=xxxx
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Sun Nov 18, 2012 2:18 pm    Post subject: Re: [Kernel] VFS Cannot open root device(non résolu) Reply with quote

'alute

Je m'excuse mais es-tu vraiment sûr de l'adressage de partition dans le grub.conf ? root (hd1,0) ? Grub numérote en partant de zéro...

Sinon tes filesystem sont-ils bien compilés en dur dans ton kernel ?

ps: pour le titre, normalement on ne mets pas "non résolu" (ni "en cours", c'est implicite) sinon une recherche via keyword les retournent ^^
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Sun Nov 18, 2012 4:38 pm    Post subject: Reply with quote

Oui car ma partition /boot est sur mon deuxième disque /sdb
Back to top
View user's profile Send private message
nox23
n00b
n00b


Joined: 15 Jul 2012
Posts: 36

PostPosted: Sun Nov 18, 2012 11:08 pm    Post subject: Reply with quote

donne ls -l /boot

donne lspci

es-tu sur d'inclure ton pilote sata dans le kernel, au moins en module ?
inclus tu dans la config ton fs : ext3 ?
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Mon Nov 19, 2012 9:27 am    Post subject: Reply with quote

J'ai enfin réussi. Merci à tous pour votre aide. En réalité c'est sur le forum en anglais que j'ai trouvé ma piste. Je ne sais pas si c'est correct de manger à tous les rateliers comme ça ? Dîtes-moi ?

Voici ce que j'ai fait

Les paramètres ajoutés à la config
Quote:

DEVTMPFS="yes"
DEVTMPFS_MOUNT="yes"

SATA_AHCI="yes"
SATA_AHCI_PLATFORM="yes"


En pratique je peux booter avec ou sans initrd.

C'est à dire que

Quote:
title Gentoo Linux
root (hd1,0)
kernel /boot/kernel initrd=/dev/ram0 real_root=/dev/sdb7 rootfstype=ext3
initrd /boot/initramfs


ou

Quote:
title Gentoo Linux
root (hd1,0)
kernel /boot/kernel root=/dev/sdb7 rootfstype=ext3
initrd /boot/initramfs


sont tous les deux acceptés.

J'entre maintenant dans le monde merveilleux de Gentoo et c'est une grande émotion pour moi.
A bientôt vous tous
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