Difference between revisions of "Encrypt a disk"

From Linuxintro
imported>ThorstenStaerk
(New page: Sometimes in your Linux life, you want to carry your data on a disk, but well encrypted so no one else can steal and read it. This article describes how to format and encrypt a disk. It us...)
 
imported>ThorstenStaerk
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Sometimes in your Linux life, you want to carry your data on a disk, but well encrypted so no one else can steal and read it. This article describes how to format and encrypt a disk. It uses SUSE Linux 11.1 as example, but it should work same or similar with any distribution.
 
Sometimes in your Linux life, you want to carry your data on a disk, but well encrypted so no one else can steal and read it. This article describes how to format and encrypt a disk. It uses SUSE Linux 11.1 as example, but it should work same or similar with any distribution.
  
 +
= Encrypt it =
 
* Start the disk partitioner
 
* Start the disk partitioner
 
  yast2 disk
 
  yast2 disk
Line 9: Line 10:
 
* enter a password for your system => next => finish
 
* enter a password for your system => next => finish
  
 
+
= Test it =
  # cryptsetup -v luksOpen /dev/sdd1 blah        
+
  # cryptsetup -v luksOpen /dev/sdd1 ''blah''
 
  Enter LUKS passphrase:                                         
 
  Enter LUKS passphrase:                                         
 
  key slot 0 unlocked.                                           
 
  key slot 0 unlocked.                                           
 
  Command successful.
 
  Command successful.
 +
 +
# mount /dev/mapper/''blah'' /mnt/test
 +
 +
= See also =
 +
* [[security]]
 +
* http://en.opensuse.org/Encrypted_Root_File_System

Latest revision as of 18:22, 8 January 2011

Sometimes in your Linux life, you want to carry your data on a disk, but well encrypted so no one else can steal and read it. This article describes how to format and encrypt a disk. It uses SUSE Linux 11.1 as example, but it should work same or similar with any distribution.

Encrypt it

  • Start the disk partitioner
yast2 disk
  • Select a partition you want to format or a disk where you want to add an encrypted partition
  • Choose Format partition and "encrypt file system"
  • If you get an information that you need to install "pam_mount", allow this
  • choose "next"
  • enter a password for your system => next => finish

Test it

# cryptsetup -v luksOpen /dev/sdd1 blah
Enter LUKS passphrase:                                        
key slot 0 unlocked.                                          
Command successful.

# mount /dev/mapper/blah /mnt/test

See also