this post was submitted on 27 Sep 2023
92 points (96.9% liked)

Linux

48074 readers
792 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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
[–] [email protected] 38 points 1 year ago (1 children)

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

[–] [email protected] 2 points 1 year ago (3 children)

Is this work for every system? Like Fedora?

[–] [email protected] 16 points 1 year ago (1 children)

Well , except the pacman part. The chroot part should certainly work.

[–] [email protected] 2 points 1 year ago

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

[–] [email protected] 4 points 1 year ago

Yup. Mount your disk and chroot into it.

[–] [email protected] 2 points 1 year 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