Skip to content

Instantly share code, notes, and snippets.

@jrgifford
Created January 27, 2012 20:20
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 jrgifford/ece490a77abe40d0d312 to your computer and use it in GitHub Desktop.
Save jrgifford/ece490a77abe40d0d312 to your computer and use it in GitHub Desktop.
How to recover a encrypted wubi home directory.

Step one: Get the file root.disk in C:\ubuntu\disks\ to a Ubuntu machine. I (now quad) dual boot Ubuntu and Windows, so I just mounted my Windows partition in Ubuntu.

install ecryptfs-utils sudo apt-get install ecryptfs-utils

sudo mkdir /vdisk

sudo mount -o loop $PATH-to-root.disk /vdisk

To make sure you're in the right spot, run ls /vdisk/home - if it says something like jrg (or whatever your username is), then you're in the right place.

Then, run sudo ecryptfs-recover-private and follow the prompts.

Your home directory will be mounted (read-only and decrypted) in /tmp/ecryptfs.somethingrandom.

Then, to view your data, you need to run gksu nautilus /tmp in a terminal, then select the ecryptfs.whatever dir - all your data will be in there.

Enjoy your recovered data!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment