Computer crashed during pacman -Syu and manjaro is now unbootable. How can I recover files in my home directory?

I am dual-booting Windows 10 and Manjaro Linux. While running a pacman -Syu on the Manjaro partition, the computer crashed. Pacman stopped working and at first I tried to fix it by deleting the lock file, looking at the mirrors, updating the db lists again. But, after trying to reboot the system it was unable to start back up again. It just dumped me into a terminal that looked like this:

[0.599365] Initramfs unpacking failed: read error
mount: error while loading shared libraries: libmount.so.1: cannot open shared object file: No such file or directory
mount: error while loading shared libraries: libmount.so.1: cannot open shared object file: No such file or directory
mount: error while loading shared libraries: libmount.so.1: cannot open shared object file: No such file or directory
mount: error while loading shared libraries: libmount.so.1: cannot open shared object file: No such file or directory
/init: line 16: can't open /proc/cmdline: no such file
:: running early hook [udev]
kmod: error while loading shared libraries: libzstd.so.1: cannot open shared object file: No such file or directory
systemd-tmpfiles: error while loading shared libraries: libsystemd-shared-253.10-1.so: cannot open shared object file: No such file or directory
/init: line 9: /usr/lib/systemd/systemd-udevd: not found
:: running hook [udev]
:: triggering uevents...
udevadm: error while loading shared libraries: libsystemd-shared-253.10-1.so: cannot open shared object file: No such file or directory
udevadm: error while loading shared libraries: libsystemd-shared-253.10-1.so: cannot open shared object file: No such file or directory
udevadm: error while loading shared libraries: libsystemd-shared-253.10-1.so: cannot open shared object file: No such file or directory
:: running hook [keymap]
:: loading keymap...done.
ERROR: device '' not found. Skipping fsck.
:: mounting '' on real root
mount: error while loading shared libraries: libmount.so.1: cannot open shared object file: No such file or directory
Error: Failed to mount '' on real root
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off
[rootfs~]#

I cannot type anything into the rootfs emergency shell. Maybe the computer canā€™t connect with the keyboard? I tried following a guide on the arch wiki about using arch-chroot to fix the issue (sorry, I canā€™t include links), but I am unable to boot from USB since the USB does not show up in the BIOS menu. Before trying anything more drastic, I wanted to ask if there is any way to grab certain files in the Manjaro partition from my Windows partition. I have homework to do so I need to put off fixing this issue until later, but I have some files I need on the Manjaro partition. Or, if possible, I would really like to copy the contents of my home directory to a flash drive or hard drive, but I am not sure how. Specifically, I have a database of KeePass passwords that I would like to salvage.

Just chroot your installation, rerun the update to see if it fixes it.

Make a proper Manjaro USB, it will show up in your boot menu if you create it correctly. Or you disabled USB in your motherboard which would be very unlikely.

2 Likes

My pacman -Syu crashed today as well. Odd.

1 Like

I just finished following that HowTo guide. Unfortunately, after trying to boot up the Manjaro partition I still get blasted back into that rootfs emergency shell. I ran these commands but they ran surprisingly fast even though the guide said to let them run for a while:

[ -f /var/lib/pacman/db.lck ] && rm -f /var/lib/pacman/db.lck
pacman-mirrors -f && pacman -Syyu
update-grub
exit

Iā€™ll try it one more time to make sure.

Ok I tried it again and now Iā€™m getting this error

# pacman-mirrors -f && pacman -Syyu

::WARNING https://repo.manjaro.org 'Connection: HTTPSConnectionPool(host='repo.manjaro.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fd442691dd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))'
::WARNING https://wikipedia.org 'Connection: HTTPSConnectionPool(host='wikipedia.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fd442692790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))'
::WARNING https://bitbucket.org 'Connection: HTTPSConnectionPool(host='bitbucket.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fd442692e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))'
::INFO Internet connection appears to be down
::INFO Mirror ranking is not available
::INFO Mirror list is generated using random method
::INFO Writing mirror list
::Austria         : https://mirror.easyname.at/manjaro/stable
::Netherlands     : https://manjaro.mirrors.lavatech.top/stable
::Russia          : https://mirror.kamtv.ru/manjaro/stable
::United_States   : https://uvermont.mm.fcix.net/manjaro/stable
::United_States   : https://southfront.mm.fcix.net/manjaro/stable
::Armenia         : http://manjaro.ucom.am/stable
::Brazil          : https://manjaro.c3sl.ufpr.br/stable
::New_Zealand     : https://mirror.2degrees.nz/manjaro/stable
::Global          : https://mirrors.manjaro.org/repo/stable
::United_States   : https://mnvoip.mm.fcix.net/manjaro/stable
::Bulgaria        : https://manjaro.ipacct.com/manjaro/stable
::United_States   : https://mirrors.ocf.berkeley.edu/manjaro/stable
::France          : https://mirror.ibakerserver.pt/manjaro/stable
::Taiwan          : https://mirror.archlinux.tw/Manjaro/stable
::United_States   : https://irltoolkit.mm.fcix.net/manjaro/stable
::Colombia        : https://edgeuno-bog2.mm.fcix.net/manjaro/stable
::United_States   : https://ziply.mm.fcix.net/manjaro/stable
::United_States   : https://mirror.math.princeton.edu/pub/manjaro/stable
::United_States   : https://volico.mm.fcix.net/manjaro/stable
::United_States   : https://ask4.mm.fcix.net/manjaro/stable
::United_States   : http://mirror.fcix.net/manjaro/stable
::Switzerland     : https://mirror.init7.net/manjaro/stable
::United_States   : https://forksystems.mm.fcix.net/manjaro/stable
::Germany         : https://mirror.alpix.eu/manjaro/stable
::United_States   : https://ohioix.mm.fcix.net/manjaro/stable
::United_States   : https://codingflyboy.mm.fcix.net/manjaro/stable
::Chile           : https://mirror1.cl.netactuate.com/manjaro/stable
::United_States   : https://nnenix.mm.fcix.net/manjaro/stable
::United_States   : https://ridgewireless.mm.fcix.net/manjaro/stable
::United_States   : https://coresite.mm.fcix.net/manjaro/stable
::Finland         : https://manjaro.kyberorg.fi/stable
::Germany         : https://ftp.gwdg.de/pub/linux/manjaro/stable
::Australia       : https://gsl-syd.mm.fcix.net/manjaro/stable
::United_States   : https://opencolo.mm.fcix.net/manjaro/stable
::Japan           : http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/stable
::Hungary         : https://quantum-mirror.hu/mirrors/pub/manjaro/stable
::New_Zealand     : http://manjaro.mirrors.theom.nz/manjaro/stable
::United_States   : https://nocix.mm.fcix.net/manjaro/stable
::India           : https://mirror.albony.xyz/manjaro/stable
::United_Kingdom  : http://manjaro.mirrors.uk2.net/stable
::Chile           : https://mirror.ufro.cl/manjaro/stable
::France          : https://manjaro.ynh.ovh/stable
::Portugal        : https://mirrors.up.pt/pub/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core.db failed to download
error: failed retrieving file 'core.db' from mirror.easyname.at : Could not resolve host: mirror.easyname.at
warning: too many errors from mirror.easyname.at, 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 mirror.kamtv.ru : Could not resolve host: mirror.kamtv.ru
warning: too many errors from mirror.kamtv.ru, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from uvermont.mm.fcix.net : Could not resolve host: uvermont.mm.fcix.net
warning: too many errors from uvermont.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from southfront.mm.fcix.net : Could not resolve host: southfront.mm.fcix.net
warning: too many errors from southfront.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.ucom.am : Could not resolve host: manjaro.ucom.am
warning: too many errors from manjaro.ucom.am, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.c3sl.ufpr.br : Could not resolve host: manjaro.c3sl.ufpr.br
warning: too many errors from manjaro.c3sl.ufpr.br, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.2degrees.nz : Could not resolve host: mirror.2degrees.nz
warning: too many errors from mirror.2degrees.nz, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirrors.manjaro.org : Could not resolve host: mirrors.manjaro.org
warning: too many errors from mirrors.manjaro.org, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mnvoip.mm.fcix.net : Could not resolve host: mnvoip.mm.fcix.net
warning: too many errors from mnvoip.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.ipacct.com : Could not resolve host: manjaro.ipacct.com
warning: too many errors from manjaro.ipacct.com, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirrors.ocf.berkeley.edu : Could not resolve host: mirrors.ocf.berkeley.edu
warning: too many errors from mirrors.ocf.berkeley.edu, 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 mirror.archlinux.tw : Could not resolve host: mirror.archlinux.tw
warning: too many errors from mirror.archlinux.tw, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from irltoolkit.mm.fcix.net : Could not resolve host: irltoolkit.mm.fcix.net
warning: too many errors from irltoolkit.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from edgeuno-bog2.mm.fcix.net : Could not resolve host: edgeuno-bog2.mm.fcix.net
warning: too many errors from edgeuno-bog2.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from ziply.mm.fcix.net : Could not resolve host: ziply.mm.fcix.net
warning: too many errors from ziply.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.math.princeton.edu : Could not resolve host: mirror.math.princeton.edu
warning: too many errors from mirror.math.princeton.edu, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from volico.mm.fcix.net : Could not resolve host: volico.mm.fcix.net
warning: too many errors from volico.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from ask4.mm.fcix.net : Could not resolve host: ask4.mm.fcix.net
warning: too many errors from ask4.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.fcix.net : Could not resolve host: mirror.fcix.net
warning: too many errors from mirror.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.init7.net : Could not resolve host: mirror.init7.net
warning: too many errors from mirror.init7.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from forksystems.mm.fcix.net : Could not resolve host: forksystems.mm.fcix.net
warning: too many errors from forksystems.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.alpix.eu : Could not resolve host: mirror.alpix.eu
warning: too many errors from mirror.alpix.eu, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from ohioix.mm.fcix.net : Could not resolve host: ohioix.mm.fcix.net
warning: too many errors from ohioix.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from codingflyboy.mm.fcix.net : Could not resolve host: codingflyboy.mm.fcix.net
warning: too many errors from codingflyboy.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror1.cl.netactuate.com : Could not resolve host: mirror1.cl.netactuate.com
warning: too many errors from mirror1.cl.netactuate.com, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from nnenix.mm.fcix.net : Could not resolve host: nnenix.mm.fcix.net
warning: too many errors from nnenix.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from ridgewireless.mm.fcix.net : Could not resolve host: ridgewireless.mm.fcix.net
warning: too many errors from ridgewireless.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from coresite.mm.fcix.net : Could not resolve host: coresite.mm.fcix.net
warning: too many errors from coresite.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.kyberorg.fi : Could not resolve host: manjaro.kyberorg.fi
warning: too many errors from manjaro.kyberorg.fi, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from ftp.gwdg.de : Could not resolve host: ftp.gwdg.de
warning: too many errors from ftp.gwdg.de, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from gsl-syd.mm.fcix.net : Could not resolve host: gsl-syd.mm.fcix.net
warning: too many errors from gsl-syd.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from opencolo.mm.fcix.net : Could not resolve host: opencolo.mm.fcix.net
warning: too many errors from opencolo.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from ftp.tsukuba.wide.ad.jp : Could not resolve host: ftp.tsukuba.wide.ad.jp
warning: too many errors from ftp.tsukuba.wide.ad.jp, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from quantum-mirror.hu : Could not resolve host: quantum-mirror.hu
warning: too many errors from quantum-mirror.hu, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.mirrors.theom.nz : Could not resolve host: manjaro.mirrors.theom.nz
warning: too many errors from manjaro.mirrors.theom.nz, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from nocix.mm.fcix.net : Could not resolve host: nocix.mm.fcix.net
warning: too many errors from nocix.mm.fcix.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.albony.xyz : Could not resolve host: mirror.albony.xyz
warning: too many errors from mirror.albony.xyz, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.mirrors.uk2.net : Could not resolve host: manjaro.mirrors.uk2.net
warning: too many errors from manjaro.mirrors.uk2.net, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirror.ufro.cl : Could not resolve host: mirror.ufro.cl
warning: too many errors from mirror.ufro.cl, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from manjaro.ynh.ovh : Could not resolve host: manjaro.ynh.ovh
warning: too many errors from manjaro.ynh.ovh, skipping for the remainder of this transaction
error: failed retrieving file 'core.db' from mirrors.up.pt : Could not resolve host: mirrors.up.pt
warning: too many errors from mirrors.up.pt, skipping for the remainder of this transaction
error: failed to synchronize all databases (invalid url for server)

I checked that I have wifi. What else could be causing issues with the mirrors?

How did you check if internet connection works when chrooting your system?

Try to check $ ping manjaro.org in chroot.

2 Likes

Also you may need to reinstall GRUB, in chroot simply do (for a UEFI system, not a Legacy system, you have other commands in #comment for the Legacy system, and command explanation in ###comments):

### we chroot
manjaro-chroot -a

### we reinstal GRUB efi
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
### or for GRUB Legacy where /dev/sdy is the target
# grub-install --force --target=i386-pc --recheck --boot-directory=/boot /dev/sdy

### we update GRUB
grub-mkconfig -o /boot/grub/grub.cfg

### we exit chroot to unmount the system
exit

### we reboot
reboot
3 Likes

So pinging doesnā€™t work. There is a problem with DNS, but it works fine when I use a web browser. This is the same issue I was having right after pacman -Syu crashed the computer. Do I have to add something to resolv.conf? I tried adding in a ā€œnameserver 8.8.8.8ā€ entry with sudo vim, but I still didnā€™t have permission to edit the file. Is there a special command I need to edit resolv.conf, like visudo for the sudoers file? I didnā€™t see anything like that online.

@omano
Thank you. The ā€œERROR: device ā€˜ā€™ not found. Skipping fsck.ā€ i mentioned in the OP made me wonder if the MBR or grub got messed up as well. Iā€™ll try this out if the stuff above doesnā€™t fix the problem.

Are you working from your broken computer, or are you booting on a live Manjaro USB and chrooting your system? You need to chroot from live USB so you have a working system to work on your broken system. If you are working from your broken system you shouldnā€™t need to reinstall GRUB as it should be booting into the system (albeit broken).

Iā€™m chrooting into the broken system from the live Manjaro USB. The broken system is completely unbootable.

So you have internet on the live USB (ping an IP not a domain), it is working from browser (Firefox is probably set to use CloudFlare DNS), but there is a DNS problem on the Live USB itself. Thatā€™s weird, there shouldnā€™t be. Maybe you didnā€™t use a recent ISO for your live USB or a broken ISO. Use latest ISO.

1 Like

Iā€™m not sure what changed this time, but there was no problem with DNS anymore. I followed all of the commands from the HowTo (weirdly, the pacman-mirrors -f && pacman -Syyu command only reinstalled firefox even though I was chrooted into the broken system). I will update in a minute or so if this fixed the issue.

Here are the commands and outputs:

 sudo su -                                                                    ī‚² āœ” 
[manjaro-gnome ~]# manjaro-chroot -a
==> Mounting (ManjaroLinux) [/dev/nvme0n1p7]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro-gnome /]# [ -f /var/lib/pacman/db.lck ] && rm -f /var/pacman/db.lck
[manjaro-gnome /]# pacman-mirrors -f && pacman -Syyu
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using default mirror file
::INFO Querying mirrors - This may take some time
  0.963 United_States  : https://ask4.mm.fcix.net/manjaro/
  0.416 United_States  : https://volico.mm.fcix.net/manjaro/
  1.523 Portugal       : https://mirrors.up.pt/pub/manjaro/
  0.563 United_States  : https://uvermont.mm.fcix.net/manjaro/
  0.439 United_States  : https://forksystems.mm.fcix.net/manjaro/
  0.481 United_States  : https://ohioix.mm.fcix.net/manjaro/
  0.455 United_States  : https://southfront.mm.fcix.net/manjaro/
  0.488 United_States  : https://opencolo.mm.fcix.net/manjaro/
  0.453 United_States  : https://irltoolkit.mm.fcix.net/manjaro/
  ..... United_States  : http://mirror.fcix.net/manjaro/
  0.498 United_States  : https://mnvoip.mm.fcix.net/manjaro/
  1.902 Germany        : https://ftp.gwdg.de/pub/linux/manjaro/
  0.374 United_States  : https://nocix.mm.fcix.net/manjaro/
  0.500 United_States  : https://coresite.mm.fcix.net/manjaro/
  1.436 Finland        : https://manjaro.kyberorg.fi/
  1.285 Germany        : https://mirror.alpix.eu/manjaro/
  ..... United_States  : https://ridgewireless.mm.fcix.net/manjaro/
  0.502 United_States  : https://codingflyboy.mm.fcix.net/manjaro/
  0.594 United_States  : https://ziply.mm.fcix.net/manjaro/
  0.588 United_States  : https://nnenix.mm.fcix.net/manjaro/
::INFO Writing mirror list
::United_States   : https://nocix.mm.fcix.net/manjaro/stable
::United_States   : https://volico.mm.fcix.net/manjaro/stable
::United_States   : https://forksystems.mm.fcix.net/manjaro/stable
::United_States   : https://irltoolkit.mm.fcix.net/manjaro/stable
::United_States   : https://southfront.mm.fcix.net/manjaro/stable
::United_States   : https://ohioix.mm.fcix.net/manjaro/stable
::United_States   : https://opencolo.mm.fcix.net/manjaro/stable
::United_States   : https://mnvoip.mm.fcix.net/manjaro/stable
::United_States   : https://coresite.mm.fcix.net/manjaro/stable
::United_States   : https://codingflyboy.mm.fcix.net/manjaro/stable
::United_States   : https://uvermont.mm.fcix.net/manjaro/stable
::United_States   : https://nnenix.mm.fcix.net/manjaro/stable
::United_States   : https://ziply.mm.fcix.net/manjaro/stable
::United_States   : https://ask4.mm.fcix.net/manjaro/stable
::Germany         : https://mirror.alpix.eu/manjaro/stable
::Finland         : https://manjaro.kyberorg.fi/stable
::Portugal        : https://mirrors.up.pt/pub/manjaro/stable
::Germany         : https://ftp.gwdg.de/pub/linux/manjaro/stable
::United_States   : http://mirror.fcix.net/manjaro/stable
::United_States   : https://ridgewireless.mm.fcix.net/manjaro/stable
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core                       142.6 KiB   564 KiB/s 00:00 [------------------------------] 100%
 extra                        8.6 MiB  5.65 MiB/s 00:02 [------------------------------] 100%
 community                   29.0   B   783   B/s 00:00 [------------------------------] 100%
 multilib                   146.5 KiB  2.24 MiB/s 00:00 [------------------------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (4) firefox-117.0.1-1  firefox-i18n-en-us-117.0.1-1  firefox-i18n-ko-117.0.1-1
             procps-ng-4.0.4-1.1

Total Download Size:    64.04 MiB
Total Installed Size:  223.72 MiB
Net Upgrade Size:       -0.50 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 firefox-117.0.1-1-x86_64    62.1 MiB  6.15 MiB/s 00:10 [------------------------------] 100%
 procps-ng-4.0.4-1.1-x...  1009.7 KiB  4.29 MiB/s 00:00 [------------------------------] 100%
 firefox-i18n-ko-117.0...   529.6 KiB  2.77 MiB/s 00:00 [------------------------------] 100%
 firefox-i18n-en-us-11...   453.5 KiB  3.03 MiB/s 00:00 [------------------------------] 100%
 Total (4/4)                 64.0 MiB  5.90 MiB/s 00:11 [------------------------------] 100%
(4/4) checking keys in keyring                          [------------------------------] 100%
(4/4) checking package integrity                        [------------------------------] 100%
(4/4) loading package files                             [------------------------------] 100%
(4/4) checking for file conflicts                       [------------------------------] 100%
(4/4) checking available disk space                     [------------------------------] 100%
:: Running pre-transaction hooks...
(1/2) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
(2/2) Remove Firefox Distribution Settings
:: Processing package changes...
(1/4) upgrading firefox                                 [------------------------------] 100%
(2/4) upgrading firefox-i18n-en-us                      [------------------------------] 100%
(3/4) upgrading firefox-i18n-ko                         [------------------------------] 100%
(4/4) upgrading procps-ng                               [------------------------------] 100%
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Refreshing PackageKit...
Error connecting: Could not connect: No such file or directory
error: command failed to execute correctly
(3/5) Copy Firefox Distribution Settings
(4/5) Updating icon theme caches...
(5/5) Updating the desktop file MIME type cache...
[manjaro-gnome /]# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.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.
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, please 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.
done
[manjaro-gnome /]# exit
exit
 --> umount: [/mnt/boot/efi]
 --> umount: [/mnt]
[manjaro-gnome ~]# 

@omano would the update-grub command not fix the issue?

ok I followed the commands you had up here

[manjaro-gnome ~]# manjaro-chroot -a
==> Mounting (ManjaroLinux) [/dev/nvme0n1p7]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro-gnome /]# 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-gnome /]# 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.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.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.
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, please 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.
done
[manjaro-gnome /]# exit
exit
 --> umount: [/mnt/boot/efi]
 --> umount: [/mnt]
[manjaro-gnome ~]# 

Iā€™m going to reboot and see how it goes

Reinstall GRUB too as you couldnā€™t boot and were into emergency GRUB console before (which would indicate GRUB is installed, but let say it is broken).
update-grub assumes a working grub install, it just updates the GRUB menu.

Maybe force reinstall of kernels too so you have better chances of being able to boot.

Or you can try, see the current problem and go step by step.

2 Likes

I still got booted into the emergency shell. Do I have to redo everything I did or should the reinstall of the kernels be enough?

[manjaro-gnome /]# mhwd-kernel -li
Currently running: 6.5.1-1-MANJARO (linux65)
The following kernels are installed in your system:
   * linux515

Iā€™m also not sure if reinstalling the latest kernel is a good idea since it may have caused the issue in the first place? Should I go back to a previous kernel?

Also, would I just have to run the following command to force reinstall? or is there something else I would need to do?

user $ sudo mhwd-kernel -i linux515 rmc

In chroot, do mhwd-kernel -i linux515 (no sudo in chroot) and see if it allows to reinstall (canā€™t find if there is a force parameter in case it is already installed, and canā€™t test as I need to update the system first). You can also install latest LTS kernel mhwd-kernel -i linux61 it should automatically boot to this new highest version one.

Is this error fine?

[manjaro-gnome /]# mhwd-kernel -i linux515
:: Synchronizing package databases...
 core                                 142.6 KiB   504 KiB/s 00:00 [------------------------------------] 100%
 extra                                  8.6 MiB  5.92 MiB/s 00:01 [------------------------------------] 100%
 community                             29.0   B   783   B/s 00:00 [------------------------------------] 100%
 multilib                             146.5 KiB  2.38 MiB/s 00:00 [------------------------------------] 100%
error: no targets specified (use -h for help)

@omano
Edit: that did not work. Yes, I was in chroot. Let me try it again and post the terminal output:

 sudo su -                                                                            ī‚² āœ” 
[manjaro-gnome ~]# manjaro-chroot -a
==> Mounting (ManjaroLinux) [/dev/nvme0n1p7]
 --> mount: [/mnt]
 --> mount: [/mnt/boot/efi]
[manjaro-gnome /]# mhwd-kernel -i linux515
:: Synchronizing package databases...
 core                            142.6 KiB   460 KiB/s 00:00 [---------------------------------] 100%
 extra                             8.6 MiB  5.90 MiB/s 00:01 [---------------------------------] 100%
 community                        29.0   B   725   B/s 00:00 [---------------------------------] 100%
 multilib                        146.5 KiB  2.38 MiB/s 00:00 [---------------------------------] 100%
error: no targets specified (use -h for help)
[manjaro-gnome /]# 

It didnā€™t install anything. Were you in chroot?

//EDIT: doing the same thing will have the same result. Do the other part I told you to do then.

You can also try to copy the files in the home directory booting a USB stick.

1 Like

Right I totally forgot the point of the thread, yes. Obviously just get the Home files from the live Manjaro session, in the file explorer :rofl: click on your Manjaro disk, and copy over to a USB drive.

:sweat_smile:

Title was so long I didnā€™t see the end of it, which the important part ā€œHow can I recover files in my home directory?ā€

I recovered my Manjaro partition :slight_smile: .

I got around the mhwd-kernel -i linux61 not installing the kernel by using pacman -S linux61. This worked and now linux61 is installed in the system. Rebooted and it worked.

1 Like