[dm-crypt] Encrypt all partitions with dm-crypt

Stayvoid stayvoid at gmail.com
Wed Sep 26 12:49:25 CEST 2012

> You can mount to wherever you like. Once you've mapped the block
> device to /dev/mapper/NAME, you have a block device like any other.

Will the following work from a recovery shell?

# mkdir media
# mount /dev/mapper/main /media
# mount -t proc none /media/proc
# mount --rbind /dev /media/dev
# mount --rbind /sys /media/sys
# mount /dev/sda1 /boot

There is no /bin/bash. Can I use ash?

# chroot /media /bin/ash

More information about the dm-crypt mailing list