I was trying to update libc in our Ubuntu server but it failed and now when I reboot the server I get a error message:
Kernel panic - not syncing - Attempted to kill init!
and it just hangs.
What is the solution to this problem? The server is used by 10 people so I don't want to reinstall erasing their data.
At grub screen goto boot in recovery.
As booting hold ESC
It should take you into a gui menu. Open command and fix selinux.
Also I suggest run the clean broken packages
Use Rescue mode with cd and mount the filesystem. Try to check if any binary files or folder are deleted. If deleted you will have to manually install the rpms to get those files back.
https://askubuntu.com/questions/92946/cannot-boot-because-kernel-panic-not-syncing-attempted-to-kill-init
Mount remount the /
Eg.
mount -o remount,rw /dev/xyz /
sed -i 's/1 1/0 0/' /etc/fstab
sed -i 's/1 2/0 0/' /etc/fstab
if the full message is:
then you should have disabled selinux and after that you have rebooted the system.
The easier is to use a live OS and re-enable it
Second choise is to disable selinux in the kernel arguments by adding selinux=0
source kernel panic - not syncing: Attempted to kill inint !
Solution is :-
This basically forces your PC to restart because by default it does not restart after a kernel panic.