I have an old HD with opensuse system on it. The main partition is an encrypted LVM.
For several reasons, I can’t simply boot a computer with that disk at the moment (and it will be that for a long time).
Since I have a docking station available, I though about simply connecting it and accessing. However, I can’t find a way to mount it: clicking on it in the notification either not prompts me for the password and/or worries about permission (tried as root with similar results), and on the command line nothing like vgscan and others find anything.
Replace “/dev/sdb5” with the appropriate device on your system.
That should make the LVM volumes available under “/dev/mapper”, and you can mount from there. These days, I don’t need “vgscan”, as that seems to be done automatically. But that might depend on what is installed on your system. Some distros do not automatically install “cryptsetup”.
#> sudo vgscan
WARNING: PV /dev/mapper/cr_lvm in VG system is using an old PV header, modify the VG to update.
WARNING: Device mismatch detected for system/home which is accessing /dev/mapper/luks-7583dc6f-415d-4446-8279-16c55b18a0
a2 instead of /dev/mapper/cr_lvm.
WARNING: Device mismatch detected for system/main which is accessing /dev/mapper/luks-7583dc6f-415d-4446-8279-16c55b18a0
a2 instead of /dev/mapper/cr_lvm.
WARNING: Device mismatch detected for system/tmp which is accessing /dev/mapper/luks-7583dc6f-415d-4446-8279-16c55b18a0a
2 instead of /dev/mapper/cr_lvm.
Found volume group "system" using metadata type lvm2
#> sudo lvs
WARNING: PV /dev/mapper/cr_lvm in VG system is using an old PV header, modify the VG to update.
WARNING: Device mismatch detected for system/home which is accessing /dev/mapper/luks-7583dc6f-415d-4446-8279-16c55b18a0
a2 instead of /dev/mapper/cr_lvm.
WARNING: Device mismatch detected for system/main which is accessing /dev/mapper/luks-7583dc6f-415d-4446-8279-16c55b18a0
a2 instead of /dev/mapper/cr_lvm.
WARNING: Device mismatch detected for system/tmp which is accessing /dev/mapper/luks-7583dc6f-415d-4446-8279-16c55b18a0a
2 instead of /dev/mapper/cr_lvm.
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home system -wi-a----- 296,44g
main system -wi-a----- 50,00g
tmp system -wi-a----- 2,00g
I want to mount that lvm home volume in a different directory to find some old files I’m needing. How can I proceed? It is just mount now (and if yes, what path should I mount?), or should I perform some other procedure before?
If I don’t “point” the mount command to some destination directory, it complains that it is not in the /etc/fstab. Understandable.
However, if I go further and point the mount command somewhere, say “sudo mount /dev/mapper/system-home /home/user/tmp” (where that is an actually directory that the user user has created), it complains that he can’t read the superblock in [FONT=monospace]/dev/mapper/system-home…