Quick note: Encrypted ext4
This is a log on minimal setup of dm-crypt.
ref: Archwiki/dm-encrypt
Setup
delete existing fs (use with caution).
wipefs -a /dev/sdx
Lock the partition with dm-crypt; see man page for options
crypt setup [Options] luksFormat /dev/sdx
Decrypt(open) the partition:
cryptsetup open /dev/sdx name
After unlocking the partition, it will be available at /dev/mapper/name
Create ext4 filesystem:
mkfs.ext4 /dev/mapper/name
Mounting and Unmounting
# Mounting
cryptsetup open [device] [name]
mount -t [fstype] /dev/mapper/name /mnt/mntpoint
# Unmounting
umount /mnt/mntpoint
cryptsetup close [name]
A SIMPLE SCRIPT
gpgwiz (I call it gpgwiz because i store my gpg keypair on a usb stick). The script itself doesn’t necessarily have anything to do with GPG.
|
|
[+] click to leave a comment [+]
the comment system on this blog works via email. The button below will generate a mailto: link based on this page's url and invoke your email client - please edit the comment there! [optional] even better, encrypt the email with my public key - don't modify the subject field - specify a nickname, otherwise your comment will be shown as anonymous - your email address will not be disclosed - you agree that the comment is to be made public. - to take down a comment, send the request via email.>> SEND COMMENT <<