Dear Tomas, I moved the mount point by mount --move, as instructed in https://help.ubuntu.com/community/aufsRootFileSystemOnUsbFlash (found in http://aufs.sourceforge.net/Tips, with some minor modifications, and I am testing in Debian.)
Maybe I need to considering your way, but I would have to hand-make the initramfs, since this method appears to be incompatible to Debian's mkinitramfs utilities. (Debian built initramfs boot code would clear all the contents of initramfs and overmount /root to /.) Yiu-Chung Lee Tomas M 提到: > Hello, > >> In my initramfs, the read-only partition is mounted as /ro, and the >> read-write partitions is mounted as /rw. Then these branches are merged >> to /aufs. Then I move /ro to /aufs/.aufs/ro and /rw to /aufs/.aufs/rw. >> As a last step, I move /aufs to /, and initramfs would finish its job. > > How do you 'move' them? > >> That is, after booting up the system, the mount point would be: >> / - AUFS union of /.aufs/ro and /.aufs/rw >> /.aufs/ro - read-only partition >> /.aufs/rw - read-write partition > > To be honest, I do not know how to setup that. But I would do it this way: > Mount read-only partition to /ro, then read-write to /rw, > and finally create /aufs. When aufs is ready, create /aufs/.aufs/ > directory and use 'switch_root' to switch current root into /aufs/.aufs/ > > So at the end, the entire content of previous root (initramfs?) will be > visible in /.aufs/ > > When you reboot, you have to > 1) end all processes > 2) close all files > 3) switch_root back > 4) umount /aufs, /ro and /rw > 5) shutdown > > Tomas M > slax.org > linux-live.org > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
