Data Recovery – Recover Deleted Files from Guest Account Desktop on Ubuntu 12.04

12.04data-recoverydeleteguest-session

I have Ubuntu 12.10 and was using guest account. I downloaded some files on desktop and shutdown my m/c after use. Now today when I logged in to guest account to copy those files but surprisingly those files were gone and desktop was clear. I guess ubuntu deletes all files from guest account on shutdown.

Can you please guide me to recover those lost files.

Thanks

Best Answer

Ubuntu's Guest account is a special type of account, which has its home directory set to the mount point of a tmpfs filesystem, which is used to store data which does not need to be persisted after a reboot.

The data in tmpfs is stored in RAM backed up by the swap space, so it is likely the data had never been written to disk in the first place, so there's basically nothing to recover.

More details on tmpfs.

If you're curious how guest account is set up, you can study /usr/sbin/guest-account, which is a shell script used to create/remove a guest account.

Related Question