Skip to content

Instantly share code, notes, and snippets.

@schlueter
Last active December 2, 2017 23:25
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 schlueter/eb07cba211015d8f6b7db788798f2828 to your computer and use it in GitHub Desktop.
Save schlueter/eb07cba211015d8f6b7db788798f2828 to your computer and use it in GitHub Desktop.
Log into another encrypted linux system using a LiveCD
# 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