Hi, Tomas M: > My goal is to properly save all filesystem modifications in the writable > branch. So first I tried to cleanly unmount the union, but it's busy and > can't be unmounted.
Your aufs is the root filesystem, isn't it? Generally speaking, the root filesystem cannot be unmounted. It is remounted as readonly at shutdown/reboot time. How about this procedure instead of unmounting aufs? mount -no remount,ro /aufs for i in $writable_branches do mount -no remount,ro $i done exit If your xino files were on a hard drive, it is better to specify 'noxino' too. > So, if the union can't be unmounted, I thought to remove the writable > branch from it, using 'mount -o remount,del:/mnt/changes aufs /union'. > Unfortunately this doesn't work either and there is no info in dmesg why > that failed. That is strange. When you executed remount, was your syslogd up and running? The major reasons to reject deleting a branch are, - there is only one branch left in aufs. - a file or something is in use on the branch. - a directory is in use (which lsof may not show), and the directory doesn't exist on any other branch. Junjiro Okajima ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/