Monday, July 25, 2011

chroot into LUKS encrypted drive

# cryptsetup luksOpen /dev/sdx2 slackluks

# vgscan --mknodes

# vgchange -ay

# lvscan

# mount /dev/foo /foo

# mount -o bind /proc /mnt

# mount -o bind /dev /mnt

# mount -o bind /sys /mnt

# mount -o bind /boot /mnt

(mount /boot if on a different HDD if messing with kernel issues etc...)

# mount /dev/foo /mnt

# chroot /mnt /bin/bash