You are not logged in.

#1 2023-12-24 06:06:59

godlyavenger
Member
Registered: 2023-12-24
Posts: 6

[SOLVED] Systemd-shared not found while attempting to boot

I'm setting up my Arch install and rebooted while setting my DE to load to changes I had made. But when I try to boot, this pops up.

Initramfs unpacking failed: ZSTD-compressed data is truncates
Warning: /lib/modules/6.6.8-arch1-1/modules.devname not found - ignoring
systemd-tmpfiles: error while loading shared libraries: libsystemd-shared-255.1-1.so: cannot open shared object file: No such file or directory
udevadm:  error while loading shared libraries: libsystemd-shared-255.1-1.so: cannot open shared object file: No such file or directory
udevadm:  error while loading shared libraries: libsystemd-shared-255.1-1.so: cannot open shared object file: No such file or directory
udevadm:  error while loading shared libraries: libsystemd-shared-255.1-1.so: cannot open shared object file: No such file or directory
ERROR: device 'UUID=b2a9a667-f812-4da3-89a0-ad0dc36736f8' not found. Skipping fsck.
mount: /new_root: can't find UUID=b2a9a667-f812-4da3-89a0-ad0dc36736f8.
ERROR: Failed to mount 'UUID=b2a9a667-f812-4da3-89a0-ad0dc36736f8' on real root
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off

The only thing I did in the last session that could have caused this was uninstall orphaned packages. I tried chrooting into it and just reinstalling everything, but that didn't work. Any help is appreciated.

Last edited by godlyavenger (2023-12-28 04:58:45)

Offline

#2 2023-12-24 11:22:56

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,842
Website

Re: [SOLVED] Systemd-shared not found while attempting to boot

godlyavenger wrote:

I tried chrooting into it and just reinstalling everything, but that didn't work

Please provide the exact, full commands used for that. Is /boot/ on a separate partition?

Load the live ISO, use the `file` command on the kernel image (vmlinuz-linux?) and see if the version matches the content of /lib/modules/. Also check the free space on the /boot/ partition because that "data is truncated" message could be due to mkinitcpio running out of space.

Check your bootloader configuration to see if the correct kernel image is being loaded. Share the full configuration here if you're not sure.


Jin, Jîyan, Azadî

Offline

#3 2023-12-24 11:27:30

xerxes_
Member
Registered: 2018-04-29
Posts: 899

Re: [SOLVED] Systemd-shared not found while attempting to boot

Boot from arch live usb, arcchroot to your installation and reinstall systemd.
Then you may check if your kernel and modules were installed; mount boot reinstall kernel,, 'mkinitcpio -P', reinstall grub if you use it (grub-install ..., grub-mkconfig -o /boot/grub/grub.cfg) or other boot loader...

Offline

#4 2023-12-24 13:03:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,600

Re: [SOLVED] Systemd-shared not found while attempting to boot

Your initramfs isn't valid, regenerate it. All of the rest is noise, of course it can't find things in the initramfs if it couldn't unpack it.

Last edited by Scimmia (2023-12-24 13:21:41)

Offline

#5 2023-12-24 20:57:35

godlyavenger
Member
Registered: 2023-12-24
Posts: 6

Re: [SOLVED] Systemd-shared not found while attempting to boot

Head_on_a_Stick wrote:

Please provide the exact, full commands used for that.

I just ran

pacman -Qqn | pacman -S -
Head_on_a_Stick wrote:

Is /boot/ on a separate partition?

Yeah it's a seperate EFI partition I reused from my Windows install.

Head_on_a_Stick wrote:

Load the live ISO, use the `file` command on the kernel image (vmlinuz-linux?) and see if the version matches the content of /lib/modules/

Head_on_a_Stick wrote:

Also check the free space on the /boot/ partition because that "data is truncated" message could be due to mkinitcpio running out of space.

df -h shows that it has only 8K of space (100% full). This...might be the problem. How would I resize the EFI partition?

Offline

#6 2023-12-24 21:20:17

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,842
Website

Re: [SOLVED] Systemd-shared not found while attempting to boot

godlyavenger wrote:

I just ran

What about mounting the partitions? How did you do that? Was the /boot/ partition correctly mounted before chrooting? Please read https://bbs.archlinux.org/viewtopic.php?id=57855 before posting again and follow the advice therein.

godlyavenger wrote:

How would I resize the EFI partition?

Don't bother resizing, check the ESP doesn't have unwanted kernel images (remove them if it does) or move /boot/ off the ESP entirely. I wouldn't recommend mounting the ESP under /boot/ at all, that's just asking for trouble IMO.

If you move /boot/, reinstall & reconfigure your super-secret, mystery bootloader and correct /etc/fstab (ie, remove the /boot/ line). If you're using systemd-boot use an XBOOTLDR partition or add some filesystem drivers to the ESP so it can find the kernel on the root partition, as per sd-boot(1):

https://man.archlinux.org/man/sd-boot.7#FILES

The initramfs will have to be regenerated in all those situations, as Scimmia noted.


Jin, Jîyan, Azadî

Offline

#7 2023-12-27 00:00:19

godlyavenger
Member
Registered: 2023-12-24
Posts: 6

Re: [SOLVED] Systemd-shared not found while attempting to boot

Head_on_a_Stick wrote:

Don't bother resizing, check the ESP doesn't have unwanted kernel images (remove them if it does) or move /boot/ off the ESP entirely. I wouldn't recommend mounting the ESP under /boot/ at all, that's just asking for trouble IMO.

Apologies for the late reply. This fixed it. There were some extra images because of some config changes I made and I just deleted some and it works! I just put it under /boot because that's the example the Arch Wiki gave (it said something about not conflicting with filesystem features if I did that). I'll look into that. Thanks for the help! smile

Offline

Board footer

Powered by FluxBB