RAH
RAH

Reputation: 3427

Content of mounted folder deleted on Ubuntu reboot

I have created a chrooted sftp user, and mounted a directory to the users chrooted home.

Within this directory I have one directory for each website the sftp user has access to.

When I rebooted my Ubuntu 10.04 server, the content of the mounted folder is gone.

/home/chrootedUser/websites/website1

To my frustration the website1 directory is gone/deleted.

My /etc/fstab config: http://pastebin.com/gxz3w9Mg

My mounts (using command mount): http://pastebin.com/XcGGvGVE

I hope someone can point me in the right direction, please let me know if you need anything else.

Upvotes: 0

Views: 3508

Answers (1)

kirelagin
kirelagin

Reputation: 13606

Unmount /home/chrootedUser/websites and your files will be there. Probably your mount didn't work for the first time when you were creating those files. But now it works.

fstab should do automounting for you just fine. It's difficult to tell what exactly went wrong, you can read /proc/self/mounts to check your mounts.

Upvotes: 1

Related Questions