Last active
December 2, 2017 23:25
-
-
Save schlueter/eb07cba211015d8f6b7db788798f2828 to your computer and use it in GitHub Desktop.
Log into another encrypted linux system using a LiveCD
This file contains 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
# if you want to use a non qwerty keyboard layout | |
sudo dpkg-reconfigure keyboard-configuration | |
sudo cryptsetup luksOpen /dev/sda3 some-vg | |
# enter password | |
sudo vgscan | |
# mount the root drive | |
sudo mount /dev/mapper/some--vg-root /mnt | |
# consult /mnt/etc/fstab to find out where the boot directories are so you can mount them | |
exec sudo su - | |
cd /mnt | |
cat etc/fstab | |
mount /dev/path/from/fstab boot | |
mount /dev/path/from/fstab boot/EFI/ | |
mount -t proc proc proc/ | |
mount -t sysfs sys sys/ | |
mount -o bind /dev dev/ | |
chroot . /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment