Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

am having the following problem with an overlayfs: I can mount an overlayfs fine using the following line in my etc/fstab

none /home/student overlayfs lowerdir=/home/student,upperdir=/home/.student_rw 0 0

this works great and the mount command displays the overlayfs corretly:

pc:~$ mount -l -t overlayfs
none on /home/student type overlayfs (rw,lowerdir=/home/student,upperdir=/home/.student_rw)

so now when a student logs out of the machine i delete the contents of /home/.student_rw using a script - which also works fine.

the problem is that the student logging in, should find a clean home directory with the settings preconfigured in (/home/student) as the overlayfs does not touch the lowerdir folder. however overlayfs "remembers" the deleted files and does not show them, even if they exist in the lowerdir. after a reboot this approach works fine. i want that to work on logout and login though. so how can i fix this problem? for me a possible solution seems to be to let the upperdir reread the lowerdir. how would i do that?

the exact same approach worked very well for aufs, which are no longer supported in precise.


share|improve this question
Have you found any solution badgerhill? thx – xpt Jan 29 '14 at 20:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.