Manjaro has been my daily driver for a long time. I’m really pleased with it, but I think I killed it by accident!
I upgraded my system using the app in XFCE for that kind of thing. However, it kept complaining about a JDK or JRE that was needed for some old version of Electron.
I nuked the orphan packages using this command (I think - can’t remember)
sudo pacman -R $(pacman -Qtdq)
I then updated the system, and it finished with success notifying me that I had to reboot. It was here the trouble started.
When I reboot, the system keeps taking me into the BIOS settings.
Hitting ESC during boot takes me into the GRUB menu that have two entries:
UEFI Firmware Settings
Memory Tester (memtest86+)
Hitting E for Edit boot options revel this content:
setparams 'UEFI Firmware Settings'
fwsetup
When following the normal boot sequence I get send into the BIOS right away without any visible errors.
I have a Debian LiveUSB and can see my system files when I mount the partition.
How can I diagnose the problem, with logs and so on, so that I can get a minimal working system?
grub>ls (hd0)/
error: unknown file system (translated from Danish)
grub> ls (hd0,gpt1)/
efi/
grub>ls (hd0,gpt2)/
lost+found/ boot/ dev/ proc/ run/ (cutting it short - this is the partition for the system)
grub>ls (hd0,gpt3)/
error: unknown file system
The efi folder in (hd0,gpt1) is organized like this:
efi/boot/bootx64.efi
efi/boot/Manjaro/grubx64.efi
I then tried this out:
set root=(hd0,gpt1)
insmod linux
insmod normal
normal
For some reason, Grub was not updated on your system. Update once in a Manjaro live session: GRUB/Restore the GRUB Bootloader - Manjaro If you only have a Debian live session available, you will need to chroot (switch to the local installation) manually.
Thanks for the reply @megavolt
I’ll start the Debian LiveUSB
(for some reason I can’t download ISO’s from manjaro.org. Transfers grind to a halt after the first 40MB)
> sudo /sbin/fdisk -l
A lot of text
Disk /dev/nvme0n1
Device ... Type
/dev/nvme0n1p1 EFI system
/dev/nvme0n1p2 Linux filesystem
/dev/nvme0n1p3 Linux Swap
Skipping info about the LiveUSB which is on /dev/sda
So I will ´chroot´ to the local installation. But I’m not sure how to? I got the chroot command on the LiveUSB, but I guess I should mount the EFI system and the linux filesystem?
Perhaps try the manjaro-get-iso script (python) which also pulls the official using CDN but provides also release review and developer preview options.
Thanks for the details @megavolt
In the meantime I tried the download from cdn77 on another computer, and it worked. So now I’m burning a manjaro XFCE LiveUSB with Rufus on Win.
I’ve booted Manjaro from the USB (using Ventoy to select the ISO)
I got the XFCE desktop and opened a terminal.
> manjaro-chroot -a
==> Mounting (ManjaroLinux) [/dev/nvme0n1p2]
--> mount: [/mnt]
--> mount: [/mnt/boot/efi]
root# pacman -Syu grub
// Skipping a lot of output
root# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
Intstallation finished. No error reported
Following the how-to I also have to make sure the configuration is up to date
root# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ....
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
ERROR: mkdir /var/lock/dmraid
Adding boot menu entry for UEFI Firmware Settings ...
Root filesystem isn't btrfs
If you think an error has occurred, pleas file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
Found memtest86+ EFI image /boot/memtest86+/memtest.efi
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done
I guess it found some strange stuff and bailed. The system still reboots into BIOS.
According to the above how-to the problem could also be resolved by updating GRUB, so that’s what I’ll try.
I assume there is no kernel installed, Linux 6.5 is long EOL and I suppose it was removed on that upgrade. It was an stable kernel and not a long term support one (LTS). Install linux66 (which is LTS):
[manjaro /]# mhwd-kernel --install linux66
:: Synchronizing package databases...
core is up to date
extra is up to date
multilib is up to date
error: no targets specified (use -h for help)
[manjaro /]# pacman -Sy linux66
:: Synchronizing package databases...
core is up to date
extra is up to date
multilib is up to date
resolving dependencies...
looking for conflicting packages...
Packages (1) linux66-6.6.80-1
Total Download Size: 129.69 MiB
Total Installed Size: 134.81 MiB
:: Proceed with installation? [Y/n]