Encrypted File Systems

Encrypt USBDISK or non-root disk

[root@localhost /]# cryptsetup luksFormat /dev/sdb1
[root@localhost /]# cryptsetup luksOpen /dev/sdb1 sensitiv
[root@localhost /]# mkfs.ext3 /dev/mapper/sensitiv
[root@localhost /]# mount /dev/mapper/sensitiv /mnt

With LVM

[root@localhost /]# cryptsetup luksFormat /dev/pool_snd/snd
[root@localhost /]# cryptsetup luksOpen /dev/pool_snd/snd pool_enc-snd
[root@localhost /]# mkfs.ext3 /dev/mapper/pool_enc-snd
[root@localhost /]# mount /dev/mapper/pool_enc-snd /mnt/pool_snd
This entry was posted in Linux, Security. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.