Advertisement
Guest User

Untitled

a guest
May 14th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. At first, make sure aufs-util are installed, and please read the aufs
  2. manual, aufs.5 in aufs-util.git tree.
  3. $ man -l aufs.5
  4.  
  5. And then,
  6. $ mkdir /tmp/rw /tmp/aufs
  7. # mount -t aufs -o br=/tmp/rw:${HOME} none /tmp/aufs
  8.  
  9. Here is another example. The result is equivalent.
  10. # mount -t aufs -o br=/tmp/rw=rw:${HOME}=ro none /tmp/aufs
  11. Or
  12. # mount -t aufs -o br:/tmp/rw none /tmp/aufs
  13. # mount -o remount,append:${HOME} /tmp/aufs
  14.  
  15. Then, you can see whole tree of your home dir through /tmp/aufs. If
  16. you modify a file under /tmp/aufs, the one on your home directory is
  17. not affected, instead the same named file will be newly created under
  18. /tmp/rw. And all of your modification to a file will be applied to
  19. the one under /tmp/rw. This is called the file based Copy on Write
  20. (COW) method.
  21. Aufs mount options are described in aufs.5.
  22. If you run chroot or something and make your aufs as a root directory,
  23. then you need to customize the shutdown script. See the aufs manual in
  24. detail.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement