Can‘t boot anything anymore

am ready

sudo mkdir /boot/efi/EFI/arch_grub
sudo cp /boot/efi/EFI/manjaro/grubx64.efi /boot/efi/EFI/arch_grub/grubx64.efi 
sudo update-grub

im not sure of the manjaro path so check it with ls -la /boot/efi/EFI

Still windows after a reboot.
Also the path should be correct:

[timon@timon-pc ~]$ ls -la /boot/efi/EFI
total 8
drwxr-xr-x 8 root root 1024 14. Aug 00:16 .
drwxr-xr-x 6 root root 1024  1. Jan 1970  ..
drwxr-xr-x 2 root root 1024 14. Aug 00:16 arch_grub
drwxr-xr-x 2 root root 1024  8. Feb 2017  Boot
drwxr-xr-x 2 root root 1024  8. Apr 2018  Manjaro
drwxr-xr-x 2 root root 1024 13. Aug 23:47 manjaro1
drwxr-xr-x 4 root root 1024  8. Feb 2017  Microsoft
drwxr-xr-x 4 root root 1024  8. Feb 2017  OEM

Well thanks for the help so far, I will head to bed for now and try any new suggestions tomorrow morning.

1 Like

its not, i posted /EFI/manjaro and it should of been /EFI/manjaro1
this is what it should be

sudo cp /boot/efi/EFI/manjaro1/grubx64.efi /boot/efi/EFI/arch_grub/grubx64.efi

try that, if it doesnt work maybe someone else has a better idea

1 Like

Try this first (bcdedit)

bcdedit /set {bootmgr} path \EFI\manjaro\grubx64.efi

Use the manjaro efi folder. Delete the Arch efi folder.

If it still fails, try the UEFI - additional commands (cp) method in this

Read carefully so you construct the partition names properly in the commands.

2 Likes

i didnt dare try attempting windows shell commands . your idea certainly makes more sense though instead of copying over to the arch grub folder.

2 Likes

So I woke up to my laptop suddenly using the manjaro bootloader, I guess that copy into the arch_grub folder actually worked somehow and the rebooting didn't let the changes properly through(?). But I used the bcdedit command anyway since that seems to be the better option, after a reboot and my laptop telling me there is no bootmedium it now works completly fine, throwing me into the manjaro bootloader. Thanks a lot guys, so the only thing I wanna know now is how do I properly clean up? For example should I get rid of both these grub versions? Also how do I properly delete the archfolder?

So I tried to update my Manjaro just now and it broke, something with the kernel seems to bre wrong. First I got a premature end of file error for my file /boot/vmlinuz-5.2-x86_64 and I need to load a kernel first. Tried what this post suggested


but I get this output:

[manjaro@manjaro ~]$ manjaro-chroot -a
==> Detected systems:
 --> 0) ManjaroLinux
==> Select system to mount [0-0] : 
0
==> ERROR: You can't mount 0!
[manjaro@manjaro ~]$ manjaro-chroot -a
==> Detected systems:
 --> 0) ManjaroLinux
==> Select system to mount [0-0] : 
1
==> Mounting (ManjaroLinux) [/dev/nvme0n1p5]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro /]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux52.preset: 'default'
  -> -k /boot/vmlinuz-5.2-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.2-x86_64.img
==> ERROR: invalid kernel specified: `/boot/vmlinuz-5.2-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux52.preset: 'fallback'
  -> -k /boot/vmlinuz-5.2-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.2-x86_64-fallback.img -S autodetect
==> ERROR: invalid kernel specified: `/boot/vmlinuz-5.2-x86_64'

How exactly do I progress?

from chroot or from your installed manjaro.

post:

mhwd-kernel -li
pacman -Qs 'linux3|linux4|linux5'
efibootmgr -v
cat /var/log/pacman.log | tail -100
[manjaro@manjaro ~]$ manjaro-chroot -a
==> Detected systems:
 --> 0) ManjaroLinux
==> Select system to mount [0-0] : 
1
==> Mounting (ManjaroLinux) [/dev/nvme0n1p5]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro /]# mhwd-kernel -li
Currently running: 4.19.28-1-MANJARO (linux419)
The following kernels are installed in your system:
error: could not open file /var/lib/pacman/local/linux52-5.2.8-1/desc: No such file or directory
   * linux52
error: could not open file /var/lib/pacman/local/linux52-5.2.8-1/desc: No such file or directory
[manjaro /]# pacman -Qs 'linux3|linux4|linux5'
error: could not open file /var/lib/pacman/local/linux52-5.2.8-1/desc: No such file or directory
local/linux52 5.2.8-1
    
local/linux52-virtualbox-host-modules 6.0.10-5 (linux52-extramodules)
    Host kernel modules for VirtualBox
[manjaro /]# efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0001,0000,2001,0004,0005,2002,2003
Boot0000* Windows Boot Manager  HD(1,GPT,32b0fe21-82bf-45ee-8915-5791062c604d,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0001* Windows Boot Manager  HD(1,GPT,32b0fe21-82bf-45ee-8915-5791062c604d,0x800,0x32000)/File(\EFI\manjaro\grubx64.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.}....................
Boot0002* USB HDD: USB DISK 2.0 PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/USB(1,0)/HD(1,MBR,0x0,0x3e78a0,0x2000)RC
Boot0004* y     PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00)/HD(1,GPT,32b0fe21-82bf-45ee-8915-5791062c604d,0x800,0x32000)/File(\grub\x86_64-efi\grub.efi)A01 ..
Boot0005* coregrub      PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)/NVMe(0x1,00-00-00-00-00-00-00-00)/HD(1,GPT,32b0fe21-82bf-45ee-8915-5791062c604d,0x800,0x32000)/File(\grub\x86_64-efi\core.efi)A01 ..
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network   RC
[manjaro /]# cat /var/log/pacman.log | tail -100
[2019-08-14 08:35] [ALPM] running 'systemd-update.hook'...
[2019-08-14 08:35] [PACMAN] starting full system upgrade
[2019-08-14 08:48] [ALPM] transaction started
[2019-08-14 08:48] [ALPM] upgraded iana-etc (20190702-1 -> 20190722-1)
[2019-08-14 08:48] [ALPM] upgraded android-tools (9.0.0_r45-1 -> 29.0.2-1)
[2019-08-14 08:48] [ALPM] upgraded aspell (0.60.7rc1-1 -> 0.60.7-1)
[2019-08-14 08:48] [ALPM] upgraded bison (3.3.2-1 -> 3.4-1)
[2019-08-14 08:48] [ALPM] upgraded mesa (19.1.3-1 -> 19.1.4-1)
[2019-08-14 08:48] [ALPM] upgraded keyutils (1.6-1 -> 1.6.1-1)
[2019-08-14 08:48] [ALPM] upgraded shadow (4.6-3 -> 4.7-2)
[2019-08-14 08:48] [ALPM] upgraded libgudev (232-1 -> 233-1)
[2019-08-14 08:48] [ALPM] upgraded libinput (1.13.4-1 -> 1.14.0-1)
[2019-08-14 08:48] [ALPM] upgraded zstd (1.4.1-1 -> 1.4.2-1)
[2019-08-14 08:48] [ALPM] upgraded kdecoration (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kconfig (5.60.0-1 -> 5.60.0-2)
[2019-08-14 08:48] [ALPM] upgraded flac (1.3.2-2 -> 1.3.3-1)
[2019-08-14 08:48] [ALPM] upgraded cairo (1.16.0-2 -> 1.17.2+17+g52a7c79fd-1)
[2019-08-14 08:48] [ALPM] upgraded pango (1:1.44.1-1 -> 1:1.44.3-1)
[2019-08-14 08:48] [ALPM] upgraded btrfs-progs (5.2-1 -> 5.2.1-1)
[2019-08-14 08:48] [ALPM] upgraded python (3.7.3-2 -> 3.7.4-1)
[2019-08-14 08:48] [ALPM] upgraded libbytesize (2.0-1 -> 2.1-1)
[2019-08-14 08:48] [ALPM] upgraded ndctl (65-1 -> 66-1)
[2019-08-14 08:48] [ALPM] upgraded breeze (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded breeze-gtk (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded re2 (20190701-1 -> 20190801-1)
[2019-08-14 08:48] [ALPM] installed dav1d (0.4.0-1)
[2019-08-14 08:48] [ALPM] upgraded x265 (3.1.1-1 -> 3.1.2-1)
[2019-08-14 08:48] [ALPM] upgraded ffmpeg (1:4.1.4-1 -> 1:4.2-4)
[2019-08-14 08:48] [ALPM] upgraded chromium (76.0.3809.87-0 -> 76.0.3809.100-1)
[2019-08-14 08:48] [ALPM] upgraded ckbcomp (1.175-1 -> 1.193-1)
[2019-08-14 08:48] [ALPM] upgraded libnghttp2 (1.36.0-1 -> 1.39.1-1)
[2019-08-14 08:48] [ALPM] upgraded cmake (3.15.1-1 -> 3.15.2-1)
[2019-08-14 08:48] [ALPM] upgraded exiv2 (0.27.1-1 -> 0.27.2-1)
[2019-08-14 08:48] [ALPM] upgraded portaudio (1:19.6.0-5 -> 1:19.6.0-6)
[2019-08-14 08:48] [ALPM] upgraded fluidsynth (2.0.5-1 -> 2.0.5-2)
[2019-08-14 08:48] [ALPM] upgraded freecell-solver (5.10.0-1 -> 5.12.0-1)
[2019-08-14 08:48] [ALPM] upgraded libspiro (1:0.5.20150702-2 -> 1:20190731-1)
[2019-08-14 08:48] [ALPM] upgraded libraw (0.19.3-1 -> 0.19.4-1)
[2019-08-14 08:48] [ALPM] upgraded gegl (0.4.16-1 -> 0.4.16-2)
[2019-08-14 08:48] [ALPM] upgraded python-lxml (4.4.0-1 -> 4.4.1-1)
[2019-08-14 08:48] [ALPM] upgraded python-pyparsing (2.4.0-1 -> 2.4.2-1)
[2019-08-14 08:48] [ALPM] upgraded python-packaging (19.0-1 -> 19.1-2)
[2019-08-14 08:48] [ALPM] upgraded gtk-doc (1.30+1+g44c5972-2 -> 1.31-2)
[2019-08-14 08:48] [ALPM] upgraded vim-runtime (8.1.1635-1 -> 8.1.1776-1)
[2019-08-14 08:48] [ALPM] upgraded gvim (8.1.1635-1 -> 8.1.1776-1)
[2019-08-14 08:48] [ALPM] upgraded imagemagick (7.0.8.57-1 -> 7.0.8.59-1)
[2019-08-14 08:48] [ALPM] upgraded iw (5.0.1-1 -> 5.3-1)
[2019-08-14 08:48] [ALPM] installed jre11-openjdk-headless (11.0.4.u11-1)
[2019-08-14 08:48] [ALPM-SCRIPTLET] Default Java environment is already set to 'java-12-openjdk'
[2019-08-14 08:48] [ALPM-SCRIPTLET] See 'archlinux-java help' to change it
[2019-08-14 08:48] [ALPM] installed jre11-openjdk (11.0.4.u11-1)
[2019-08-14 08:48] [ALPM-SCRIPTLET] Default Java environment is already set to 'java-12-openjdk'
[2019-08-14 08:48] [ALPM-SCRIPTLET] See 'archlinux-java help' to change it
[2019-08-14 08:48] [ALPM-SCRIPTLET] when you use a non-reparenting window manager,
[2019-08-14 08:48] [ALPM-SCRIPTLET] set _JAVA_AWT_WM_NONREPARENTING=1 in /etc/profile.d/jre.sh
[2019-08-14 08:48] [ALPM] upgraded java-openjfx (8.u202-0 -> 11.0.3.u1-1)
[2019-08-14 08:48] [ALPM] upgraded jemalloc (1:5.2.0-1 -> 1:5.2.1-1)
[2019-08-14 08:48] [ALPM] upgraded kactivitymanagerd (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kde-cli-tools (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded libevent (2.1.10-1 -> 2.1.11-1)
[2019-08-14 08:48] [ALPM] upgraded qt5-webengine (5.13.0-3 -> 5.13.0-4)
[2019-08-14 08:48] [ALPM] upgraded libksysguard (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded milou (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kscreenlocker (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kwin (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded plasma-integration (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded libgit2 (1:0.28.2-1 -> 1:0.28.2-2)
[2019-08-14 08:48] [ALPM] upgraded plasma-workspace (5.16.3-2 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded systemsettings (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kde-gtk-config (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kdeconnect (1.3.4-1 -> 1.3.5-1)
[2019-08-14 08:48] [ALPM] upgraded kdeplasma-addons (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kgamma5 (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded khotkeys (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kinfocenter (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kmenuedit (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded knetattach (5.16.3-2 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded libkscreen (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kscreen (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded ksshaskpass (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded ksysguard (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kwallet-pam (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kwayland-integration (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded kwrited (5.16.3-1 -> 5.16.4-1)
[2019-08-14 08:48] [ALPM] upgraded ldns (1.7.0-4 -> 1.7.1-1)
[2019-08-14 08:49] [ALPM] upgraded lib32-mesa (19.1.3-1 -> 19.1.4-1)
[2019-08-14 08:49] [ALPM] upgraded lib32-glu (9.0.0-4 -> 9.0.1-1)
[2019-08-14 08:49] [ALPM] upgraded lib32-mesa-vdpau (19.1.3-1 -> 19.1.4-1)
[2019-08-14 08:49] [ALPM] upgraded lib32-vulkan-intel (19.1.3-1 -> 19.1.4-1)
[2019-08-14 08:49] [ALPM] upgraded lib32-vulkan-radeon (19.1.3-1 -> 19.1.4-1)
[2019-08-14 08:49] [ALPM] upgraded libgee (0.20.1-2 -> 0.20.2-1)
[2019-08-14 08:49] [ALPM] upgraded libimagequant (2.12.3-1 -> 2.12.5-1)
[2019-08-14 08:49] [ALPM] upgraded liblrdf (0.6.1-2 -> 0.6.1-3)
[2019-08-14 08:49] [ALPM] upgraded libmagick6 (6.9.10.56-1 -> 6.9.10.59-1)
[2019-08-14 08:49] [ALPM] upgraded libnm (1.18.2-1 -> 1.20.0-1)
[2019-08-14 08:49] [ALPM] upgraded libreoffice-fresh (6.2.5-1 -> 6.3.0-0)
[2019-08-14 08:49] [ALPM] upgraded libva-mesa-driver (19.1.3-1 -> 19.1.4-1)
[2019-08-14 08:49] [ALPM] upgraded links (2.19-1 -> 2.19-2)
[2019-08-14 09:40] [PACMAN] Running 'pacman -Syyu'
[2019-08-14 09:40] [PACMAN] synchronizing package lists

Maybe interrupted update?
Do it again before rebuilding kernel images.

Yes the update got interrupted, I was trying to check how much battery my laptop had left and suddenly it died mid update.
How am I supposed to update tho? Like I said I cannot boot into my Manjaro.

Using the "chroot" method.
You may also need to check Forum FAQ for your issue.

So I tried

pacman -Syyu
pacman -Syyuu

but both didn't fix my problem.
mkinitcpio -P
still shows errors regarding my kernel and I didn't find anything helping me to repair it. Also I didn't find anything in the Forum FAQ (maybe I am too stupid, sorry).

post the actual errors when running sudo mkinitcpio -P

still the same as my post had above:

[manjaro /]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux52.preset: 'default'
  -> -k /boot/vmlinuz-5.2-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.2-x86_64.img
==> ERROR: invalid kernel specified: `/boot/vmlinuz-5.2-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux52.preset: 'fallback'
  -> -k /boot/vmlinuz-5.2-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.2-x86_64-fallback.img -S autodetect
==> ERROR: invalid kernel specified: `/boot/vmlinuz-5.2-x86_64'

try installing another kernel from chroot, post the full output

sudo mhwd-kernel -i linux419
[manjaro /]# sudo mhwd-kernel -i linux419
Error: You can't reinstall your current kernel. Please use 'pacman -Syu' instead to update.

I guess I should try another Kernel? But which version?

it's because your on chroot and the usb you booted is using 4.19. install 5.3

sudo mhwd-kernel -i linux53

post the output

Forum kindly sponsored by Bytemark