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?

  • @pastermil
    link
    389 months ago

    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

    • SALT
      link
      fedilink
      English
      29 months ago

      Is this work for every system? Like Fedora?

        • SALT
          link
          fedilink
          English
          29 months ago

          Thank you. Seems it’s fun to delve into. Thanks!

      • @pastermil
        link
        29 months 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