Last active
November 19, 2024 08:17
-
-
Save M3nti0nL3Ss/1ac1e5520ca9db1bd5f6aec1cfe55573 to your computer and use it in GitHub Desktop.
my arch rescuer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo pacman -Sy btrfs-progs | |
sudo mount -o subvol=@ /dev/sdb2 /mnt | |
# mkdir -p /mnt/{home,pkg} | |
sudo mkdir /mnt/boots | |
sudo mount /dev/sdb1 /mnt/boots | |
sudo mount -o subvol=@home /dev/sdb2 /mnt/home | |
sudo mount -o subvol=@pkg /dev/sdb2 /mnt/var/cache/pacman/pkg | |
sudo mount --bind /dev /mnt/dev | |
sudo mount --bind /proc /mnt/proc | |
sudo mount --bind /sys /mnt/sys | |
sudo mount --bind /run /mnt/run | |
sudo chroot /mnt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment