星期日, 十一月 29, 2015

挂载linux加密分区

映射分区

cryptsetup luksOpen /dev/sdc1 crypt-sdc1    // /dev/sdc1 为加密后的分区
回车后会提示输入加密密码,输入后查看/dev/mapper/下回出现揭秘后的分区crypt-sdc1

挂载分区

映射后挂载方式和普通的挂载方式一样。
mount /dev/mapper/crypt-sdc1 /mnt/sdc1/

关闭挂载分区

umount /mnt/sdc1    //取消挂载
cryptsetup luksClose crypt-sdc1  //关闭加密分区

具体操作见:http://pengxie.blog.51cto.com/6421405/1168041