I wanted to automatically mount a directory in my home directory, so I attempted to use autofs for this resulting in autofs removing everything in my home directory.
The setup was something like auto.master:
/home/my-user auto.my-user
auto.my-user:
# Mount points for the media folder
external-media -fstype=auto :/dev/sdb1
After restarting autofs I was horrified to see that it removed everything in my home directory.
Looking at the output of df -h it looks like the files are still taking up room on my disk which makes me hopefully I might be able to recover them. But how would I go about finding them?
I've tried:
sudo service autofs stop
But the folder is still empty:
ls -al /home/my-user
total 4
drwxr-xr-x 2 root root 0 May 4 12:58 .
drwxr-xr-x 4 root root 4096 Nov 13 20:30 ..
Any tips for how to recover the files?