LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-12-2006, 12:51 PM   #1
gazsi
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
could not find filesystem /dev/root


This may be an FC5 specific question.

I have an AMD Quad opteron system that has all of its
partitions on RAID-1 (from sda and sdb SATA disks through
Si3114 + libata driver). All partitions are XFS, except for
the /boot, which is ext3 (FC5 refused to create an XFS boot
partition, which BTW works on many other systems i have
under FC3).

When booting in the latest 2.6.17 FC5 kernel, I get the
following message:

--------
mount: could not find filestystem '/dev/root'.
Setting up other filesystems
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init
unmounting old /dev/
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init

BTW, I get similar (but not identical) error when booting
in the older 2.6.15 kernel.
-------

The / partition is on /dev/md1, and it has type of XFS. See
below the /etc/fstab. I have an initrd image that I believe
is OK (but maybe not). I tried booting with the default =
grub, but then I got frustrated, and moved to lilo (22.7,
also pretty intelligent about RAID, XFS, and all that
stuff). No difference -- so i may as well go back to grub.
The system boots in fine from the rescue CD followed by a
chroot /mnt/sysimage.

Here is /etc/fstab:

/dev/md1 / xfs defaults 1 1
/dev/md0 /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/md5 /home xfs defaults 1 2
/dev/md4 /myroot xfs defaults 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/md2 /usr/local xfs defaults 1 2
/dev/md3 /var xfs defaults 1 2
LABEL=SWAP-sdb3 swap swap defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0

( With the rescue CD the swap partitions also come up nice. )

-------------------
Here is initrd:

initrd/
|-- bin
| |-- insmod
| |-- modprobe
| -- nash
|-- dev
| -- mapper
|-- etc
|-- init
|-- lib
| |-- ext3.ko
| |-- jbd.ko
| |-- libata.ko
| |-- raid1.ko
| |-- sata_nv.ko
| |-- scsi_mod.ko
| |-- sd_mod.ko
| -- xfs.ko
|-- proc
|-- sbin
| |-- insmod
| |-- modprobe
| -- nash
|-- sys
-- sysroot

I made several attempts to re-create initrd myself after
the failures with default one. I thought maybe the SATA
drivers or XFS, or ext3 or whatever is missing.

For example:
mkinitrd -f -v --preload ext3 --preload xfs /boot/initrd-2.6.17.img 2.6.17

But it seems to me that all essential components are in the initrd/ .

----------------
HEre is lilo.conf:
prompt
timeout=100
default=2.6.17_FC5
boot=/dev/md0
map=/boot/map
install=/boot/boot.b
#message=/boot/message
raid-extra-boot=mbr-only

image=/boot/vmlinuz-2.6.17-1.2145_FC5smp
label=2.6.17_FC5smp
initrd=/boot/initrd-2.6.17-1.2145_FC5smp.img
read-only
root=/dev/md1

image=/boot/vmlinuz-2.6.17-1.2145_FC5
label=2.6.17_FC5
initrd=/boot/initrd-2.6.17-1.2145_FC5.img
read-only
root=/dev/md1
append="init=/sbin/init"
....

-----------------
And here is grub.conf:

default=0
timeout=15
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.17-1.2145_FC5smp)
root (hd0,0)
kernel /vmlinuz-2.6.17-1.2145_FC5smp ro root=/dev/md1 rhgb quiet
initrd /initrd-2.6.17-1.2145_FC5smp.img
title Fedora Core (2.6.17-1.2145_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.17-1.2145_FC5 ro root=/dev/md1 rhgb quiet
initrd /initrd-2.6.17-1.2145_FC5.img


There must be a simple solution but i have a hard time finding it.
 
Old 07-12-2006, 08:31 PM   #2
gazsi
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Problem solved. The trouble is that I don't _exactly_ know what changed.

I switched back to grub from lilo.
Then grub-install.
Then changed grub config and removed "quiet".

Then the UP kernel boots in.
The SMP still crashes, but that is a different issue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FC5t3 error: mount: could not find filesystem '/dev/root' pathall Fedora 1 03-10-2006 11:39 PM
Can't find option Root filesystem in NFS while building kernel benjaminrtz Linux - Newbie 1 01-25-2006 04:29 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 04:58 PM
Ethernet and the /dev filesystem Citizen Bleys Linux - Software 4 11-25-2003 07:25 AM
/dev filesystem problems anadyr Slackware 7 10-12-2003 12:33 PM

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

All times are GMT -5. The time now is 03:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration