Tuesday, January 12, 2010

Device Mapper

http://sources.redhat.com/dm/
http://linuxgazette.net/114/kapil.html


You can choose any sequence of blocks on a sequence of block devices and create a new block device some of whose blocks are identified with the blocks you chose earlier.


Just think its a mapping of block device. 1-to-1, or 1-to-many, or encryption, etc...

To do transparent encryption, do following steps:

1. create key


2. create mapped block dev


3. init it, load it
$ mke2fs /dev/mapper/mydata
$ mount /dev/mapper/mydata /mnt
All the data written to /mnt will then be transparently encrypted before storing it in /dev/loop1.


4. unload it

No comments:

Related Posts Plugin for WordPress, Blogger...