Pages

Wednesday, May 2, 2007

Mounting lvm + crypt filesystem

Depends:
lvm2 and cryptsetup packages.
dm-mod module.

#modprobe dm-mod
#cryptsetup luksOpen /dev/HARDDISK DEVICENAME
#lvmdiskscan
#vgchange -ay
# ls -l /dev/mapper
crw-rw---- 1 root root 10, 63 May 2 11:43 control
brw-rw---- 1 root disk 254, 0 May 2 11:50 DEVICENAME
brw-rw---- 1 root disk 254, 3 May 2 11:58 vgcrypt-lvhome
brw-rw---- 1 root disk 254, 1 May 2 11:58 vgcrypt-lvroot
brw-rw---- 1 root disk 254, 2 May 2 11:58 vgcrypt-lvscratch

#mount /dev/mapper/vgcrypt-lvroot /hda/root/


References

How to encrypt a diskdrive in (X)Ubuntu Feisty with dm-crypt and LUKSLink

How to mount a Logical Volume from another drive in LinuxLink
DM-Crypt riseup labsLink

No comments: