Unable to boot anymore/ kernel panic not syncing: no working init found

Hi !

I'm new with manjaro, grub etc, and I'm using manjaro for about 3 months now. All work very well until yesterday, I have done an update and now I'm not able to boot anymore. My PC is a DELL XPS 13 9360. When booting, it just runs the DELL page infinitively.
I first suspected grub, so I tried different tutorials find on this forum. First I tried to chroot my system with a live USB (this is ok) and reinstall grub (still can't boot). I then tried to follow a tutorial on this forum to boot kernel from grub directly. And I saw the error : "kernel panic not syncing: no working init found". Looks like my kernel does not work anymore ? I also tried to boot with the fallback but still same error.

I wonder if you have any input to repair my boot ?

Here some information from my chrooted installation:

DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=18.1.5
DISTRIB_CODENAME=Juhraya
DISTRIB_DESCRIPTION="Manjaro Linux"
Linux manjaro-gnome 5.4.6-2-MANJARO #1 SMP PREEMPT Tue Dec 24 15:55:20 UTC 2019 x86_64 GNU/Linux

efibootmgr -v

BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0001,0002
Boot0000* Windows Boot Manager	HD(1,GPT,5250a5fd-a925-4db4-bbe8-2d5b088f51b1,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* manjaro	HD(1,GPT,9d4ac29e-71d1-4626-891b-a0553ee82177,0x1000,0x96000)/File(\EFI\manjaro\grubx64.efi)
Boot0002* UEFI:  USB DISK 2.0 PMAP, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/HD(1,MBR,0x0,0x3a53a4,0x2000)..BO

parted -l

Model:  USB DISK 2.0 (scsi)
Disk /dev/sda: 7751MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      1957MB  1961MB  4194kB  primary               esp


Model: Samsung SSD 970 EVO 1TB (nvme)
Disk /dev/nvme0n1: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name  Flags
 1      2097kB  317MB   315MB   fat32                 boot, esp
 2      317MB   982GB   982GB   ext4
 3      982GB   1000GB  18.2GB  linux-swap(v1)        swap

blkid

/dev/nvme0n1p1: UUID="378D-8276" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="9d4ac29e-71d1-4626-891b-a0553ee82177"
/dev/nvme0n1p2: UUID="7807e77f-5ddd-4d09-9c7b-058ecba0b095" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="eceb706b-7b18-4b90-b0a3-371831c9e14b"
/dev/nvme0n1p3: UUID="9986ad53-9517-400e-8356-c3c60a590625" TYPE="swap" PARTUUID="b5902439-d440-4d6e-acc0-87d8e26448e3"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/sda1: BLOCK_SIZE="2048" UUID="2019-12-29-11-27-23-00" LABEL="MJRO1815" TYPE="iso9660"
/dev/sda2: SEC_TYPE="msdos" LABEL_FATBOOT="MISO_EFI" LABEL="MISO_EFI" UUID="CB55-34F8" BLOCK_SIZE="512" TYPE="vfat"

findmnt -s

TARGET    SOURCE                                    FSTYPE OPTIONS
/boot/efi UUID=378D-8276                            vfat   umask=0077
/         UUID=7807e77f-5ddd-4d09-9c7b-058ecba0b095 ext4   defaults,noatime
swap      UUID=9986ad53-9517-400e-8356-c3c60a590625 swap   defaults,noatime

findmnt /boot/efi

/boot/efi /dev/nvme0n1p1 vfat   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro

Thank you,
yohboy

Have you tried this [Kernel Boot Method] ?
Does that boot to the OS ?

If it boots, make sure you do the commands at the terminal and the 2 [UEFI - Additional Commands].
If the method does not boot to the OS, you may have a kernel problem when you do the updates.
Then you must chroot and do again the update.
After update is completed, do these commands to make sure
sudo mkinitcpio -P
sudo grub-install
sudo update-grub

Hi @gohlip, thank you for your answer !

Yes I tried, and no it does not work. This is how I saw the kernel panic.
I already made update in chroot (sudo pacman -Syyuu).
I just tried your commands but this not boot too.
I used this command for grub install :

sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck --debug /dev/nvme0n1

and update-grub give me an error but not sure if it is a real error or just a bug because grub is detecting my usb key on sda:

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.4-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.4-x86_64.img
Found initrd fallback image: /boot/initramfs-5.4-x86_64-fallback.img
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

Also, I don't have device.map, I don't know why.

Tried rebooting?
The errors above are specifically in nvme disk.
Don't worry about it now. We'll address it after you can boot.
Do the 2 uefi commands! You must do this before rebooting.

Okay, I'll write it out for you.


sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"

There will be a warning if directory for /efi/efi/boot is not there.
Create it and redo command
There will be a warning about havning an exiting mankajo efibootentry entry.
Proceed anyway. It is okay.
i can fine tune the command so that the erro won't appear, but as it is, the command is difficult to copy,
Adding
-b -xxxx -B to it makes it more difficult. and if done wrongly delete a needed entry.

Pleas, just read the link. please. It is alll there.

Yes tried rebooting, and yes I write these 2 commands, but still blocking on DELL screen at boot. There is no error on screen, just DELL screen again and again...

can you check with USB manjaro ,
if UUID Nmve appears ?

lsblk -fs 

Hi @stephane, sure:

NAME FSTYPE LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0
     squash                                                  0   100% /run/miso/
loop1
     squash                                                  0   100% /run/miso/
loop2
     squash                                                  0   100% /run/miso/
loop3
     squash                                                  0   100% /run/miso/
sda1 iso966 MJRO1815
│                 2019-12-29-11-27-23-00                     0   100% /run/miso/
└─sda
     iso966 MJRO1815
                  2019-12-29-11-27-23-00                              
sda2 vfat   MISO_EFI
│                 CB55-34F8                                           
└─sda
     iso966 MJRO1815
                  2019-12-29-11-27-23-00                              
nvme0n1p1
│    vfat         378D-8276                                           
└─nvme0n1
                                                                      
nvme0n1p2
│    ext4         7807e77f-5ddd-4d09-9c7b-058ecba0b095                
└─nvme0n1
                                                                      
nvme0n1p3
│    swap         9986ad53-9517-400e-8356-c3c60a590625                
└─nvme0n1
                

can you also provides

efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0003,0001,0002
Boot0000* Windows Boot Manager	HD(1,GPT,5250a5fd-a925-4db4-bbe8-2d5b088f51b1,0x800,0xfa000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* manjaro	HD(1,GPT,9d4ac29e-71d1-4626-891b-a0553ee82177,0x1000,0x96000)/File(\EFI\manjaro\grubx64.efi)
Boot0002* UEFI:  USB DISK 2.0 PMAP, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/HD(1,MBR,0x0,0x3a53a4,0x2000)..BO
Boot0003* manjaro	HD(1,GPT,9d4ac29e-71d1-4626-891b-a0553ee82177,0x1000,0x96000)/File(\EFI\Manjaro\grubx64.efi)

exit

quit chroot

can you shutdown , wait 10sec
reboot with F8 or F12 or Esc ?
grub should appears

Sure, I boot, F12 -> choose manjaro with usb key and choose grub. Is it ok ?

no reboot without your USB Key

Ok, then I can choose between manjaro and manjaro (same entry). How can I launch grub ?

Nevermind, got it, i'm in grub

for suppres line boot0001 ( double line manjaro )

sudo efimgrboot -b 0001 -B
sudo efibootmgr -v

Wait, I think I misunderstood something, I'm in grub commandline, but there isn't efimgrboot command.

you have to select in details options
a kernel version 414 or 419 and enter

In details option I can choose either "Kernel: 5.4.14-2-MANJARO x64" or "Kernel: 5.4.14-2-MANJARO x64 - fallback initramfs".
But both failed to boot.
I don't have any other version :confused:

I certainly hope you are not troubled by this

pacman grub and mkinitcpio hooks is affected

Please check in a chroot

grep -iRl 'Type = Path' /usr/share/libalpm/hooks

Hi @linux-aarhus,
here is the output:

/usr/share/libalpm/hooks/30-systemd-udev-reload.hook
/usr/share/libalpm/hooks/30-systemd-tmpfiles.hook
/usr/share/libalpm/hooks/30-systemd-hwdb.hook
/usr/share/libalpm/hooks/30-systemd-binfmt.hook
/usr/share/libalpm/hooks/xorg-mkfontscale.hook
/usr/share/libalpm/hooks/30-systemd-catalog.hook
/usr/share/libalpm/hooks/60-mkinitcpio-remove.hook
/usr/share/libalpm/hooks/99-grub.hook
/usr/share/libalpm/hooks/30-systemd-daemon-reload.hook
/usr/share/libalpm/hooks/30-systemd-sysctl.hook
/usr/share/libalpm/hooks/30-systemd-update.hook
/usr/share/libalpm/hooks/update-mime-database.hook
/usr/share/libalpm/hooks/90-mkinitcpio-install.hook
/usr/share/libalpm/hooks/20-systemd-sysusers.hook

Forum kindly sponsored by