Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noirbizarre/6ed1605aef82dcdd79c72235243f69a1 to your computer and use it in GitHub Desktop.
Save noirbizarre/6ed1605aef82dcdd79c72235243f69a1 to your computer and use it in GitHub Desktop.
Rescue Arch LVM on LUKS with direct efi boot system
# Boot off a live usb or similar as if you're installing
# If you're more comfortable with a different keyboard layout
$ loadkeys dvorak
# populate the second argument of the cryptsetup command based on this
$ parted <<<'print'
# the third argument may be anything, it needn't be used later
$ cryptsetup open /dev/sda3 foobar
# check your volume groups to see what to mount
$ ls /dev/vg
# this device path is dependent on the volume group configuration
$ mount /dev/vg/root /mnt
# for good measure, also based on configuration
$ swapon /dev/vg/swap
# this mount can be confirmed in /mnt/etc/fstab
$ mount /dev/sda1 /mnt/esp
$ arch-chroot /mnt
# modify the system as needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment