Created
March 19, 2018 08:40
-
-
Save gnthibault/434555d04cc48178839b3638a7fb88b2 to your computer and use it in GitHub Desktop.
Mount encrypted partition from ubutun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To be executed as root | |
# Check list of the volume group | |
pvs | |
# First, rename the vg you want if it has the same name as one other vg you are currently using, then set it active | |
vgdisplay | |
vgrename UUID-of-old-vg old_ubuntu_vg | |
vgchange -ay old_ubuntu_vg | |
#Mount old vg to local fs | |
mkdir /tmp/ubuntu | |
mount /dev/old_ubuntu_vg/root /tmp/ubuntu/ | |
#Now decrypt | |
ecryptfs-recover-private --rw /tmp/ubuntu/home/.ecryptfs/gnthibault/.Private/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment