LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kernel panic - not syncing: Attempted to kill init! (https://www.linuxquestions.org/questions/linux-general-1/kernel-panic-not-syncing-attempted-to-kill-init-305582/)

fire-tick 06-28-2007 07:56 PM

This is what I got when I copied the initrd file from my Fedora /boot directory on my hard drive:

Code:

[root@localhost initrd]# cat init
#!/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 mbcache.ko module"
insmod /lib/mbcache.ko
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_generic.ko module"
insmod /lib/ata_generic.ko
echo "Loading ata_piix.ko module"
insmod /lib/ata_piix.ko
echo Waiting for driver initialization.
stabilized --hash --interval 250 /proc/scsi/scsi
insmod /lib/scsi_wait_scan.ko
rmmod scsi_wait_scan
mkblkdevs
resume /dev/sdb1
echo Creating root device.
mkrootdev -t ext3 -o defaults,ro sdb5
echo Mounting root filesystem.
mount /sysroot
echo Setting up other filesystems.
setuproot
echo Switching to new root and running init.
switchroot
echo Booting has failed.
sleep -1

I'm using the ext3 filesystem, on an IDE harddrive. No RAID or LVM. I hope that helps you diagnose the problem.

Agrouf 06-29-2007 01:53 AM

I believe your mkrootdev command is wrong
Code:

mkrootdev -t ext3 -o defaults,ro /dev/sdb5
Try regenerating your initrd file with :
Code:

rootdev=/dev/sdb5 mkinitrd
Check that the mkrootdev command has been correctly generated (gunzip | cpio)
Then edit /boot/grub/menu.lst and use your new initrd file that you have put in /boot

Also check that /dev/sdb5 indeed is an ext3 filesystem.
Code:

su -
mkdir /mnt/test
mount -t ext3 -o defaults,ro /dev/sdb5 /mnt/test

And lastly check in quiet mode that inserting modules ext3 and jbd do not report errors at boot.

fire-tick 06-29-2007 07:29 AM

Thank you for the help -- I will try these things. Though I'm wondering why I'd have to edit menu.lst to use the 'new' initrd file. Shouldn't the mkinitrd command just overwrite the existing one?

Agrouf 06-29-2007 08:09 AM

You should give the initrd file to create as argument for mkinitrd.
It won't overwrite unless you specify the -f (force) option.
If you feel like you won't need the old one, go ahead.

fire-tick 06-29-2007 07:42 PM

When I tried the mkinitrd command this is what I got:
Code:

[root@localhost initrd]# rootdev=/dev/sdb5 mkinitrd
bash: mkinitrd: command not found

I don't have a clue what's wrong here.

btw, I checked, and /dev/hdb5 definitely has the ext3 filesystem

Agrouf 07-02-2007 01:50 PM

Did you try from a Fedora system (liveCD or rescue CD)?

fire-tick 07-05-2007 12:12 PM

Yes I did use a Fedora live CD -- I was able to mount my installed partition just fine and view the contents. I copied the initrd-2.6.21-1.3194.fc7.img file to /tmp/initrd -- that's where I ran the "cat init" command to view the contents of the file. It's been a few days now, but I believe I also ran the mkinitrd command in the /tmp/initrd directory (I assumed here that once the new initrd file was created, I could copy it over to the installed partition).

I still don't understand though why it would return "command not found"...

Sanoj21 07-05-2007 05:01 PM

Hi,

I think I might have the same issue as fire-tick. Exept I installed FC7 with lvm.
My system has also 2 SATA drives in raid.

I installed FC7 via the boot CD and via ftp. After installation, the kernel paniced at first reboot. I think the system is stuck on "mkrootdev -t ext3 -o defaults,ro /dev/VolGroup00/LogVol00".

I used the commands Agrouf provided to read into init after starting from the rescue cd.

Code:

chroot /mnt/sysimage
mkdir /tmp/initrd
cp /boot/initrd* /tmp/initrd
cd /tmp/initrd
gunzip<initrd* | cpio -i -d
cat init

I tried:

Code:

[root@localhost initrd]# rootdev=/dev/sdb5 mkinitrd
but did not receive anything back from the prompt. So I supose something happened but I don't know what.

I read somewhere else that you can use mknitrd with options like --with=lvm --with=raid.

So I tried to
Code:

[root@localhost initrd] mkinitrd --force-lvm-probe
--force-raid-probe --with=lvm --with=raid -f
initrd-2.6.21-1.3194.fc7 2.6.21-1.3194.fc7

I suppose I did overwrite menu.lst in grub folder. After rebooting I still have the same issue.

Code:

"VolGroup00" was not found
Unable to access resume device (/dev/VolGroup00/LogVol01)
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
etc..

Can somebody tell me if I did something wrong by executing mkinitrd or if there is something else which is not correct?

Agrouf 07-06-2007 04:11 AM

Quote:

Originally Posted by fire-tick
I still don't understand though why it would return "command not found"...

It means that it doesn't find the command mkinitrd, which should be on your system.
I'm currently on holidays and don't have access to any fedora system, but from memory, it should be in /sbin or in /usr/sbin.
Save your /boot/initrd-2.6.21-1.3194.fc7 somewhere and try this :
Code:

rootdev=/dev/sdb5 /sbin/mkinitrd /boot/initrd-2.6.21-1.3194.fc7 2.6.21-1.3194.fc7
Reboot and try.
If you don't have mkinitrd, copy it from the cd before chroot
Code:

cp /sbin/mkinitrd /mnt/sysimage/sbin
chroot /mnt/sysimage

(if it's not in sbin, it is in /usr/sbin and if it doesn't work in either directory, try "locate mkinitrd" or "find / -name mkinitrd")

Regards

Agrouf 07-06-2007 04:25 AM

Quote:

Originally Posted by Sanoj21
I installed FC7 via the boot CD and via ftp. After installation, the kernel paniced at first reboot. I think the system is stuck on "mkrootdev -t ext3 -o defaults,ro /dev/VolGroup00/LogVol00".

You probably have a problem with lvm not setup correctly in init
Quote:

Originally Posted by Sanoj21
I used the commands Agrouf provided to read into init after starting from the rescue cd.

Code:

chroot /mnt/sysimage
mkdir /tmp/initrd
cp /boot/initrd* /tmp/initrd
cd /tmp/initrd
gunzip<initrd* | cpio -i -d
cat init


check that your init has a line starting with vgchange
Quote:

Originally Posted by Sanoj21
I tried:

Code:

[root@localhost initrd]# rootdev=/dev/sdb5 mkinitrd
but did not receive anything back from the prompt. So I supose something happened but I don't know what.

mkinitrd doesn't write anything to stdout unless you tell it to or unless there are errors.
Quote:

Originally Posted by Sanoj21
I read somewhere else that you can use mknitrd with options like --with=lvm --with=raid.

So I tried to
Code:

[root@localhost initrd] mkinitrd --force-lvm-probe
--force-raid-probe --with=lvm --with=raid -f
initrd-2.6.21-1.3194.fc7 2.6.21-1.3194.fc7


it did create initrd-2.6.21-1.3194.fc7 in /tmp/initrd.
You should copy it to /boot
Quote:

Originally Posted by Sanoj21
I suppose I did overwrite menu.lst in grub folder. After rebooting I still have the same issue.

If you didn't do it explicitely, it didn't edit menu.lst
Quote:

Originally Posted by Sanoj21
Code:

"VolGroup00" was not found
Unable to access resume device (/dev/VolGroup00/LogVol01)
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: No such file or directory
etc..

Can somebody tell me if I did something wrong by executing mkinitrd or if there is something else which is not correct?

try to copy mkinitrd to /tmp and edit it
change the line
Code:

vg_list=""
with
Code:

vg_list=VolGroup00
Run this /tmp/mkinitrd with your options.
Check that the new initrd has the correct vgchange (gunzip, cpio, cat init etc)
Copy the generated initrd file to /boot
Edit /boot/grub/menu.lst to use this initrd
Reboot

Good Luck

fire-tick 07-06-2007 01:33 PM

I know where I screwed up before -- I missed the first part of Agrouf's post that said basically boot into rescue mode. So I booted into rescue mode, and followed all the steps. When I got to the rootdev=/dev/sdb5 mkinitrd part, I stalled for a bit, because i didn't have the right syntax. Then I did:
Code:

rootdev=/dev/sdb5 mkinitrd initrd-2.6.21-1.3195.fc7.img 2.6.21-1.3194.fc7
I changed the filenmae slightly so I wouldn't overwrite the existing one. Then I just got another prompt. I did 'ls' to see if there were 2 initrd files, but there was only one. Did I miss something? Or did it create the file somewhere else?

Sanoj21 07-07-2007 10:17 AM

Agrouf,

I followed your instructions but I still cannot boot Fedora 7 on my system. I copied mkinitrd from /sbin. Updated vg_list which was empty with VolGroup00. I ran mkinitrd with the options previously specified.

The first error I receive is: After Reading all physical volumes. This may take a while..., it takes not even a second. The system says, no volume groups found. "VolumeGroup00" not found.

I shall submit my init, mkinitrd.log and mount info.

Code:

#!/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 mbcache.ko module"
insmod /lib/mbcache.ko
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 sata_via.ko module"
insmod /lib/sata_via.ko
echo Waiting for driver initialization.
stabilized --hash --interval 250 /proc/scsi/scsi
echo "Loading pata_via.ko module"
insmod /lib/pata_via.ko
echo Waiting for driver initialization.
stabilized --hash --interval 250 /proc/scsi/scsi
echo "Loading dm-mod.ko module"
insmod /lib/dm-mod.ko
echo "Loading dm-mirror.ko module"
insmod /lib/dm-mirror.ko
echo "Loading dm-zero.ko module"
insmod /lib/dm-zero.ko
echo "Loading dm-snapshot.ko module"
insmod /lib/dm-snapshot.ko
echo Making device-mapper control node
mkdmnod
insmod /lib/scsi_wait_scan.ko
rmmod scsi_wait_scan
mkblkdevs
rmparts sdb
rmparts sda
dm create via_cghfdbhccb 0 240121727 mirror core 2 131072 nosync 2 8:0 0 8:16 0
echo Scanning logical volumes
lvm vgscan --ignorelockingfailure
echo Activating logical volumes
lvm vgchange -ay --ignorelockingfailure VolGroup00
resume /dev/VolGroup00/LogVol01
echo Creating root device.
mkrootdev -t ext3 -o defaults,ro /dev/VolGroup00/LogVol00
echo Mounting root filesystem.
mount /sysroot
echo Setting up other filesystems.
setuproot
echo Switching to new root and running init.
switchroot
echo Booting has failed.
sleep -1

mkinitrd log
Code:

Creating initramfs
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module ehci-hcd
Looking for deps of module ext3: mbcache jbd
Looking for deps of module mbcache
Looking for deps of module jbd
Looking for deps of module sata_via: scsi_mod libata
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod
Looking for deps of module scsi_wait_scan: scsi_mod
Looking for deps of module libata: scsi_mod
Looking for deps of module pata_via: scsi_mod libata
Looking for deps of module ide-disk
Looking for deps of module dm-mod
Looking for deps of module dm-mirror: dm-mod
Looking for deps of module dm-zero: dm-mod
Looking for deps of module dm-snapshot: dm-mod
Looking for deps of module lvm
Looking for deps of module raid
Using modules:  /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.21-1.3194.fc7/kernel/fs/mbcache.ko /lib/modules/2.6.21-1.3194.fc7/kernel/fs/jbd/jbd.ko /lib/modules/2.6.21-1.3194.fc7/kernel/fs/ext3/ext3.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/ata/libata.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/ata/sata_via.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/ata/pata_via.ko  /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/md/dm-mod.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/md/dm-mirror.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/md/dm-zero.ko /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/md/dm-snapshot.ko 
Building initrd in /tmp/initrd.WH4004
/sbin/nash -> /tmp/initrd.WH4004/bin/nash
  /usr/lib/libnash.so.6.0.9 -> /tmp/initrd.WH4004/usr/lib/libnash.so.6.0.9
  /usr/lib/libbdevid.so.6.0.9 -> /tmp/initrd.WH4004/usr/lib/libbdevid.so.6.0.9
  /lib/libdevmapper.so.1.02 -> /tmp/initrd.WH4004/lib/libdevmapper.so.1.02
  /usr/lib/libparted-1.8.so.6 -> /tmp/initrd.WH4004/usr/lib/libparted-1.8.so.6
    /usr/lib/libparted-1.8.so.6.0.0 -> /tmp/initrd.WH4004/usr/lib/libparted-1.8.so.6.0.0
  /lib/libblkid.so.1 -> /tmp/initrd.WH4004/lib/libblkid.so.1
    /lib/libblkid.so.1.0 -> /tmp/initrd.WH4004/lib/libblkid.so.1.0
  /lib/libselinux.so.1 -> /tmp/initrd.WH4004/lib/libselinux.so.1
  /lib/libsepol.so.1 -> /tmp/initrd.WH4004/lib/libsepol.so.1
  /lib/libuuid.so.1 -> /tmp/initrd.WH4004/lib/libuuid.so.1
    /lib/libuuid.so.1.2 -> /tmp/initrd.WH4004/lib/libuuid.so.1.2
  /usr/lib/libpopt.so.0 -> /tmp/initrd.WH4004/usr/lib/libpopt.so.0
    /usr/lib/libpopt.so.0.0.0 -> /tmp/initrd.WH4004/usr/lib/libpopt.so.0.0.0
  /lib/libresolv.so.2 -> /tmp/initrd.WH4004/lib/libresolv.so.2
    /lib/libresolv-2.6.so -> /tmp/initrd.WH4004/lib/libresolv-2.6.so
      /lib/libc.so.6 -> /tmp/initrd.WH4004/lib/libc.so.6
        /lib/libc-2.6.so -> /tmp/initrd.WH4004/lib/libc-2.6.so
          /lib/ld-lsb.so.3 -> /tmp/initrd.WH4004/lib/ld-lsb.so.3
            /lib/ld-2.6.so -> /tmp/initrd.WH4004/lib/ld-2.6.so
  /lib/libdl.so.2 -> /tmp/initrd.WH4004/lib/libdl.so.2
    /lib/libdl-2.6.so -> /tmp/initrd.WH4004/lib/libdl-2.6.so
  /usr/lib/libdhcp.so.1 -> /tmp/initrd.WH4004/usr/lib/libdhcp.so.1
  /usr/lib/libnl.so.1 -> /tmp/initrd.WH4004/usr/lib/libnl.so.1
    /usr/lib/libnl.so.1.0-pre5 -> /tmp/initrd.WH4004/usr/lib/libnl.so.1.0-pre5
  /usr/lib/libdhcp4client-3.0.5.so.0 -> /tmp/initrd.WH4004/usr/lib/libdhcp4client-3.0.5.so.0
  /usr/lib/libdhcp6client-0.10.so.0 -> /tmp/initrd.WH4004/usr/lib/libdhcp6client-0.10.so.0
  /lib/libglib-2.0.so.0 -> /tmp/initrd.WH4004/lib/libglib-2.0.so.0
    /lib/libglib-2.0.so.0.1200.11 -> /tmp/initrd.WH4004/lib/libglib-2.0.so.0.1200.11
  /lib/libm.so.6 -> /tmp/initrd.WH4004/lib/libm.so.6
    /lib/libm-2.6.so -> /tmp/initrd.WH4004/lib/libm-2.6.so
  /lib/libcrypto.so.6 -> /tmp/initrd.WH4004/lib/libcrypto.so.6
    /lib/libcrypto.so.0.9.8b -> /tmp/initrd.WH4004/lib/libcrypto.so.0.9.8b
  /lib/libz.so.1 -> /tmp/initrd.WH4004/lib/libz.so.1
    /lib/libz.so.1.2.3 -> /tmp/initrd.WH4004/lib/libz.so.1.2.3
/sbin/insmod -> /tmp/initrd.WH4004/bin/insmod
/sbin/rmmod -> /tmp/initrd.WH4004/bin/rmmod
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/usb/host/uhci-hcd.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/uhci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/usb/host/ohci-hcd.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/ohci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/usb/host/ehci-hcd.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/ehci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/fs/mbcache.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/mbcache.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/fs/jbd/jbd.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/jbd.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/fs/ext3/ext3.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/ext3.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/scsi/scsi_mod.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/scsi_mod.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/scsi/sd_mod.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/sd_mod.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/ata/libata.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/libata.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/ata/sata_via.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/sata_via.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/ata/pata_via.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/pata_via.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/md/dm-mod.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/dm-mod.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/md/dm-mirror.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/dm-mirror.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/md/dm-zero.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/dm-zero.ko' [elf32-i386]
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/md/dm-snapshot.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/dm-snapshot.ko' [elf32-i386]
/sbin/lvm -> /tmp/initrd.WH4004/bin/lvm
  /sbin/lvm.static -> /tmp/initrd.WH4004/sbin/lvm.static
/etc/lvm -> /tmp/initrd.WH4004/etc/lvm
`/etc/lvm/lvm.conf' -> `/tmp/initrd.WH4004/etc/lvm/lvm.conf'
Adding module scsi_wait_scan
copy from `/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/scsi/scsi_wait_scan.ko' [elf32-i386] to `/tmp/initrd.WH4004/lib/scsi_wait_scan.ko' [elf32-i386]
Adding module uhci-hcd
Adding module ohci-hcd
Adding module ehci-hcd
Adding module mbcache
Adding module jbd
Adding module ext3
Adding module scsi_mod
Adding module sd_mod
Adding module libata
Adding module sata_via
Adding module pata_via
Adding module dm-mod
Adding module dm-mirror
Adding module dm-zero
Adding module dm-snapshot
Adding dm map "via_cghfdbhccb"
This initrd uses dynamic shared objects.
Adding dynamic linker configuration files.
/etc/ld.so.conf -> /tmp/initrd.WH4004/etc/ld.so.conf
Running ldconfig

I did also run cat /proc/mounts

Code:

rootfs / rootfs rw 0 0
/proc /proc proc rw 0 0
/dev /dev tmpfs rw 0 0
/dev/pts /dev/pts devpts rw 0 0
/sys /sys sysfs rw 0 0
none /tmp ramfs rw 0 0
none /tmp/ramfs ramfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
/tmp/loop0 /mnt/runtime squashfs ro 0 0
/selinux /selinux selinuxfs rw 0 0
/dev/VolGroup00/LogVol00 /mnt/sysimage ext3 rw,data=ordered 0 0
/dev/mapper/via_cghfdbhccbp3 /mnt/sysimage/boot ext3 rw,data=ordered 0 0
/tmp/sysfs /mnt/sysimage/sys sysfs rw 0 0
/tmp/proc /mnt/sysimage/proc proc rw 0 0
/dev /mnt/sysimage/dev tmpfs rw 0 0
/selinux /mnt/sysimage/selinux selinuxfs rw 0 0


fire-tick 07-08-2007 07:26 PM

The new file I created was already in the /boot folder. I ran the dpkg and cat init command to check if the changes had been made, and indeed...
Code:

mkrootdev -t ext3 -o defaults,ro sdb5
had changed to:
Code:

mkrootdev -t ext3 -o defaults,ro /dev/sdb5
But, when I edited menu.lst to use the new initrd file, and re-booted, I still got kernel panic -- in fact, [what appears to be] the exact same series of errors to produce the kernel panic.

I think I'm going to re-install Mandriva for now.

Thanks anyway to everyone for their help. I'll keep an eye on this thread to see if a resolution is reached.

<EDIT: so as to not be a quitter, I'll stick it out w/ Fedora for a while. I really appreciate the fact that there is a community of folks that are willing and able to provide support>

Agrouf 07-09-2007 11:34 AM

Quote:

Originally Posted by fire-tick
The new file I created was already in the /boot folder. I ran the dpkg and cat init command to check if the changes had been made, and indeed...
Code:

mkrootdev -t ext3 -o defaults,ro sdb5
had changed to:
Code:

mkrootdev -t ext3 -o defaults,ro /dev/sdb5
But, when I edited menu.lst to use the new initrd file, and re-booted, I still got kernel panic -- in fact, [what appears to be] the exact same series of errors to produce the kernel panic.

I think I'm going to re-install Mandriva for now.

Thanks anyway to everyone for their help. I'll keep an eye on this thread to see if a resolution is reached.

<EDIT: so as to not be a quitter, I'll stick it out w/ Fedora for a while. I really appreciate the fact that there is a community of folks that are willing and able to provide support>

Mandriva is a good distro.
I may have had guessed wrong, the problem isn't rootdev then.
If you decide to persist with Fedora, please post the first error that is displayed at boot and some errors after this one if possible.
If you decide to give up for the moment, that is understandable, you can always come back here later and I'll be happy to help if I can.

Agrouf 07-09-2007 11:51 AM

Quote:

Originally Posted by Sanoj21
Agrouf,

I followed your instructions but I still cannot boot Fedora 7 on my system. I copied mkinitrd from /sbin. Updated vg_list which was empty with VolGroup00. I ran mkinitrd with the options previously specified.

The first error I receive is: After Reading all physical volumes. This may take a while..., it takes not even a second. The system says, no volume groups found. "VolumeGroup00" not found.

What is the output of "pvdisplay" please?


All times are GMT -5. The time now is 01:55 AM.