LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-24-2005, 06:14 AM   #1
antony.booth
LQ Newbie
 
Registered: Oct 2004
Location: UK
Distribution: Fedora
Posts: 23

Rep: Reputation: 15
VFS: Cannot open root device


After updating linux RedHat Enterprise EL with the latest kernel .rpm, I rebooted the server to use the new Kernel, but now get the above error on bootup.

I have tried all kernel choices from the bootloader (Grub) and they all do the same thing, except 1. My grub.conf contains the following: -

default=3
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz

title Red Hat Enterprise Linux ES (2.4.21-32.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-32.EL ro root=LABEL=/
initrd /initrd-2.4.21-32.EL.img

title Red Hat Enterprise Linux ES (2.4.21-32.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.4.21-32.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-32.ELsmp.img

title Red Hat Enterprise Linux ES (2.4.21-27.0.4.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-27.0.4.EL ro root=LABEL=/
initrd /initrd-2.4.21-27.0.4.EL.img

title Red Hat Enterprise Linux ES (2.4.21-27.0.4.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.4.21-27.0.4.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-27.0.4.ELsmp.img

title Red Hat Enterprise Linux ES (2.4.21-27.0.2.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.4.21-27.0.2.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-27.0.2.ELsmp.img

title Red Hat Enterprise Linux ES (2.4.21-27.0.2.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-27.0.2.EL ro root=LABEL=/
initrd /initrd-2.4.21-27.0.2.EL.img

title Red Hat Enterprise Linux ES (2.4.21-4.ELsmp)
root (hd0,2)
kernel /vmlinuz-2.4.21-4.ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-4.ELsmp.img

title Red Hat Enterprise Linux ES-up (2.4.21-4.EL)
root (hd0,2)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
initrd /initrd-2.4.21-4.EL.img


My file system is as follows: -

/dev/sda6 /
/dev/sda3 /boot
/dev/shm swap
/dev/sda8 /tmp
/dev/sda5 /usr
/dev/sda7 /var
/dev/sda2 /home


I have tried replacing the root=LABEL=/ with root=/dev/sda3 or /dev/sda6
but with no luck.

All the image files and kernel binaries are in /boot

The permissions for the kernels are all rw-r--r, owned by root
The permissions for the .img files are all rw-r--r, owned by root

As my server is now using an old kernel and this seems like a grub misconfiguration, I would be grateful if someone could point me in the right direction as to why one option works (2.4.21-4.EL), but the rest don't?

Note: All the kernels prior to the upgrade used to work, so I cannot see the problem being with the kernels themselves.

Many thanks in advance.

Last edited by antony.booth; 05-24-2005 at 09:32 AM.
 
Old 05-24-2005, 10:46 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
There are a couple of mistakes. If the img files are in /boot then;

title Red Hat Enterprise Linux ES (2.4.21-32.EL)
root (hd0,2)
kernel /boot/vmlinuz-2.4.21-32.EL root=/dev/hda6 ro
initrd /boot/initrd-2.4.21-32.EL.img

The only other thing is where the root partition is. If it is the primary (1) then above root (hd0,0)
 
Old 05-25-2005, 04:20 AM   #3
antony.booth
LQ Newbie
 
Registered: Oct 2004
Location: UK
Distribution: Fedora
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the tips, but I tried messing around with the parameters like you suggested, which resulted in the kernel image not being found at all. I think it boots from /boot, which is why the file paths are relative to /boot being the root partition, hence no /boot prefixed to the kernel path.

Also, as the working configuration also has its paths and root= setup the same way, I'm wondering if it isn't something other than the grub.conf?

Last edited by antony.booth; 05-25-2005 at 04:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VFS: Cannot open root device error pandorazbox Slackware 9 03-31-2008 07:00 PM
Kernel Trouble: VFS: Cannot open root device Optimistic Debian 2 09-19-2005 02:41 PM
VFS: Cannot open root device muerte42200 Linux - Newbie 6 01-21-2005 03:43 AM
VFS: Cannot open root device 08:01 rddreamz Red Hat 0 05-09-2004 10:40 AM
VFS: Cannot open root device Mamour Linux - Software 8 04-20-2004 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration