Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[kernel panic] ext4: No filesystem could mount root (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
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Fri Jul 10, 2009 5:20 pm    Post subject: [kernel panic] ext4: No filesystem could mount root (résolu) Reply with quote

Hello,

J'installe une gentoo sur une carte mère Asrock P4i65GV. J'ai un seul disque dur branché en sata (une seule partition), et un graveur en IDE. Je compile les gentoo-sources 2.6.29-r5 de façon à n'utiliser que la libata. Impossible de booter dessus, j'obtiens toujours la même erreur.

Quelques liens :
What does "VFS: Cannot open root device..." mean, exactly?
Unable to get Kernel to boot on Server (ICH5)

Dans le dernier lien, quelqu'un explique qu'il a exactement la même carte mère, et qu'il n'arrive pas à booter sur un kernel compilé main, mais seulement à l'aide de genkernel.
Et en effet : en fait pour moi ce problème date de 4 mois, à l'époque où j'ai installé gentoo sur ce système, je n'avais pas réussi à booter sur mon kernel, et je m'etais donc tourné vers genkernel, en pensant y revenir plus tard.

Voici l'erreur :
Quote:

usb 2-1: new low speed USB device using uhci_hcd and adress 2
List of all partitions:
0b00 1048575 sr0 driver : sr
0800 72613056 sda driver : sd
0801 72605736 sda1
No filesystem could mount root, tried reiserfs ext3 ext4 vfat msdos iso9660
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)

Evidemment les FS sont compilés en dur dans le noyau.
Lorsque je compile le kernel, j'ai remarqué ceci :
Quote:

# make -j2 && make modules_install
scripts/kconfig/conf -s arch/x86/Kconfig
CHK include/linux/version.h
CHK include/linux/utsrelease.h
...
AS arch/x86/boot/header.o
LD arch/x86/boot/setup.elf
OBJCOPY arch/x86/boot/setup.bin
BUILD arch/x86/boot/bzImage
Root device is (8, 1)
Setup is 10972 bytes (padded to 11264 bytes).
System is 2839 kB
CRC b6717d5f
Kernel: arch/x86/boot/bzImage is ready (#4)
INSTALL arch/x86/kernel/test_nx.ko
INSTALL drivers/hid/hid-dummy.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
DEPMOD 2.6.29-gentoo-r5

livecd linux #

A la fin de la compil je lance :
Quote:

# cp arch/i386/boot/bzImage /boot/kernel-2.6.29-gentoo-r5
# rdev /boot/kernel-2.6.29-gentoo-r5
Root device /dev/sda1

Je ne vois pas comment sda1 peut se transformer en (8, 1).

La configuration :
Quote:

# lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:02.0 Display controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV44A [GeForce 6200] (rev a1)
01:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)


config kernel :
Code:

...

 < > ATA/ATAPI/MFM/RLL support  --->
     SCSI device support  --->
 <*> Serial ATA (prod) and Parallel ATA (experimental) drivers  --->
     [*]   ATA ACPI Support
     [*]   SATA Port Multiplier support
     <*>   AHCI SATA support
     < >   Silicon Image 3124/3132 SATA support
     [*]   ATA SFF support 
     < >     ServerWorks Frodo / Apple K2 SATA support
     <*>     Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support

...


fstab:
Quote:

# <fs> <mountpoint> <type> <opts> <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 / ext4 noatime 0 1

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0


grub.conf:
Quote:

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo 2.6.29-r5
root (hd0,0)
kernel /boot/kernel-2.6.29-gentoo-r5 root=/dev/sda1


J'ai essayé pas mal de choses jusque là, mais je commence à être à sec. Au tout départ je suis parti d'une config par défaut du kernel (make defconfig).
La version du kernel est 2.6.29-r5, mais à l'epoque çà me faisait la même chose avec les 2.6.27-r8.
Si besoin, je mettrai la config kernel complète plus tard, je dois la transferer depuis l'autre pc.
Si entre temps quelqu'un a une idée, merci.


Last edited by netfab on Sat Jul 11, 2009 12:34 am; edited 1 time in total
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3634
Location: Belgium

PostPosted: Fri Jul 10, 2009 10:02 pm    Post subject: Re: [kernel panic] No filesystem could mount root Reply with quote

Pas vraiment d'idée vu que je n'ai encore jamais touché à ext4 :?
(Mais en ext3, ça fonctionne impec sur une P4i65G ;-))

Sinon :
netfab wrote:
Je ne vois pas comment sda1 peut se transformer en (8, 1).

C'est pourtant correct ! :)
ls -al /dev/sda1 wrote:
brw-rw---- 1 root disk 8, 1 jui 10 11:28 /dev/sda1

Pour les détails :
/usr/src/linux/Documentation/devices.txt:
  8 block   SCSI disk devices (0-15)
        0 = /dev/sda      First SCSI disk whole disk
       16 = /dev/sdb      Second SCSI disk whole disk
       32 = /dev/sdc      Third SCSI disk whole disk
          ...
      240 = /dev/sdp      Sixteenth SCSI disk whole disk

      Partitions are handled in the same way as for IDE
      disks (see major number 3) except that the limit on
      partitions is 15.

A priori, j'en déduirais que puisque la partition est correctement reconnue comme telle, il s'agirait bien en définitive d'un problème lié au fs ...
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Fri Jul 10, 2009 11:19 pm    Post subject: Reply with quote

Le problème c'est qu'avant de passer la partition en ext4, elle etait en ext3, et je n'arrivais pas non plus à booter.
Mais si çà se trouve c'etait un problème différent, j'ai fait tellement d'essais que je ne suis plus sûr de rien.
Je vais revérifier la configuration et réessayer. Merci.
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Sat Jul 11, 2009 12:33 am    Post subject: Reply with quote

Résolu. En fait tu avais raison, il n'arrivait pas à monter le système de fichier ext4, l'option suivante n'etait pas activée (kernel 2.6.29-r5) :
Code:

 -*- Enable the block layer  --->
      [*]   Support for large block devices and files

Dans l'aide associée on peut lire :
Quote:

The ext4 filesystem requires that this feature be enabled in
order to support filesystems that have the huge_file feature
enabled. Otherwise, it will refuse to mount any filesystems
that use the huge_file feature, which is enabled by default
by mke2fs.ext4. The GFS2 filesystem also requires this feature.

En revanche maintenant j'ai un crash d'udev au démarrage, pas cool :lol:
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