This question already has an answer here:

My drive is configured as:

  • /dev/sda1 - 33.5gig - mount as /,
  • /dev/sda2 extended - 413.6gig,
  • /dev/sda5 swap 7.45gig,
  • /dev/sda6 - 406.15gig - mount as /mnt/temp.

After installing Ubuntu 17.10 over 17.04, all my /home directories point to sda1, all my old /home files are mounted to /mnt/temp. Files on the extended partition seem to be there but are all called ECRYPTFS_FNEK_ENCRYPTED...

Can someone please help me step-by-step how to decrypt and recover my old /home folder and recover all my files? I don't need encryption.

$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=3774604k,nr_inodes=943651,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=760212k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=11500)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda6 on /mnt/temp type ext4 (rw,nosuid,nodev,relatime,data=ordered,x-gvfs-show)
tmpfs on /run/user/121 type tmpfs (rw,nosuid,nodev,relatime,size=760208k,mode=700,uid=121,gid=127)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=760208k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

$ sudo lsblk -f
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
├─sda1 ext4         73daeb48-531c-4b9f-821b-5ea26f99e409 /
├─sda5 swap         6933ae22-ce3f-432f-8fe3-7ea778da5d7f [SWAP]
└─sda6 ext4         e03f392c-9a84-4b9f-9840-f9542a100fdb /mnt/temp

marked as duplicate by David Foerster, Videonauth, storm, George Udosen, Eric Carvalho Oct 25 '17 at 22:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • followed your link and another but now I get: Try to recover this directory? [Y/n]: y INFO: Found your wrapped-passphrase Do you know your LOGIN passphrase? [Y/n] y INFO: Enter your LOGIN passphrase... Passphrase: Inserted auth tok with sig [328174676446606d] into the user session keyring mount: /tmp/ecryptfs.FeSYbahL: mount(2) system call failed: No such file or directory. ERROR: Failed to mount private data at [/tmp/ecryptfs.FeSYbahL]. I can't get past here... Help! – Jeff Woodward Oct 24 '17 at 19:46
  • I tried this listed in the readme.txt: ubuntu@ubuntu:/media/ubuntu/e03f392c-9a84-4b9f-9840-f9542a100fdb/jeffrey$ sudo ecryptfs-mount-private ERROR: Encrypted private directory is not setup properly – Jeff Woodward Oct 24 '17 at 19:56
  • Navigating to /tmp/ecryptfs.XXXXXXXX , the folder is there but its empty. Please help me recover these folders! – Jeff Woodward Oct 24 '17 at 21:38
  • Could you please edit your post, when you want to add information? Especially file or program output listings (with the help of the {} button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks. – David Foerster Oct 25 '17 at 1:16