mounting a crypted drive in linux
Previously I had a encrypted setup of debian distro in my SSD drive. Then I give new OS to my another free partition. But I was unable to make it dual boot (cause was in previous setup I installed the grub loader in my HDD. Later I formatted that drive. you may ask a question now that then how I was able to boot as I format my HDD drive where I install grub boot loader. I am also strage of that. My friend Meraj told that it got from cache. But how I don't know :P whatever...) So I was also unable to look into my encrypted drive by mounting. Here is how I did this.
Two commands only:
- * first give this command and give the passphrase to decrypt the drive
- - $ /sbin/cryptsetup luksOpen /dev/sdb3 crypted_sdb3
- * then mount the drive in the folder you want
- - $ mount /dev/mapper/crypted_sdb3 /ssddrive/