LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-03-2012, 02:51 PM   #1
newDevlp
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
CentOS "mount: could not find filesystem '/dev/root'"


Hi all,

I am configuring a 3.2.2+ kernel from 2.6.18.

Error I encountered while booting the 3.2.2 kernel is

Quote:
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

My grub.conf is

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grua anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title CentOS (3.2.2+)
        root (hd0,0)
        kernel /vmlinuz-3.2.2+ ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-3.2.2+.img
title CentOS (2.6.18-274.17.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-274.17.1.el5 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-274.17.1.el5.img
title CentOS (2.6.18-274.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-274.el5 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-274.el5.img
Please try to help me.
I'm not sure what might be the problem other than this.
 
Old 02-03-2012, 03:02 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi newDevlp,

Welcome to LQ!!!

Questions for you:

1. Which version of CentOS you are running on?
2. Are you able to boot into other kernels installed without any issues?
3. How did you install this new kernel?
4. Did you create ramfs image for your new kernel?
5. If you are able to boot into other kernels then paste the output of the following command:

Code:
ls -l /boot
 
Old 02-03-2012, 03:13 PM   #3
newDevlp
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,


Version :
CentOS release 5.7 (Final)


Yeah I'm able to boot into other kernels.

The output of the command ls -l /boot

Quote:
# ls -l /boot/
total 25233
-rw-r--r-- 1 root root 70194 Jan 10 17:55 config-2.6.18-274.17.1.el5
-rw-r--r-- 1 root root 70189 Jul 22 2011 config-2.6.18-274.el5
drwxr-xr-x 2 root root 1024 Feb 3 15:53 grub
-rw------- 1 root root 3461257 Jan 20 07:23 initrd-2.6.18-274.17.1.el5.img
-rw------- 1 root root 3457236 Jan 20 06:03 initrd-2.6.18-274.el5.img
-rw------- 1 root root 3122478 Feb 3 15:00 initrd-3.2.2+.img
drwx------ 2 root root 12288 Jan 20 05:54 lost+found
-rw-r--r-- 1 root root 80032 Mar 12 2009 message
-rw-r--r-- 1 root root 114799 Jan 10 17:56 symvers-2.6.18-274.17.1.el5.gz
-rw-r--r-- 1 root root 114697 Jul 22 2011 symvers-2.6.18-274.el5.gz
lrwxrwxrwx 1 root root 23 Feb 3 15:00 System.map -> /boot/System.map-3.2.2+
-rw-r--r-- 1 root root 985586 Jan 10 17:55 System.map-2.6.18-274.17.1.el5
-rw-r--r-- 1 root root 984430 Jul 22 2011 System.map-2.6.18-274.el5
-rw-r--r-- 1 root root 1560025 Feb 3 15:00 System.map-3.2.2+
-rw-r--r-- 1 root root 1558710 Feb 2 06:32 System.map-3.2.2+.old
lrwxrwxrwx 1 root root 20 Feb 3 15:00 vmlinuz -> /boot/vmlinuz-3.2.2+
-rw-r--r-- 1 root root 1896340 Jan 10 17:55 vmlinuz-2.6.18-274.17.1.el5
-rw-r--r-- 1 root root 1894036 Jul 22 2011 vmlinuz-2.6.18-274.el5
-rw-r--r-- 1 root root 3161200 Feb 3 15:00 vmlinuz-3.2.2+
-rw-r--r-- 1 root root 3156368 Feb 2 06:32 vmlinuz-3.2.2+.old


I want to install the new kernel because I want to understand how to configure a kernel.


About ramfs

I have chosen
-*- Kernel->user space relay support (formerly relayfs) │ │
│ │[*] Initial RAM filesystem and RAM disk (initramfs/initrd) suppor│ │
│ │ () Initramfs source file(s) │ │
│ │[*] Optimize for size

and

-*- /proc file system support │ │
│ │[*] /proc/kcore support │ │
│ │[*] /proc/vmcore support │ │
│ │ -*- Tmpfs virtual memory file system support (former shm fs) │ │
│ │[*] Tmpfs POSIX Access Control Lists │ │
│ │ -*- Tmpfs extended attributes │ │
│ │[*] HugeTLB file system support │ │
│ │ <M> Userspace-driven configuration filesystem

I don't have any idea about ramfs..


Thanks
 
Old 02-04-2012, 04:51 AM   #4
aslan.Z
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
post your device drivers option or your .config
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC6: "mount: could not find filesystem '/dev/root'" sancho Fedora - Installation 17 09-02-2016 12:42 AM
[SOLVED] Cannot mount remote filesystem. Error "Unable to find suitable address" alankenyon55 Linux - Newbie 12 12-02-2014 11:47 PM
mount: could not find filesystem '/dev/root' jemenake Linux - General 12 02-04-2011 12:24 PM
why only "mount /dev/sda /mnt/usb" works and not "mount /dev/sda1..." ? gromot Linux - General 7 05-19-2009 10:18 AM
FC6: "mount: could not find filesystem '/dev/root'" cheerful Fedora - Installation 2 07-27-2007 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:25 PM.

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