I have Ubuntu 20.04 and windows installed in a dual boot. Suddenly my ubuntu won't boot and shows this error
end Kernel Panic - not syncing: Attempted to kill init
I've tried several solutions:
at grub menu I entered advanced settings and I got 4 options to boot intoadvanced settings
I tried all of them and they all produce the same error
using boot repair also didn't work
using a ubuntu live-usb:
I checked sda6/sbin/init and it does exist.
I tried
sudo fsck /dev/sda6
and the output is:/dev/sda6: CleanDisabling selinux :I mounted the partition using
sudo mount /dev/sda6 /mnt
but I can't find the file/etc/selinux/config
as only semanage.config exists in selinux folder.reinstalling init:I mounted the partition using:
sudo mount /dev/sda6 /mnt
but I can't access my root's env using
sudo chroot /mnt
as I get the error:chroot: failed to run command ‘/bin/bash’: No such file or directory
Where do I go from here to solve the problem ?
2- How to solve "Kernel panic - not syncing - Attempted to kill init" -- without erasing any user data
3- https://itectec.com/ubuntu/ubuntu-debugging-kernel-panic-not-syncing-attempted-to-kill-init/