wiki:LinuxDiskVolumeCrypto

Version 1 (modified by sgk, 12 years ago) (diff)

--

Linuxでファイルシステムの暗号化

# apt-get install cryptsetup
# cryptsetup luksFormat /dev/sdb3

WARNING!
========
This will overwrite data on /dev/sdb3 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase: 
Verify passphrase: 
Command successful.
# cryptsetup luksOpen /dev/sdb3 sdb3
# mkfs -t nilfs2 /dev/mapper/sdb3
# mount /dev/mapper/sdb3 /backup