Grub wont open + Libarchive.so.13 deleted

whats output from:

test -d /sys/firmware/efi && echo efi || echo bios
1 Like

from the live usb I get “efi” as output

were you chrooted when you run the command?

1 Like

Yes and tried outside chroot and got the same thing

so using your link above this is how to reinstall grub:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck

then this:
grub-mkconfig -o /boot/grub/grub.cfg

post errors/warnings

[manjaro /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.

[manjaro /]# grub-mkconfig -o /boot/grub/grub.cfg

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.17-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.17-x86_64.img
Found initrd fallback image: /boot/initramfs-5.17-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-x86_64-fallback.img
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
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.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

ok so now reboot and see if that helped:
exit
systemctl reboot

1 Like

I get to see grub and choose to boot in manjaro linux but then my computer stays in a black screen

and if you try different kernel from the advanced options

I already did and none works

and in the black screen try entering into tty: ctrl+alt+f2 if f2 dont work try f1-f6 can you enter it?

1 Like

I can do it, then what do I do?
I log in and then?
And what is tty useful for?

so are you using kde? or gnome?

1 Like

I use xfce

so type in the tty this:
startx

so chroot again from live usb and we try reinstall graphics drivers, xorg and hopefully that will be enough…

1 Like

I get an error while trying to reinstall the drivers

[manjaro /]# sudo mhwd -l
mhwd: error while loading shared libraries: /usr/lib/libhd.so.21: file too short
[manjaro /]# sudo mhwd -a
mhwd: error while loading shared libraries: /usr/lib/libhd.so.21: file too short

[manjaro /]# pacman -Syu xorg-server  
:: Synchronizing package databases...
 core.db failed to download
error: failed retrieving file 'core.db' from mirror.moson.org : Could not resolve host: mirror.moson.org
warning: too many errors from mirror.moson.org, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.cyberhost.uk : Could not resolve host: mirror.cyberhost.uk
warning: too many errors from mirror.cyberhost.uk, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.ibakerserver.pt : Could not resolve host: mirror.ibakerserver.pt
warning: too many errors from mirror.ibakerserver.pt, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.mirrors.lavatech.top : Could not resolve host: manjaro.mirrors.lavatech.top
warning: too many errors from manjaro.mirrors.lavatech.top, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from www.mirrorservice.org : Could not resolve host: www.mirrorservice.org
warning: too many errors from www.mirrorservice.org, skipping for the remainder of this transaction
error: failed to synchronize all databases (invalid url for server)


post output from:
mhwd -l && mhwd -li
and did you connect to internet before you chrooted?

Yes I am connected

[manjaro /]# mhwd -l && mhwd -li
mhwd: error while loading shared libraries: /usr/lib/libhd.so.21: file too short