Guest User

Untitled

a guest
Sep 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. $ mkdir /tmp/rw /tmp/aufs
  2. # mount -t aufs -o br=/tmp/rw:${HOME} none /tmp/aufs
  3.  
  4. Here is another example. The result is equivalent.
  5. # mount -t aufs -o br=/tmp/rw=rw:${HOME}=ro none /tmp/aufs
  6. Or
  7. # mount -t aufs -o br:/tmp/rw none /tmp/aufs
  8. # mount -o remount,append:${HOME} /tmp/aufs
  9.  
  10. Then, you can see whole tree of your home dir through /tmp/aufs. If
  11. you modify a file under /tmp/aufs, the one on your home directory is
  12. not affected, instead the same named file will be newly created under
  13. /tmp/rw. And all of your modification to a file will be applied to
  14. the one under /tmp/rw. This is called the file based Copy on Write
  15. (COW) method.
Add Comment
Please, Sign In to add comment