On Wednesday, August 14, 2013 5:33:11 AM UTC+1, zero13th wrote:
As an alternative, all files from the flashed firmware can be found read-only under /rootmnt/ro and modified files under /rootmnt/rw/
# find /rootmnt/ -name smb.conf
/rootmnt/rw/etc/samba/smb.conf
/rootmnt/ro/etc/samba/smb.conf
Some modified files can also be found under /Alt-F, if Alt-F packages have been installed:
# aufs.sh -l
aufs on / type aufs (rw,relatime,si=40767ed1)
/mnt/sdb2/Alt-F=rw
/rootmnt/rw=rw
/rootmnt/ro=rr
All those directories are "unioned" together using 'aufs' and appear under '/' following a complex set of rules and priorities.
To manipulate those directories directly aufs must be re-mounted in a special mode:
# aufs.sh
Usage: Alt-F.sh -m (mount the Alt-F union branch) |
-u (umount the Alt-F union branch) |
-n (remount with notify) |
-r (remount with reval) |
-l (list branches) |
-i <mountpoint> (install in mountpoint)
-s (status)
Thus, if the file does not exists under /Alt-F:
aufs.sh -n
cp /rootmnt/ro/etc/samba/smb.conf /rootmnt/rw/etc/samba/smb.conf
aufs.sh -r