I had installed Fedora 16 a while back and chose to encrypt my home directory. I have removed the drive and installed a new drive, installed F17 and would like to attach the old drive externally and mount it to recover some of my data. I know the encryption password but I can't seem to find any solid procedures for getting it mounted.
This is the lv I would like to mount.
--- Logical volume ---
LV Path /dev/vg_loukinasfedor/lv_home
LV Name lv_home
VG Name vg_loukinasfedor
LV UUID 0PPquP-0oux-vt5Y-03Wu-nFmv-fWnz-JVglFz
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 0
LV Size 97.66 GiB
Current LE 3125
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:9
[root@localhost vg_loukinasfedor]# vgchange -ay
7 logical volume(s) in volume group "vg_loukinasfedor" now active
0 logical volume(s) in volume group "vg2" now active
3 logical volume(s) in volume group "vg" now active
[root@localhost vg_loukinasfedor]# mount /dev/vg_loukinasfedor/lv_home /tmp/mount
mount: unknown filesystem type 'crypto_LUKS'
[root@localhost vg_loukinasfedor]#
[root@jaguar mapper]# ls -al /dev
brw-rw----. 1 root disk 8, 0 Aug 7 21:34 sda
brw-rw----. 1 root disk 8, 1 Aug 7 21:34 sda1
brw-rw----. 1 root disk 8, 2 Aug 7 22:19 sda2
brw-rw----. 1 root disk 8, 16 Aug 7 21:34 sdb
brw-rw----. 1 root disk 8, 17 Aug 7 21:34 sdb1
brw-rw----. 1 root disk 8, 18 Aug 7 21:34 sdb2
[root@jaguar mapper]# umount -f /dev/sda2
umount: /dev/sda2: not mounted
[root@jaguar mapper]# umount -f /dev/sda1
umount: /dev/sda1: not mounted
[root@jaguar mapper]# umount -f /dev/sda
umount: /dev/sda: not mounted
[root@jaguar mapper]# cryptsetup luksOpen /dev/sda2 oldsystem
Enter passphrase for /dev/sda2:
Cannot use device /dev/sda2 which is in use (already mapped or mounted).
Whats all that about then? it's either mounted or not mounted
---------- Post updated 08-08-12 at 02:20 PM ---------- Previous update was 08-07-12 at 06:02 PM ----------
I've got it working now, it's so simple you'll be annoyed.
When you mount you have to mount the logical volume and to do that you need to create a mount point for bother the LG and the LV so basically just a subfolder in your mount point, so for example.
$ sudo mkdir /mnt/oldsystem/lv_root
(for some reason i got permission denied so had to navigate to that folder and create the subfolder from within /mnt )
$ sudo mount /dev/oldsystem/lv_root /mnt/oldsystem/lv_root
I would post a link to helpful forums that solved this for me but but i cant atm.