brain initiation

This commit is contained in:
2025-11-05 09:18:11 +01:00
commit 933aa8a985
191 changed files with 6203 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
:PROPERTIES:
:ID: 065cec59-82f7-42a5-bcb0-fef56004de40
:END:
#+title: arch-chroot
Also known as Chroot or Change [[id:673d1cb1-536b-42f1-a046-40a8937c4283][Root]]. Is a command that lets you use a Root file system of another partition to do manual maintanance.
A chroot is an operation that changes the apparent root directory for the current running process and their children. A program that is run in such a modified environment cannot access files and commands outside that environmental directory tree. This modified environment is called a chroot jail.
Changing root is commonly done for performing system maintenance on systems where booting and/or logging in is no longer possible. Common examples are:
- Reinstalling the boot loader.
- Rebuilding the initramfs image.
- Upgrading or downgrading packages.
- Resetting a forgotten password.
- Building packages in a clean chroot.
To change the Root File System, log into a Shell and input the following commands:
#+begin_src bash
lsblk
sudo mount /dev/<name of home root partition> /mnt
sudo mount /dev/<name of boot partition> /mnt/boot/efi
sudo arch-chroot /mnt
#+end_src
_Attention_: Do not try to mount the partition of your live environment, as it is already mounted
After this the root of the other system is mounted and the prompt shows the root user indication for the mounted system. The system in use is no longer the home system.
After you did the system maintenance and did an update use the command ~exit~ to disconnect