~siretart/cryptsetup/debian

« back to all changes in this revision

Viewing changes to debian/CryptoSwap.HowTo

  • Committer: Reinhard Tartler
  • Date: 2008-05-25 20:03:28 UTC
  • Revision ID: siretart@tauware.de-20080525200328-szhw0j5yw0p5kl33
import cryptsetup_1.0.6~pre1+svn45-1.dsc

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
# <file system> <mount point>   <type>  <options>     <dump>  <pass>
11
11
/dev/hda9        none           swap    sw            0       0
12
12
 
13
 
Now just replace /dev/hda9 (or whatever your swap own partition is)
 
13
Now just replace /dev/hda9 (or whatever your swap partition is)
14
14
with the new device name /dev/mapper/cswap:
15
15
# <file system> <mount point>   <type>  <options>     <dump>  <pass>
16
16
/dev/mapper/cswap  none         swap    sw            0       0
21
21
cswap           /dev/hda9       /dev/random     swap,cipher=aes-cbc-plain,size=128,hash=ripemd160
22
22
 
23
23
Now start your crypted device:  /etc/init.d/cryptdisks start
24
 
And reaktivate your swap:       swapon -a
 
24
And reactivate your swap:       swapon -a
25
25
 
26
26
Thats it! You have a crypted swap device. Note that the
27
27
/dev/random device might not generate enough random bytes, so the boot