March 19, 2024, 07:37:23 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: kernel recompilation : VFS: Cannot open root device  (Read 8560 times)

Offline anil_garg5

  • Linux Learner
  • ***
  • Posts: 71
kernel recompilation : VFS: Cannot open root device
« on: January 27, 2005, 06:15:01 AM »
when I boot from recompiled kernel, got the follwing error msg:


VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option

Kernel panic: VFS:Unable to mount root fs on 00:00

Pls guide.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
kernel recompilation : VFS: Cannot open root device
« Reply #1 on: January 27, 2005, 08:19:26 AM »
probably you have specified or by mistake it is thinking wront partition as root partition. In that concern edit your grub.conf  and see if the root partition is the correct one there.

Offline anil_garg5

  • Linux Learner
  • ***
  • Posts: 71
kernel recompilation : VFS: Cannot open root device
« Reply #2 on: January 27, 2005, 09:41:51 AM »
here is my grub.conf file.

title Red Hat Linux-up (2.4.20-8)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img

title Red Hat Linux-up (compiled kernel)
        root (hd0,0)
        kernel /bzImage  ro root=LABEL=/
        initrd /initrd-2.4.20-8.img

===============================
I also tried to specified root=/dev/hda2 ( my root / partition)
i m using the same initrd image for new kernel. Is it is required to make a new initrd image for  a new kernel???

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
kernel recompilation : VFS: Cannot open root device
« Reply #3 on: May 03, 2005, 03:15:11 PM »
root=LABEL=/

have something very very wrong with it. Can u double confirm it?

One more thing is, can u double check ur kernel options on the filesystem section? I think something might be missing as well.