You are not logged in.

#1 2012-04-24 23:03:23

Zielony
Member
From: Poznań, Poland
Registered: 2011-04-28
Posts: 20

[SOLVED] Kernel panic - no init found

Hi,

I've made a tragic mistake today, I mean I hardly reseted the Arch during upgrade. Unfortunately some of system files was cleaned, so I reinstalled all packages. It seems that everything should be ok now, but when I boot I can see:

root   (hd0, 0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-linux root=/dev/disk/by-uuid/... ro
[Linux-bzImage, setup=0x4200, size=0x2fe6b0]
initrd /initramfs-linux.img
[Linux-initrd @ 0x3f3d8000, 0x297073 bytes]

Probing EDD (edd=off to disable)... ok

Decompressing Linux... Parsing ELF... done.
Booting the kernel.
[    0.802448] Kernel panic - not syncing: No init found. Try passing init= option to kernel.

In the initrd there is init, but only /init, no /usr/bin/init as I have on the other system. Passing "init=/init" to kernel doesn't help. I tried to build initrd hundred times from live CD (I had mounted proc, sys, dev) and there is no errors during it. I also tried to downgrade kernel, but situation is the same.

Have you got any idea what's wrong, probably with initrd?

Last edited by Zielony (2012-04-25 16:05:07)

Offline

#2 2012-04-25 05:54:38

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Kernel panic - no init found

Doublecheck that the root=/dev/<rootpartition> in your bootloader config is actually referring to the correct partition. You're already using uuid to refer to it I see, verify that it's indeed the correct one.


Burninate!

Offline

#3 2012-04-25 07:30:18

Zielony
Member
From: Poznań, Poland
Registered: 2011-04-28
Posts: 20

Re: [SOLVED] Kernel panic - no init found

I checked and it didn't change (I have partition identification by uuid for long time) and also tried root=/dev/sda1 and root=/dev/sdb1, where the first partition at the only disk is my /boot partition. Still the same...

But is it correct that initrd doesn't contain /usr/bin/init?

Offline

#4 2012-04-25 08:05:07

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Kernel panic - no init found

My initramfs contains /usr/bin/init. However, if I understand correctly; /init is called at the beginning and then finally /sbin/init at the end of early userspace (someone please correct me if I'm wrong here).

Have you checked if your fallback image contains it and if your system boots correctly when using that one (jus to narrow down the problem)?


Burninate!

Offline

#5 2012-04-25 08:17:23

Zielony
Member
From: Poznań, Poland
Registered: 2011-04-28
Posts: 20

Re: [SOLVED] Kernel panic - no init found

fallback contains only /init too. Error using fallback is the same.

Last edited by Zielony (2012-04-25 08:18:09)

Offline

#6 2012-04-25 15:14:55

Zielony
Member
From: Poznań, Poland
Registered: 2011-04-28
Posts: 20

Re: [SOLVED] Kernel panic - no init found

I updated both computers simultaneously and copied initramfs-linux.img from the valid one. Now it shows:

Waiting 10 seconds for device /dev/disk/by-uuid/...
ERROR: Unable to find root device /dev/disk/by-uuid/...

When I go to /dev/ in recovery shell, I can't see any sd* or hd*. What can I do now?

EDIT

Ok, I changed in BIOS AHCI to IDE and it booted on valid's computer initramfs-linux.img. But I would like to generate this from that computer, so have you and idea, why I don't have "/usr/bin/init" in initramfs-linux.img?

Last edited by Zielony (2012-04-25 15:33:15)

Offline

#7 2012-04-25 16:04:53

Zielony
Member
From: Poznań, Poland
Registered: 2011-04-28
Posts: 20

Re: [SOLVED] Kernel panic - no init found

I reinstalled busybox and mkinitcpio-busybox. Problem fixed.

Offline

Board footer

Powered by FluxBB