Tuesday, July 16, 2013

Mount Encrypted LVM Partition - RHEL

I  accidentally delete  RHEL6.4 libc.so.6 link file. The system don't work anymore.
Here is the command I use to mount that partition using ubuntu 12.04 live CD.

0. open terminal
1. sudo su -
2. fdisk -lu
   a. for finding /dev/sda2
3. cd /mnt
4. mkdir enc
5. cryptsetup luksOpen /dev/sda2 encrypted
    a. typing password
6. apt-get install lvm2
7. lvscan
    a. it will show lv inactive
8.vgchange -ay
   a. change lv to active
9.mount /dev/VolGroup00/LogVol101 /mnt/enc

Now you could workin on the /mnt/enc folder

Here is the source.
http://wiki.sabayon.org/index.php?title=HOWTO:_Mount_Encrypted_Partition
http://www.nixetra.com/mount-unknown-filesystem-type-lvm2-member/



No comments: