I've lost everything and I don't know how to get it back. How can I repair my system all I have is a usb with slax linux. I am freaking out because I had a lot of projects on their that I hadn't pushed to github as well as my configs and rice. Is there any way to repair my system? Can I get a shell from systemd?

you are viewing a single comment's thread
view the rest of the comments
[–] 38 points 2 years ago (1 child)

Not an endavour/arch user, but have been in similar situation.

What I did:

  • boot into live USB
  • mount the problematic rootfs
  • chroot to it
  • run pacman update

Archwiki has a nice article on chroot

  • source
  • hideshow 2 child comments
  • [–] 2 points 2 years ago (3 children)

    Is this work for every system? Like Fedora?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 2 points 2 years ago

    You may need to adapt the last part to your needs.

    Example:

    • for Fedora, you'd use dnf instead of pacman
    • if your bootloader is broken, you'd want to run grub-install or grub-mkconfig
    • if your initramfs doesn't recognize your new partition, you'd want to regenerate it with the current fstab or crypttab
  • source
  • parent