Skip to content

Instantly share code, notes, and snippets.

@gnthibault
Created March 19, 2018 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnthibault/434555d04cc48178839b3638a7fb88b2 to your computer and use it in GitHub Desktop.
Save gnthibault/434555d04cc48178839b3638a7fb88b2 to your computer and use it in GitHub Desktop.
Mount encrypted partition from ubutun
# 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