LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora - Installation (https://www.linuxquestions.org/questions/fedora-installation-39/)
-   -   FC6: "mount: could not find filesystem '/dev/root'" (https://www.linuxquestions.org/questions/fedora-installation-39/fc6-mount-could-not-find-filesystem-dev-root-572452/)

cheerful 07-26-2007 10:59 AM

FC6: "mount: could not find filesystem '/dev/root'"
 
I just upgraded my Linux box from FC1 to FC6. The upgrading went successfully but when I tried to reboot the machine, I got the following erroe messages:

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!

Then the machine froze.

I tried to edit the grub.conf file, replacing "root=LABEL=/" with "root=/dev/sda#". It didn't help.

I also tried to recreate the image file using mkinitrd. I still got the same error.

Another thread (sorry I'm new here and don't know how to quote the thread) suggested to change "vg_list" in mkinitrd. I typed "vgdisplay" and got "no volume groups found".

I'm new to Linux and totally stuck here. Anybody can help me out? Any suggestion is highly appreciated!

cheerful 07-26-2007 02:39 PM

sth I found
 
I tried to unpack the .img file and compared it to another .img on a successful-upgraded machine.

mkdir /tmp/initrd
cd /tmp/initrd
gzip -cd /boot/initrd-xxxxxxxxx.img | cpio -imd --quiet


The init file from both machines have the following content:
#!/bin/nash

mount -t proc /proc /proc
setquiet
echo Mounting proc filesystem
echo Mounting sysfs filesystem
mount -t sysfs /sys /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs /dev /dev
mkdir /dev/pts
mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts
mkdir /dev/shm
mkdir /dev/mapper
echo Creating initial device nodes
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mknod /dev/systty c 4 0
mknod /dev/tty c 5 0
mknod /dev/console c 5 1
mknod /dev/ptmx c 5 2
mknod /dev/rtc c 10 135
mknod /dev/tty0 c 4 0
mknod /dev/tty1 c 4 1
mknod /dev/tty2 c 4 2
mknod /dev/tty3 c 4 3
mknod /dev/tty4 c 4 4
mknod /dev/tty5 c 4 5
mknod /dev/tty6 c 4 6
mknod /dev/tty7 c 4 7
mknod /dev/tty8 c 4 8
mknod /dev/tty9 c 4 9
mknod /dev/tty10 c 4 10
mknod /dev/tty11 c 4 11
mknod /dev/tty12 c 4 12
mknod /dev/ttyS0 c 4 64
mknod /dev/ttyS1 c 4 65
mknod /dev/ttyS2 c 4 66
mknod /dev/ttyS3 c 4 67
echo Setting up hotplug.
hotplug
echo Creating block device nodes.
mkblkdevs
echo "Loading uhci-hcd.ko module"
insmod /lib/uhci-hcd.ko
echo "Loading ohci-hcd.ko module"
insmod /lib/ohci-hcd.ko
echo "Loading ehci-hcd.ko module"
insmod /lib/ehci-hcd.ko
mount -t usbfs /proc/bus/usb /proc/bus/usb
echo "Loading jbd.ko module"
insmod /lib/jbd.ko
echo "Loading ext3.ko module"
insmod /lib/ext3.ko
echo "Loading scsi_mod.ko module"
insmod /lib/scsi_mod.ko
echo "Loading sd_mod.ko module"
insmod /lib/sd_mod.ko
echo "Loading libata.ko module"
insmod /lib/libata.ko
echo "Loading ata_piix.ko module"
insmod /lib/ata_piix.ko
echo "Loading ieee1394.ko module"
insmod /lib/ieee1394.ko
echo "Loading ohci1394.ko module"
insmod /lib/ohci1394.ko
echo "Loading sbp2.ko module"
insmod /lib/sbp2.ko
echo Waiting for driver initialization.
stabilized /sys/bus/ieee1394/drivers/sbp2
mkblkdevs
resume /dev/sda5
echo Creating root device.
mkrootdev -t ext3 -o defaults,ro sda6
echo Mounting root filesystem.
mount /sysroot
echo Setting up other filesystems.
setuproot
echo Switching to new root and running init.
switchroot


When I booted the machine, I saw "Waiting for driver initialization." just before the problem and also saw "unable to access resume device".

I still don't know how to fix it.

RLIN 07-27-2007 03:36 PM

Quote:

Originally Posted by cheerful
I just upgraded my Linux box from FC1 to FC6. The upgrading went successfully but when I tried to reboot the machine, I got the following erroe messages:

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!

Then the machine froze.

I have the same problem!
If you solved your problem, please post!!

The original system was upgraded from FC3 to F7, and it was very slow, so I had to move hard disk to a faster machine, and got exactly the same panic screen.
Do I have to reconfig kernel?
or
Could this be hardware dependent?
The original system is custom built machine
CPU - Celeron 700Mhz, 768MB memory
IDE bus - disk is set to single disk
The new system is Dell GX260
CPU - P4 2GHz, 512 MB memory
IDE bus - disk is set to single disk also.


All times are GMT -5. The time now is 11:58 PM.