LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel panic after startup (http://www.linuxquestions.org/questions/linux-general-1/kernel-panic-after-startup-31983/)

Deffe 10-05-2002 02:10 PM

Kernel panic after startup
 
After e cold start of the PC, it strats now with following message:
......
......(messages from installed stuff)...
...
Creating root device
Mounting root file system
Kjournal starting. Count interval 5 seconds.
EXT3-fs : mounted file system with ordered data mode
pivotroot : pivot_root (/sysroot,/sysroot.initrd) failed : 2
Freeing unused kernel memory : 220K freed
Kernel panic : No init found
try passing init= option to kernel.

I've read some of the earlier posted "kernel panic" mail,
but can not get my system back working.

Inserting the rescue floppy will start the system again until the same messages appear.
Booting from CD in rescue mode is OK, but I can not see my
directories. A try to mount the partitions results in, can not mount: read only.

Anybody any idea.

Kind regards,

Marc.

PS : I think that the solution creating the /initrd directory might solve the problem, but then I must be able to get to the system.

Mara 10-05-2002 05:01 PM

What command do you use to mount your drives?

Deffe 10-06-2002 05:22 AM

Start the PC with the install CD. Type at the begin of the
install: linux rescue.
The rescue environment finds the Red Hat installation and mount it under /mnt/sysimage.

Then I do a mkdir /foo
and mount, try to, the "/" partition with
mount -t ext3 /dev/hda2 /foo

Restult : mount failed. Permission denied.

Make the mounted system the root partition with
chroot /mnt/sysimage
and then again try to mount, results in:

block device /dev/hda2 is write protect, mounting read-only
can not mount block device /dev/hda2 is read-only.

Thanks,

Marc

Deffe 10-06-2002 10:09 AM

Hi,

Found the problem!
Redhat 7.2 PC is starting again.
I'll write donw what I did to make it work again, maybe others can take profit.

The PC was giving a: kernel Panic error after booting.
It's using GRUB to start.

When the GRUB window appear, type p and enter the password given to GRUB when linux was installed.
A new window apears with Rad Hat Linux, version, etc.
Select this and then type "e".
In my case new content came up in the window.
- three lines where one was:
initrd /initrd-2.4.9-34.img

I simply removed this line.
select the line and type "d".

Boot the system by typing the "b" key.

The PC boots again without problems, I've tested as much
programs as possible and all seems to work correctly.

Kind regards and many thanks,

Marc


All times are GMT -5. The time now is 08:43 AM.