Skip to content

Instantly share code, notes, and snippets.

@M3nti0nL3Ss
Last active November 19, 2024 08:17
Show Gist options
  • Save M3nti0nL3Ss/1ac1e5520ca9db1bd5f6aec1cfe55573 to your computer and use it in GitHub Desktop.
Save M3nti0nL3Ss/1ac1e5520ca9db1bd5f6aec1cfe55573 to your computer and use it in GitHub Desktop.
my arch rescuer
#!/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