87
submitted 1 year ago* (last edited 1 year ago) by 257m@lemmy.ml to c/linux@lemmy.ml

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
[-] pastermil@sh.itjust.works 38 points 1 year 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

[-] garam@lemmy.my.id 2 points 1 year ago

Is this work for every system? Like Fedora?

[-] LeFantome@programming.dev 16 points 1 year ago

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

[-] garam@lemmy.my.id 2 points 1 year ago

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

[-] icedterminal@lemmy.world 4 points 1 year ago

Yup. Mount your disk and chroot into it.

[-] pastermil@sh.itjust.works 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
this post was submitted on 27 Sep 2023
87 points (96.8% liked)

Linux

48033 readers
948 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