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 07-09-2007 12:39 PM

Agrouf,

I haven't tried booting in quiet mode yet -- I SuSE's GRUB to boot Elive and Fedora. What do I add to menu.lst to tell it to boot Fedora in quiet mode?

Sanoj21 07-09-2007 02:23 PM

the output of my pvdisplay:

Code:

  --- Physical volume ---
  PV Name              /dev/mapper/via_cghfdbhccbp4
  VG Name              VolGroup00
  PV Size              36.27 GB / not usable 22.47 MB
  Allocatable          yes
  PE Size (KByte)      32768
  Total PE              1160
  Free PE              1
  Allocated PE          1159
  PV UUID              82QhnT-97OD-0WTL-Bf77-Jlu1-jg6z-TuoE66


Agrouf 07-09-2007 06:13 PM

Quote:

Originally Posted by fire-tick
Agrouf,

I haven't tried booting in quiet mode yet -- I SuSE's GRUB to boot Elive and Fedora. What do I add to menu.lst to tell it to boot Fedora in quiet mode?

You have to add quiet at the end of the kernel line.
example :
Code:

kernel /boot/vmlinuz root=LABEL=ROOT quiet
Regards

Agrouf 07-09-2007 06:41 PM

Quote:

Originally Posted by Sanoj21
the output of my pvdisplay:

Code:

  --- Physical volume ---
  PV Name              /dev/mapper/via_cghfdbhccbp4
  VG Name              VolGroup00
  PV Size              36.27 GB / not usable 22.47 MB
  Allocatable          yes
  PE Size (KByte)      32768
  Total PE              1160
  Free PE              1
  Allocated PE          1159
  PV UUID              82QhnT-97OD-0WTL-Bf77-Jlu1-jg6z-TuoE66


Is this software or hardware raid?
Does /proc/mdstats exist?
What is the output of dmraid -s?
What is the output of
Code:

echo dm list | nash
?

fire-tick 07-10-2007 10:27 AM

Agrouf,

I booted in quiet mode, and I copied down the entire boot output:

Code:

root (hd1,4)
  Filesystemtype is ext2fs, partition type 0x83
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 root=/dev/hdb5 quiet
  [Linux-bxImage, setup=0x1e00, size=0x1c9dd4]
initrd /boot/initrd-2.6.21-1.3195.fc7.img
  [Linux-initrd @ 0x1fd3100, 0x2be794 bytes]

Uncompressing Linux... Ok, booting kernel.
Red Hat nash version 6.0.9 starting
usb 2-2: device descriptor read/all, error -71
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!

I highlighted the 5 in the initrd filename as a reminder -- that's the new one I created.

What can you make of this output?

Agrouf 07-10-2007 11:32 AM

Quote:

Originally Posted by fire-tick
kernel /boot/vmlinuz-2.6.21-1.3194.fc7 root=/dev/hdb5 quiet

try /dev/sdb5 in menu.lst :
Code:

kernel /boot/vmlinuz-2.6.21-1.3194.fc7 root=/dev/sdb5 quiet

Sanoj21 07-10-2007 02:29 PM

Is this software or hardware raid?

Code:

It's hardware raid. These are my BIOS settings.

Serial ATA RAID BIOS Setting Utility V2.01
Serial_Ch0 Master: Array 0 - Raid 1
Serial_Ch1 Master: Array 0 - Raid 1
VIA PT800 North Controller, Rev C2
VIA PT8237 South Controller, Rev A2

Does /proc/mdstats exists?

Code:

No but proc/mdstat exists, I suppose you ment this.

Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>

What is the output of dmraid -s

Code:

*** Active Set
name  : via_cghfdbhccb
size  : 240121720
stride : 8
type  : mirror
status : ok
subsets: 0
devs  : 2
spares : 0

What is the ouput of echo dm list | nash

Code:

(running in test mode).
Red Hat nash version 6.0.9 starting
rmparts sdb
rmparts sda
create via_cghfdbhccb
create via_cghfdbhccbp4
create VolGroup00-LogVol01
part VolGroup00-LogVol01
create VolGroup00-LogVol00
part VolGroup00-LogVol00
create via_cghfdbhccbp3
part via_cghfdbhccbp3
create via_cghfdbhccbp5
create via_cghfdbhccbp2
create via_cghfdbhccbp1


fire-tick 07-11-2007 06:23 PM

Success!!
 
I changed /dev/hdb5 to /dev/sdb5, and Fedora booted up just fine [I'm writing this from Fedora] -- Thanks Agrouf for pointing that out!! I think I had tried that earlier, before I created the new initrd file, so I forgot all about that one...

I'm glad I stuck with it a bit longer. I knew Mandriva worked, but I really wanted to give Fedora a try. I liked what I saw with the live CD.

Agrouf 07-12-2007 11:21 AM

Congrats fire-tick, I'm glad for you. Have a happy fedora experience.

Sanoj21,

I suspect /dev/mapper/via_cghfdbhccbp4 is not generated and therefore vgscan doesn't find your pv.
I suggest adding the line "find /dev/mapper" after dm create and just before the vgscan in init
You can also try regenerating devs with mkblkdevs before vgscan.

Extract your initrd with the usual gunzip|cpio to /tmp/initrd, edit init and then you can regenerate initrd with
Code:

rm /tmp/initrd/initrd*
findall() { echo nash-find  | /sbin/nash --force --quiet; }
(cd /tmp/initrd; findall . | cpio -H newc --quiet -o) >| /boot/tmp.img
gzip -9 </boot/tmp.img >/boot/initrd.img
rm /boot/tmp.img

Adapt your menu.lst to use initrd.img and please tell me if /dev/mapper/via_cghfdbhccbp4 exist.
(boot in verbose mode to see the result of find)

You probably need some raid drivers from via?
check "lsmod | grep via" and "lsmod | grep raid"

kwill 07-18-2007 12:47 AM

Had similar problem. Try checking and/or editing the /etc/ftab file. Also the grub configuration file. What might have happened is that the attempt to run Zen from the CD has altered the partion info. Did it install a swap partion or file?


All times are GMT -5. The time now is 10:47 PM.